From 861c5c141049ae35d031721b784ce092d42b4938 Mon Sep 17 00:00:00 2001 From: Adyen Automation Date: Mon, 23 Dec 2024 11:40:39 +0000 Subject: [PATCH 1/4] [reformat][adyen-sdk-automation] automated change --- .../balancePlatform/accountHoldersApi.ts | 3 +- .../balancePlatform/balanceAccountsApi.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 | 3 +- .../balancePlatform/transferRoutesApi.ts | 3 +- src/services/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 + src/services/dataProtectionApi.ts | 1 + src/services/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 | 3 +- .../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 | 3 +- .../terminalActionsCompanyLevelApi.ts | 1 + .../terminalActionsTerminalLevelApi.ts | 3 +- .../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/paymentApi.ts | 1 + src/services/paymentsAppApi.ts | 1 + src/services/payout/initializationApi.ts | 3 +- src/services/payout/instantPayoutsApi.ts | 1 + src/services/payout/reviewingApi.ts | 1 + src/services/recurringApi.ts | 1 + src/services/storedValueApi.ts | 1 + src/services/terminalManagementApi.ts | 1 + src/services/transfers/capitalApi.ts | 1 + src/services/transfers/transactionsApi.ts | 3 +- src/services/transfers/transfersApi.ts | 4 +- src/typings/acsWebhooks/authenticationInfo.ts | 4 +- src/typings/balancePlatform/accountHolder.ts | 4 +- .../accountHolderCapability.ts | 8 +- .../balancePlatform/accountHolderInfo.ts | 4 +- .../accountHolderUpdateRequest.ts | 4 +- src/typings/balancePlatform/authentication.ts | 4 +- src/typings/balancePlatform/balanceAccount.ts | 4 +- .../balancePlatform/balanceAccountBase.ts | 4 +- .../balancePlatform/balanceAccountInfo.ts | 4 +- .../balanceAccountUpdateRequest.ts | 4 +- src/typings/balancePlatform/bankAccount.ts | 4 +- ...kAccountIdentificationValidationRequest.ts | 4 +- .../balancePlatform/capabilityProblem.ts | 4 +- .../capabilityProblemEntity.ts | 4 +- .../balancePlatform/capabilitySettings.ts | 4 +- src/typings/balancePlatform/card.ts | 16 +- .../balancePlatform/cardConfiguration.ts | 4 +- src/typings/balancePlatform/cardInfo.ts | 12 +- src/typings/balancePlatform/cardOrderItem.ts | 8 +- src/typings/balancePlatform/counterparty.ts | 4 +- .../createSweepConfigurationV2.ts | 12 +- .../balancePlatform/deliveryContact.ts | 4 +- src/typings/balancePlatform/grantLimit.ts | 4 +- src/typings/balancePlatform/grantOffer.ts | 12 +- src/typings/balancePlatform/link.ts | 20 +-- src/typings/balancePlatform/networkToken.ts | 4 +- .../numberAndBicAccountIdentification.ts | 4 +- .../balancePlatform/paymentInstrument.ts | 8 +- .../balancePlatform/paymentInstrumentInfo.ts | 8 +- .../paymentInstrumentUpdateRequest.ts | 4 +- src/typings/balancePlatform/repayment.ts | 8 +- .../balancePlatform/riskScoresRestriction.ts | 4 +- .../searchRegisteredDevicesResponse.ts | 4 +- .../balancePlatform/sweepConfigurationV2.ts | 12 +- .../balancePlatform/timeOfDayRestriction.ts | 4 +- .../balancePlatform/totalAmountRestriction.ts | 4 +- .../transactionRuleInterval.ts | 4 +- .../transactionRuleResponse.ts | 4 +- .../transactionRuleRestrictions.ts | 84 +++++------ src/typings/balancePlatform/transferRoute.ts | 1 + .../balancePlatform/transferRouteRequest.ts | 4 +- .../updatePaymentInstrument.ts | 8 +- .../updateSweepConfigurationV2.ts | 20 +-- src/typings/binLookup/costEstimateRequest.ts | 12 +- src/typings/binLookup/costEstimateResponse.ts | 8 +- .../binLookup/threeDSAvailabilityResponse.ts | 4 +- src/typings/checkout/applicationInfo.ts | 24 +-- src/typings/checkout/authenticationData.ts | 4 +- src/typings/checkout/balanceCheckRequest.ts | 48 +++--- src/typings/checkout/balanceCheckResponse.ts | 8 +- .../checkout/checkoutBankTransferAction.ts | 4 +- src/typings/checkout/checkoutOrderResponse.ts | 8 +- .../checkoutSessionThreeDS2RequestData.ts | 12 +- src/typings/checkout/checkoutVoucherAction.ts | 12 +- .../checkout/createCheckoutSessionRequest.ts | 60 ++++---- .../checkout/createCheckoutSessionResponse.ts | 60 ++++---- src/typings/checkout/createOrderResponse.ts | 4 +- src/typings/checkout/deliveryMethod.ts | 4 +- src/typings/checkout/donationCampaign.ts | 8 +- .../checkout/donationPaymentRequest.ts | 44 +++--- .../checkout/donationPaymentResponse.ts | 8 +- src/typings/checkout/forexQuote.ts | 16 +- src/typings/checkout/fundOrigin.ts | 8 +- src/typings/checkout/fundRecipient.ts | 16 +- src/typings/checkout/merchantRiskIndicator.ts | 4 +- .../checkout/paymentAmountUpdateRequest.ts | 4 +- src/typings/checkout/paymentCancelRequest.ts | 4 +- src/typings/checkout/paymentCaptureRequest.ts | 8 +- .../checkout/paymentCaptureResponse.ts | 4 +- src/typings/checkout/paymentDetailsRequest.ts | 4 +- .../checkout/paymentDetailsResponse.ts | 24 +-- src/typings/checkout/paymentLinkRequest.ts | 36 ++--- src/typings/checkout/paymentLinkResponse.ts | 36 ++--- src/typings/checkout/paymentMethod.ts | 4 +- src/typings/checkout/paymentMethodsRequest.ts | 8 +- src/typings/checkout/paymentRefundRequest.ts | 4 +- src/typings/checkout/paymentRequest.ts | 88 +++++------ src/typings/checkout/paymentResponse.ts | 24 +-- .../checkout/paymentReversalRequest.ts | 4 +- .../checkout/paypalUpdateOrderRequest.ts | 8 +- src/typings/checkout/split.ts | 4 +- .../standalonePaymentCancelRequest.ts | 4 +- src/typings/checkout/subMerchantInfo.ts | 8 +- src/typings/checkout/taxTotal.ts | 4 +- src/typings/checkout/threeDS2RequestData.ts | 32 ++-- src/typings/checkout/threeDS2RequestFields.ts | 32 ++-- .../configurationWebhooks/accountHolder.ts | 4 +- .../accountHolderCapability.ts | 8 +- .../accountHolderNotificationData.ts | 4 +- .../configurationWebhooks/authentication.ts | 4 +- .../configurationWebhooks/balanceAccount.ts | 4 +- .../balanceAccountNotificationData.ts | 4 +- .../capabilityProblem.ts | 4 +- .../capabilityProblemEntity.ts | 4 +- .../capabilitySettings.ts | 4 +- src/typings/configurationWebhooks/card.ts | 16 +- .../cardConfiguration.ts | 4 +- .../configurationWebhooks/cardOrderItem.ts | 8 +- .../configurationWebhooks/deliveryContact.ts | 4 +- .../paymentInstrument.ts | 8 +- .../paymentInstrumentNotificationData.ts | 4 +- .../sweepConfigurationNotificationData.ts | 4 +- .../sweepConfigurationV2.ts | 12 +- .../disputeEventNotification.ts | 4 +- .../legalEntityManagement/businessLine.ts | 8 +- .../legalEntityManagement/businessLineInfo.ts | 8 +- .../businessLineInfoUpdate.ts | 8 +- .../capabilityProblem.ts | 4 +- .../capabilityProblemEntity.ts | 4 +- .../capabilitySettings.ts | 4 +- src/typings/legalEntityManagement/document.ts | 8 +- .../legalEntityManagement/individual.ts | 16 +- .../legalEntityManagement/legalEntity.ts | 20 +-- .../legalEntityCapability.ts | 8 +- .../legalEntityManagement/legalEntityInfo.ts | 20 +-- .../legalEntityInfoRequiredType.ts | 20 +-- .../numberAndBicAccountIdentification.ts | 4 +- .../onboardingLinkInfo.ts | 4 +- .../legalEntityManagement/organization.ts | 20 +-- .../soleProprietorship.ts | 4 +- src/typings/legalEntityManagement/trust.ts | 4 +- .../unincorporatedPartnership.ts | 4 +- src/typings/management/accelInfo.ts | 4 +- src/typings/management/allowedOrigin.ts | 4 +- src/typings/management/apiCredential.ts | 4 +- src/typings/management/apiCredentialLinks.ts | 20 +-- src/typings/management/billingEntity.ts | 4 +- src/typings/management/cartesBancairesInfo.ts | 4 +- src/typings/management/company.ts | 4 +- .../management/companyApiCredential.ts | 4 +- src/typings/management/companyLinks.ts | 12 +- src/typings/management/companyUser.ts | 8 +- src/typings/management/connectivity.ts | 4 +- .../management/createAllowedOriginRequest.ts | 4 +- .../management/createApiCredentialResponse.ts | 4 +- .../createCompanyApiCredentialResponse.ts | 4 +- .../management/createCompanyUserResponse.ts | 8 +- .../management/createCompanyWebhookRequest.ts | 4 +- .../createMerchantWebhookRequest.ts | 4 +- src/typings/management/createUserResponse.ts | 8 +- src/typings/management/customNotification.ts | 4 +- src/typings/management/dinersInfo.ts | 4 +- .../management/genericPmWithTdiInfo.ts | 4 +- src/typings/management/jCBInfo.ts | 4 +- .../listCompanyApiCredentialsResponse.ts | 4 +- src/typings/management/listCompanyResponse.ts | 4 +- .../management/listCompanyUsersResponse.ts | 4 +- .../listMerchantApiCredentialsResponse.ts | 4 +- .../management/listMerchantResponse.ts | 4 +- .../management/listMerchantUsersResponse.ts | 4 +- src/typings/management/listStoresResponse.ts | 4 +- .../management/listTerminalsResponse.ts | 4 +- .../management/listWebhooksResponse.ts | 4 +- src/typings/management/meApiCredential.ts | 4 +- src/typings/management/merchant.ts | 4 +- src/typings/management/merchantLinks.ts | 12 +- src/typings/management/nexo.ts | 16 +- src/typings/management/nyceInfo.ts | 4 +- src/typings/management/paginationLinks.ts | 8 +- src/typings/management/paymentMethod.ts | 140 +++++++++--------- .../management/paymentMethodResponse.ts | 4 +- .../management/paymentMethodSetupInfo.ts | 140 +++++++++--------- src/typings/management/profile.ts | 16 +- src/typings/management/pulseInfo.ts | 4 +- src/typings/management/refunds.ts | 4 +- src/typings/management/shippingLocation.ts | 8 +- .../management/splitConfigurationLogic.ts | 4 +- src/typings/management/starInfo.ts | 4 +- src/typings/management/store.ts | 12 +- src/typings/management/storeAndForward.ts | 4 +- .../management/storeCreationRequest.ts | 4 +- .../storeCreationWithMerchantCodeRequest.ts | 4 +- src/typings/management/terminal.ts | 8 +- src/typings/management/terminalAssignment.ts | 4 +- .../management/terminalConnectivity.ts | 16 +- src/typings/management/terminalOrder.ts | 8 +- src/typings/management/terminalProduct.ts | 4 +- src/typings/management/terminalSettings.ts | 42 +++--- .../management/testCompanyWebhookRequest.ts | 4 +- src/typings/management/testWebhookRequest.ts | 4 +- .../management/updateCompanyUserRequest.ts | 4 +- .../management/updateCompanyWebhookRequest.ts | 4 +- .../management/updateMerchantUserRequest.ts | 4 +- .../updateMerchantWebhookRequest.ts | 4 +- .../management/updatePaymentMethodInfo.ts | 68 ++++----- .../updateSplitConfigurationLogicRequest.ts | 4 +- src/typings/management/updateStoreRequest.ts | 8 +- src/typings/management/user.ts | 8 +- src/typings/management/webhook.ts | 8 +- src/typings/management/webhookLinks.ts | 8 +- src/typings/management/wifiProfiles.ts | 4 +- .../managementWebhooks/capabilityProblem.ts | 4 +- .../capabilityProblemEntity.ts | 4 +- .../payment/adjustAuthorisationRequest.ts | 8 +- src/typings/payment/applicationInfo.ts | 24 +-- .../payment/authenticationResultResponse.ts | 8 +- src/typings/payment/cancelOrRefundRequest.ts | 8 +- src/typings/payment/cancelRequest.ts | 8 +- src/typings/payment/captureRequest.ts | 8 +- src/typings/payment/donationRequest.ts | 4 +- src/typings/payment/forexQuote.ts | 16 +- .../payment/fraudCheckResultWrapper.ts | 4 +- src/typings/payment/fundDestination.ts | 16 +- src/typings/payment/fundSource.ts | 12 +- src/typings/payment/merchantRiskIndicator.ts | 4 +- src/typings/payment/paymentRequest.ts | 80 +++++----- src/typings/payment/paymentRequest3d.ts | 52 +++---- src/typings/payment/paymentRequest3ds2.ts | 52 +++---- src/typings/payment/paymentResult.ts | 8 +- src/typings/payment/refundRequest.ts | 8 +- src/typings/payment/split.ts | 4 +- src/typings/payment/technicalCancelRequest.ts | 12 +- src/typings/payment/threeDS2RequestData.ts | 32 ++-- src/typings/payment/threeDS2ResultResponse.ts | 4 +- .../payment/voidPendingRefundRequest.ts | 12 +- src/typings/payout/fraudCheckResultWrapper.ts | 4 +- src/typings/payout/fundSource.ts | 12 +- src/typings/payout/payoutRequest.ts | 20 +-- src/typings/payout/payoutResponse.ts | 8 +- .../payout/storeDetailAndSubmitRequest.ts | 16 +- src/typings/payout/storeDetailRequest.ts | 16 +- src/typings/payout/submitRequest.ts | 4 +- src/typings/recurring/permit.ts | 4 +- src/typings/recurring/permitRestriction.ts | 8 +- src/typings/recurring/recurringDetail.ts | 20 +-- .../recurring/recurringDetailWrapper.ts | 4 +- .../recurring/recurringDetailsRequest.ts | 4 +- .../scheduleAccountUpdaterRequest.ts | 4 +- .../reportWebhooks/reportNotificationData.ts | 8 +- .../storedValueBalanceCheckRequest.ts | 4 +- .../storedValueBalanceCheckResponse.ts | 4 +- .../storedValueBalanceMergeRequest.ts | 4 +- .../storedValueBalanceMergeResponse.ts | 4 +- .../storedValue/storedValueIssueRequest.ts | 4 +- .../storedValue/storedValueIssueResponse.ts | 4 +- .../storedValue/storedValueLoadResponse.ts | 4 +- .../storedValueStatusChangeRequest.ts | 4 +- .../storedValueStatusChangeResponse.ts | 4 +- .../storedValue/storedValueVoidResponse.ts | 4 +- .../getTerminalDetailsResponse.ts | 4 +- src/typings/terminalManagement/store.ts | 4 +- src/typings/transactionWebhooks/issuedCard.ts | 4 +- .../transactionWebhooks/transaction.ts | 8 +- .../transferWebhooks/amountAdjustment.ts | 4 +- src/typings/transferWebhooks/bankAccountV3.ts | 4 +- .../transferWebhooks/counterpartyV3.ts | 12 +- src/typings/transferWebhooks/issuedCard.ts | 4 +- src/typings/transferWebhooks/merchantData.ts | 4 +- .../transferWebhooks/merchantPurchaseData.ts | 4 +- .../numberAndBicAccountIdentification.ts | 4 +- .../transferWebhooks/partyIdentification.ts | 4 +- .../transactionEventViolation.ts | 8 +- src/typings/transferWebhooks/transferData.ts | 28 ++-- src/typings/transferWebhooks/transferEvent.ts | 16 +- .../transferNotificationCounterParty.ts | 12 +- src/typings/transfers/amountAdjustment.ts | 4 +- src/typings/transfers/bankAccountV3.ts | 4 +- src/typings/transfers/capitalGrant.ts | 16 +- src/typings/transfers/capitalGrantInfo.ts | 4 +- src/typings/transfers/counterpartyInfoV3.ts | 8 +- src/typings/transfers/counterpartyV3.ts | 12 +- .../transfers/findTransfersResponse.ts | 4 +- src/typings/transfers/issuedCard.ts | 4 +- src/typings/transfers/links.ts | 8 +- src/typings/transfers/merchantData.ts | 4 +- src/typings/transfers/merchantPurchaseData.ts | 4 +- .../numberAndBicAccountIdentification.ts | 4 +- src/typings/transfers/partyIdentification.ts | 4 +- src/typings/transfers/repayment.ts | 8 +- src/typings/transfers/transaction.ts | 8 +- .../transfers/transactionEventViolation.ts | 8 +- .../transfers/transactionSearchResponse.ts | 4 +- src/typings/transfers/transfer.ts | 20 +-- src/typings/transfers/transferData.ts | 28 ++-- src/typings/transfers/transferEvent.ts | 16 +- src/typings/transfers/transferInfo.ts | 8 +- .../transferNotificationCounterParty.ts | 12 +- .../transfers/ultimatePartyIdentification.ts | 4 +- 349 files changed, 1579 insertions(+), 1506 deletions(-) diff --git a/src/services/balancePlatform/accountHoldersApi.ts b/src/services/balancePlatform/accountHoldersApi.ts index 2e1a9e645..b61a5aba1 100644 --- a/src/services/balancePlatform/accountHoldersApi.ts +++ b/src/services/balancePlatform/accountHoldersApi.ts @@ -16,6 +16,7 @@ import { AccountHolderUpdateRequest, GetTaxFormResponse, PaginatedBalanceAccountsResponse, + RestServiceError, TransactionRulesResponse, ObjectSerializer } from "../../typings/balancePlatform/models"; @@ -121,7 +122,7 @@ export class AccountHoldersApi extends Service { * @param year {@link number } The tax year in YYYY format for the tax form you want to retrieve * @return {@link GetTaxFormResponse } */ - public async getTaxForm(id: string, formType?: "US1099k" | "US1099nec", year?: number, requestOptions?: IRequest.Options): Promise { + public async getTaxForm(id: string, formType?: 'US1099k' | 'US1099nec', year?: number, 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/balanceAccountsApi.ts b/src/services/balancePlatform/balanceAccountsApi.ts index 1c4c09c34..3d8249f10 100644 --- a/src/services/balancePlatform/balanceAccountsApi.ts +++ b/src/services/balancePlatform/balanceAccountsApi.ts @@ -17,6 +17,7 @@ import { BalanceSweepConfigurationsResponse, CreateSweepConfigurationV2, PaginatedPaymentInstrumentsResponse, + RestServiceError, SweepConfigurationV2, TransactionRulesResponse, UpdateSweepConfigurationV2, diff --git a/src/services/balancePlatform/bankAccountValidationApi.ts b/src/services/balancePlatform/bankAccountValidationApi.ts index cb5f174f8..e58593d70 100644 --- a/src/services/balancePlatform/bankAccountValidationApi.ts +++ b/src/services/balancePlatform/bankAccountValidationApi.ts @@ -12,6 +12,7 @@ import Service from "../../service"; import Client from "../../client"; import { BankAccountIdentificationValidationRequest, + RestServiceError, ObjectSerializer } from "../../typings/balancePlatform/models"; import { IRequest } from "../../typings/requestOptions"; diff --git a/src/services/balancePlatform/cardOrdersApi.ts b/src/services/balancePlatform/cardOrdersApi.ts index cb95622e0..990c03d5c 100644 --- a/src/services/balancePlatform/cardOrdersApi.ts +++ b/src/services/balancePlatform/cardOrdersApi.ts @@ -13,6 +13,7 @@ import Client from "../../client"; import { PaginatedGetCardOrderItemResponse, PaginatedGetCardOrderResponse, + RestServiceError, ObjectSerializer } from "../../typings/balancePlatform/models"; import { IRequest } from "../../typings/requestOptions"; diff --git a/src/services/balancePlatform/grantAccountsApi.ts b/src/services/balancePlatform/grantAccountsApi.ts index 8127a64f0..7612e2016 100644 --- a/src/services/balancePlatform/grantAccountsApi.ts +++ b/src/services/balancePlatform/grantAccountsApi.ts @@ -12,6 +12,7 @@ import Service from "../../service"; import Client from "../../client"; import { CapitalGrantAccount, + RestServiceError, ObjectSerializer } from "../../typings/balancePlatform/models"; import { IRequest } from "../../typings/requestOptions"; diff --git a/src/services/balancePlatform/grantOffersApi.ts b/src/services/balancePlatform/grantOffersApi.ts index fa3298ff5..84d1b4d03 100644 --- a/src/services/balancePlatform/grantOffersApi.ts +++ b/src/services/balancePlatform/grantOffersApi.ts @@ -13,6 +13,7 @@ import Client from "../../client"; import { GrantOffer, GrantOffers, + RestServiceError, ObjectSerializer } from "../../typings/balancePlatform/models"; import { IRequest } from "../../typings/requestOptions"; diff --git a/src/services/balancePlatform/manageCardPINApi.ts b/src/services/balancePlatform/manageCardPINApi.ts index d550c4ece..c94f194b0 100644 --- a/src/services/balancePlatform/manageCardPINApi.ts +++ b/src/services/balancePlatform/manageCardPINApi.ts @@ -14,6 +14,7 @@ import { PinChangeRequest, PinChangeResponse, PublicKeyResponse, + RestServiceError, RevealPinRequest, RevealPinResponse, ObjectSerializer diff --git a/src/services/balancePlatform/manageSCADevicesApi.ts b/src/services/balancePlatform/manageSCADevicesApi.ts index d15464bef..0499bedfc 100644 --- a/src/services/balancePlatform/manageSCADevicesApi.ts +++ b/src/services/balancePlatform/manageSCADevicesApi.ts @@ -14,6 +14,7 @@ import { RegisterSCAFinalResponse, RegisterSCARequest, RegisterSCAResponse, + RestServiceError, SearchRegisteredDevicesResponse, ObjectSerializer } from "../../typings/balancePlatform/models"; diff --git a/src/services/balancePlatform/networkTokensApi.ts b/src/services/balancePlatform/networkTokensApi.ts index b30105e81..8620e5b5a 100644 --- a/src/services/balancePlatform/networkTokensApi.ts +++ b/src/services/balancePlatform/networkTokensApi.ts @@ -12,6 +12,7 @@ import Service from "../../service"; import Client from "../../client"; import { GetNetworkTokenResponse, + RestServiceError, UpdateNetworkTokenRequest, ObjectSerializer } from "../../typings/balancePlatform/models"; diff --git a/src/services/balancePlatform/paymentInstrumentGroupsApi.ts b/src/services/balancePlatform/paymentInstrumentGroupsApi.ts index 934568c13..603d1b874 100644 --- a/src/services/balancePlatform/paymentInstrumentGroupsApi.ts +++ b/src/services/balancePlatform/paymentInstrumentGroupsApi.ts @@ -13,6 +13,7 @@ import Client from "../../client"; import { PaymentInstrumentGroup, PaymentInstrumentGroupInfo, + RestServiceError, TransactionRulesResponse, ObjectSerializer } from "../../typings/balancePlatform/models"; diff --git a/src/services/balancePlatform/paymentInstrumentsApi.ts b/src/services/balancePlatform/paymentInstrumentsApi.ts index 9f9a68fea..78536c29c 100644 --- a/src/services/balancePlatform/paymentInstrumentsApi.ts +++ b/src/services/balancePlatform/paymentInstrumentsApi.ts @@ -18,6 +18,7 @@ import { PaymentInstrumentRevealRequest, PaymentInstrumentRevealResponse, PaymentInstrumentUpdateRequest, + RestServiceError, TransactionRulesResponse, UpdatePaymentInstrument, ObjectSerializer diff --git a/src/services/balancePlatform/platformApi.ts b/src/services/balancePlatform/platformApi.ts index 0b4128ab8..7f909fc60 100644 --- a/src/services/balancePlatform/platformApi.ts +++ b/src/services/balancePlatform/platformApi.ts @@ -13,6 +13,7 @@ import Client from "../../client"; import { BalancePlatform, PaginatedAccountHoldersResponse, + RestServiceError, TransactionRulesResponse, ObjectSerializer } from "../../typings/balancePlatform/models"; diff --git a/src/services/balancePlatform/transactionRulesApi.ts b/src/services/balancePlatform/transactionRulesApi.ts index b76f5687c..2a0cf66a5 100644 --- a/src/services/balancePlatform/transactionRulesApi.ts +++ b/src/services/balancePlatform/transactionRulesApi.ts @@ -10,7 +10,8 @@ import getJsonResponse from "../../helpers/getJsonResponse"; import Service from "../../service"; import Client from "../../client"; -import { +import { + RestServiceError, TransactionRule, TransactionRuleInfo, TransactionRuleResponse, diff --git a/src/services/balancePlatform/transferRoutesApi.ts b/src/services/balancePlatform/transferRoutesApi.ts index 8121a3ab6..585e29eaa 100644 --- a/src/services/balancePlatform/transferRoutesApi.ts +++ b/src/services/balancePlatform/transferRoutesApi.ts @@ -10,7 +10,8 @@ import getJsonResponse from "../../helpers/getJsonResponse"; import Service from "../../service"; import Client from "../../client"; -import { +import { + RestServiceError, TransferRouteRequest, TransferRouteResponse, ObjectSerializer diff --git a/src/services/binLookupApi.ts b/src/services/binLookupApi.ts index e65887989..f5ae3df91 100644 --- a/src/services/binLookupApi.ts +++ b/src/services/binLookupApi.ts @@ -12,6 +12,7 @@ import getJsonResponse from "../helpers/getJsonResponse"; import Service from "../service"; 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"; import { IRequest } from "../typings/requestOptions"; diff --git a/src/services/checkout/donationsApi.ts b/src/services/checkout/donationsApi.ts index b85b89a07..e53db3720 100644 --- a/src/services/checkout/donationsApi.ts +++ b/src/services/checkout/donationsApi.ts @@ -15,6 +15,7 @@ import { DonationCampaignsResponse, DonationPaymentRequest, DonationPaymentResponse, + ServiceError, ObjectSerializer } from "../../typings/checkout/models"; import { IRequest } from "../../typings/requestOptions"; diff --git a/src/services/checkout/modificationsApi.ts b/src/services/checkout/modificationsApi.ts index 1b79c9297..ac7d1e267 100644 --- a/src/services/checkout/modificationsApi.ts +++ b/src/services/checkout/modificationsApi.ts @@ -21,6 +21,7 @@ import { PaymentRefundResponse, PaymentReversalRequest, PaymentReversalResponse, + ServiceError, StandalonePaymentCancelRequest, StandalonePaymentCancelResponse, ObjectSerializer diff --git a/src/services/checkout/ordersApi.ts b/src/services/checkout/ordersApi.ts index 530fc30a1..4ae182408 100644 --- a/src/services/checkout/ordersApi.ts +++ b/src/services/checkout/ordersApi.ts @@ -17,6 +17,7 @@ import { CancelOrderResponse, CreateOrderRequest, CreateOrderResponse, + ServiceError, ObjectSerializer } from "../../typings/checkout/models"; import { IRequest } from "../../typings/requestOptions"; diff --git a/src/services/checkout/paymentLinksApi.ts b/src/services/checkout/paymentLinksApi.ts index 6fcad85cf..548d781a8 100644 --- a/src/services/checkout/paymentLinksApi.ts +++ b/src/services/checkout/paymentLinksApi.ts @@ -13,6 +13,7 @@ import Client from "../../client"; import { PaymentLinkRequest, PaymentLinkResponse, + ServiceError, UpdatePaymentLinkRequest, ObjectSerializer } from "../../typings/checkout/models"; diff --git a/src/services/checkout/paymentsApi.ts b/src/services/checkout/paymentsApi.ts index 57e2fb3f6..bd6850aca 100644 --- a/src/services/checkout/paymentsApi.ts +++ b/src/services/checkout/paymentsApi.ts @@ -21,6 +21,7 @@ import { PaymentMethodsResponse, PaymentRequest, PaymentResponse, + ServiceError, SessionResultResponse, ObjectSerializer } from "../../typings/checkout/models"; diff --git a/src/services/checkout/utilityApi.ts b/src/services/checkout/utilityApi.ts index 95a0582aa..156549273 100644 --- a/src/services/checkout/utilityApi.ts +++ b/src/services/checkout/utilityApi.ts @@ -15,6 +15,7 @@ import { ApplePaySessionResponse, PaypalUpdateOrderRequest, PaypalUpdateOrderResponse, + ServiceError, UtilityRequest, UtilityResponse, ObjectSerializer diff --git a/src/services/dataProtectionApi.ts b/src/services/dataProtectionApi.ts index 7c2a0f30c..07db4b737 100644 --- a/src/services/dataProtectionApi.ts +++ b/src/services/dataProtectionApi.ts @@ -10,6 +10,7 @@ import Client from "../client"; import getJsonResponse from "../helpers/getJsonResponse"; import Service from "../service"; +import { ServiceError } from "../typings/dataProtection/models"; import { SubjectErasureByPspReferenceRequest } from "../typings/dataProtection/models"; import { SubjectErasureResponse } from "../typings/dataProtection/models"; import { IRequest } from "../typings/requestOptions"; diff --git a/src/services/disputesApi.ts b/src/services/disputesApi.ts index f2f61b18b..86b6f3de0 100644 --- a/src/services/disputesApi.ts +++ b/src/services/disputesApi.ts @@ -18,6 +18,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"; import { IRequest } from "../typings/requestOptions"; diff --git a/src/services/legalEntityManagement/businessLinesApi.ts b/src/services/legalEntityManagement/businessLinesApi.ts index 45ce6adaa..6c7796f6f 100644 --- a/src/services/legalEntityManagement/businessLinesApi.ts +++ b/src/services/legalEntityManagement/businessLinesApi.ts @@ -14,6 +14,7 @@ import { BusinessLine, BusinessLineInfo, BusinessLineInfoUpdate, + ServiceError, ObjectSerializer } from "../../typings/legalEntityManagement/models"; import { IRequest } from "../../typings/requestOptions"; diff --git a/src/services/legalEntityManagement/documentsApi.ts b/src/services/legalEntityManagement/documentsApi.ts index dbd3cb953..3a25c7d8a 100644 --- a/src/services/legalEntityManagement/documentsApi.ts +++ b/src/services/legalEntityManagement/documentsApi.ts @@ -12,6 +12,7 @@ import Service from "../../service"; import Client from "../../client"; import { Document, + ServiceError, ObjectSerializer } from "../../typings/legalEntityManagement/models"; import { IRequest } from "../../typings/requestOptions"; diff --git a/src/services/legalEntityManagement/hostedOnboardingApi.ts b/src/services/legalEntityManagement/hostedOnboardingApi.ts index a217be595..8467218db 100644 --- a/src/services/legalEntityManagement/hostedOnboardingApi.ts +++ b/src/services/legalEntityManagement/hostedOnboardingApi.ts @@ -15,6 +15,7 @@ import { OnboardingLinkInfo, OnboardingTheme, OnboardingThemes, + ServiceError, ObjectSerializer } from "../../typings/legalEntityManagement/models"; import { IRequest } from "../../typings/requestOptions"; diff --git a/src/services/legalEntityManagement/legalEntitiesApi.ts b/src/services/legalEntityManagement/legalEntitiesApi.ts index 1fc9b48e3..fb12a96a2 100644 --- a/src/services/legalEntityManagement/legalEntitiesApi.ts +++ b/src/services/legalEntityManagement/legalEntitiesApi.ts @@ -16,6 +16,7 @@ import { LegalEntity, LegalEntityInfo, LegalEntityInfoRequiredType, + ServiceError, VerificationErrors, ObjectSerializer } from "../../typings/legalEntityManagement/models"; diff --git a/src/services/legalEntityManagement/pCIQuestionnairesApi.ts b/src/services/legalEntityManagement/pCIQuestionnairesApi.ts index 82dd39283..e04ff6f70 100644 --- a/src/services/legalEntityManagement/pCIQuestionnairesApi.ts +++ b/src/services/legalEntityManagement/pCIQuestionnairesApi.ts @@ -19,6 +19,7 @@ import { GetPciQuestionnaireResponse, PciSigningRequest, PciSigningResponse, + ServiceError, ObjectSerializer } from "../../typings/legalEntityManagement/models"; import { IRequest } from "../../typings/requestOptions"; diff --git a/src/services/legalEntityManagement/taxEDeliveryConsentApi.ts b/src/services/legalEntityManagement/taxEDeliveryConsentApi.ts index 8dc4a1011..288149b2e 100644 --- a/src/services/legalEntityManagement/taxEDeliveryConsentApi.ts +++ b/src/services/legalEntityManagement/taxEDeliveryConsentApi.ts @@ -12,6 +12,7 @@ import Service from "../../service"; import Client from "../../client"; import { CheckTaxElectronicDeliveryConsentResponse, + ServiceError, SetTaxElectronicDeliveryConsentRequest, ObjectSerializer } from "../../typings/legalEntityManagement/models"; diff --git a/src/services/legalEntityManagement/termsOfServiceApi.ts b/src/services/legalEntityManagement/termsOfServiceApi.ts index 38d4df809..102d9ba26 100644 --- a/src/services/legalEntityManagement/termsOfServiceApi.ts +++ b/src/services/legalEntityManagement/termsOfServiceApi.ts @@ -18,6 +18,7 @@ import { GetTermsOfServiceAcceptanceInfosResponse, GetTermsOfServiceDocumentRequest, GetTermsOfServiceDocumentResponse, + ServiceError, ObjectSerializer } from "../../typings/legalEntityManagement/models"; import { IRequest } from "../../typings/requestOptions"; diff --git a/src/services/legalEntityManagement/transferInstrumentsApi.ts b/src/services/legalEntityManagement/transferInstrumentsApi.ts index 8e58ae184..7f6073adf 100644 --- a/src/services/legalEntityManagement/transferInstrumentsApi.ts +++ b/src/services/legalEntityManagement/transferInstrumentsApi.ts @@ -10,7 +10,8 @@ import getJsonResponse from "../../helpers/getJsonResponse"; import Service from "../../service"; import Client from "../../client"; -import { +import { + ServiceError, TransferInstrument, TransferInstrumentInfo, ObjectSerializer diff --git a/src/services/management/aPICredentialsCompanyLevelApi.ts b/src/services/management/aPICredentialsCompanyLevelApi.ts index 2822cbbce..9bdb6cb02 100644 --- a/src/services/management/aPICredentialsCompanyLevelApi.ts +++ b/src/services/management/aPICredentialsCompanyLevelApi.ts @@ -15,6 +15,7 @@ import { CreateCompanyApiCredentialRequest, CreateCompanyApiCredentialResponse, ListCompanyApiCredentialsResponse, + RestServiceError, UpdateCompanyApiCredentialRequest, ObjectSerializer } from "../../typings/management/models"; diff --git a/src/services/management/aPICredentialsMerchantLevelApi.ts b/src/services/management/aPICredentialsMerchantLevelApi.ts index 6dccd370c..86830c0d6 100644 --- a/src/services/management/aPICredentialsMerchantLevelApi.ts +++ b/src/services/management/aPICredentialsMerchantLevelApi.ts @@ -15,6 +15,7 @@ import { CreateApiCredentialResponse, CreateMerchantApiCredentialRequest, ListMerchantApiCredentialsResponse, + RestServiceError, UpdateMerchantApiCredentialRequest, ObjectSerializer } from "../../typings/management/models"; diff --git a/src/services/management/aPIKeyCompanyLevelApi.ts b/src/services/management/aPIKeyCompanyLevelApi.ts index c8a128d6e..0a1070979 100644 --- a/src/services/management/aPIKeyCompanyLevelApi.ts +++ b/src/services/management/aPIKeyCompanyLevelApi.ts @@ -12,6 +12,7 @@ import Service from "../../service"; import Client from "../../client"; import { GenerateApiKeyResponse, + RestServiceError, ObjectSerializer } from "../../typings/management/models"; import { IRequest } from "../../typings/requestOptions"; diff --git a/src/services/management/aPIKeyMerchantLevelApi.ts b/src/services/management/aPIKeyMerchantLevelApi.ts index a1f23dd3a..6b8740ab2 100644 --- a/src/services/management/aPIKeyMerchantLevelApi.ts +++ b/src/services/management/aPIKeyMerchantLevelApi.ts @@ -12,6 +12,7 @@ import Service from "../../service"; import Client from "../../client"; import { GenerateApiKeyResponse, + RestServiceError, ObjectSerializer } from "../../typings/management/models"; import { IRequest } from "../../typings/requestOptions"; diff --git a/src/services/management/accountCompanyLevelApi.ts b/src/services/management/accountCompanyLevelApi.ts index 21d1c5c42..1caa3bc7e 100644 --- a/src/services/management/accountCompanyLevelApi.ts +++ b/src/services/management/accountCompanyLevelApi.ts @@ -14,6 +14,7 @@ import { Company, ListCompanyResponse, ListMerchantResponse, + RestServiceError, ObjectSerializer } from "../../typings/management/models"; import { IRequest } from "../../typings/requestOptions"; diff --git a/src/services/management/accountMerchantLevelApi.ts b/src/services/management/accountMerchantLevelApi.ts index f8a1dee7d..3bd650245 100644 --- a/src/services/management/accountMerchantLevelApi.ts +++ b/src/services/management/accountMerchantLevelApi.ts @@ -16,6 +16,7 @@ import { ListMerchantResponse, Merchant, RequestActivationResponse, + RestServiceError, ObjectSerializer } from "../../typings/management/models"; import { IRequest } from "../../typings/requestOptions"; diff --git a/src/services/management/accountStoreLevelApi.ts b/src/services/management/accountStoreLevelApi.ts index 545afe5eb..b3d6c4d8c 100644 --- a/src/services/management/accountStoreLevelApi.ts +++ b/src/services/management/accountStoreLevelApi.ts @@ -12,6 +12,7 @@ import Service from "../../service"; import Client from "../../client"; import { ListStoresResponse, + RestServiceError, Store, StoreCreationRequest, StoreCreationWithMerchantCodeRequest, diff --git a/src/services/management/allowedOriginsCompanyLevelApi.ts b/src/services/management/allowedOriginsCompanyLevelApi.ts index 46489f6f5..cd220b1b6 100644 --- a/src/services/management/allowedOriginsCompanyLevelApi.ts +++ b/src/services/management/allowedOriginsCompanyLevelApi.ts @@ -13,6 +13,7 @@ import Client from "../../client"; import { AllowedOrigin, AllowedOriginsResponse, + RestServiceError, ObjectSerializer } from "../../typings/management/models"; import { IRequest } from "../../typings/requestOptions"; diff --git a/src/services/management/allowedOriginsMerchantLevelApi.ts b/src/services/management/allowedOriginsMerchantLevelApi.ts index be538d69b..c26620af1 100644 --- a/src/services/management/allowedOriginsMerchantLevelApi.ts +++ b/src/services/management/allowedOriginsMerchantLevelApi.ts @@ -13,6 +13,7 @@ import Client from "../../client"; import { AllowedOrigin, AllowedOriginsResponse, + RestServiceError, ObjectSerializer } from "../../typings/management/models"; import { IRequest } from "../../typings/requestOptions"; diff --git a/src/services/management/androidFilesCompanyLevelApi.ts b/src/services/management/androidFilesCompanyLevelApi.ts index b2c6ac73b..cb47700f1 100644 --- a/src/services/management/androidFilesCompanyLevelApi.ts +++ b/src/services/management/androidFilesCompanyLevelApi.ts @@ -15,6 +15,7 @@ import { AndroidAppsResponse, AndroidCertificatesResponse, ReprocessAndroidAppResponse, + RestServiceError, UploadAndroidAppResponse, UploadAndroidCertificateResponse, ObjectSerializer diff --git a/src/services/management/clientKeyCompanyLevelApi.ts b/src/services/management/clientKeyCompanyLevelApi.ts index ac6dd07b4..3369429bb 100644 --- a/src/services/management/clientKeyCompanyLevelApi.ts +++ b/src/services/management/clientKeyCompanyLevelApi.ts @@ -12,6 +12,7 @@ import Service from "../../service"; import Client from "../../client"; import { GenerateClientKeyResponse, + RestServiceError, ObjectSerializer } from "../../typings/management/models"; import { IRequest } from "../../typings/requestOptions"; diff --git a/src/services/management/clientKeyMerchantLevelApi.ts b/src/services/management/clientKeyMerchantLevelApi.ts index 4e4f9c4a0..eb2c13d28 100644 --- a/src/services/management/clientKeyMerchantLevelApi.ts +++ b/src/services/management/clientKeyMerchantLevelApi.ts @@ -12,6 +12,7 @@ import Service from "../../service"; import Client from "../../client"; import { GenerateClientKeyResponse, + RestServiceError, ObjectSerializer } from "../../typings/management/models"; import { IRequest } from "../../typings/requestOptions"; diff --git a/src/services/management/myAPICredentialApi.ts b/src/services/management/myAPICredentialApi.ts index e01f51baa..4d80fd02f 100644 --- a/src/services/management/myAPICredentialApi.ts +++ b/src/services/management/myAPICredentialApi.ts @@ -16,6 +16,7 @@ import { CreateAllowedOriginRequest, GenerateClientKeyResponse, MeApiCredential, + RestServiceError, ObjectSerializer } from "../../typings/management/models"; import { IRequest } from "../../typings/requestOptions"; diff --git a/src/services/management/paymentMethodsMerchantLevelApi.ts b/src/services/management/paymentMethodsMerchantLevelApi.ts index 210b8134f..4953f5af4 100644 --- a/src/services/management/paymentMethodsMerchantLevelApi.ts +++ b/src/services/management/paymentMethodsMerchantLevelApi.ts @@ -15,6 +15,7 @@ import { PaymentMethod, PaymentMethodResponse, PaymentMethodSetupInfo, + RestServiceError, UpdatePaymentMethodInfo, ObjectSerializer } from "../../typings/management/models"; diff --git a/src/services/management/payoutSettingsMerchantLevelApi.ts b/src/services/management/payoutSettingsMerchantLevelApi.ts index 6574022ee..b70bce7f8 100644 --- a/src/services/management/payoutSettingsMerchantLevelApi.ts +++ b/src/services/management/payoutSettingsMerchantLevelApi.ts @@ -14,6 +14,7 @@ import { PayoutSettings, PayoutSettingsRequest, PayoutSettingsResponse, + RestServiceError, UpdatePayoutSettingsRequest, ObjectSerializer } from "../../typings/management/models"; diff --git a/src/services/management/splitConfigurationMerchantLevelApi.ts b/src/services/management/splitConfigurationMerchantLevelApi.ts index 202d77de0..a266ee9be 100644 --- a/src/services/management/splitConfigurationMerchantLevelApi.ts +++ b/src/services/management/splitConfigurationMerchantLevelApi.ts @@ -10,7 +10,8 @@ import getJsonResponse from "../../helpers/getJsonResponse"; import Service from "../../service"; import Client from "../../client"; -import { +import { + RestServiceError, SplitConfiguration, SplitConfigurationList, SplitConfigurationRule, diff --git a/src/services/management/terminalActionsCompanyLevelApi.ts b/src/services/management/terminalActionsCompanyLevelApi.ts index ff1903e73..5cdad0cac 100644 --- a/src/services/management/terminalActionsCompanyLevelApi.ts +++ b/src/services/management/terminalActionsCompanyLevelApi.ts @@ -13,6 +13,7 @@ import Client from "../../client"; import { ExternalTerminalAction, ListExternalTerminalActionsResponse, + RestServiceError, ObjectSerializer } from "../../typings/management/models"; import { IRequest } from "../../typings/requestOptions"; diff --git a/src/services/management/terminalActionsTerminalLevelApi.ts b/src/services/management/terminalActionsTerminalLevelApi.ts index b9e729cf2..783686fe0 100644 --- a/src/services/management/terminalActionsTerminalLevelApi.ts +++ b/src/services/management/terminalActionsTerminalLevelApi.ts @@ -10,7 +10,8 @@ import getJsonResponse from "../../helpers/getJsonResponse"; import Service from "../../service"; import Client from "../../client"; -import { +import { + RestServiceError, ScheduleTerminalActionsRequest, ScheduleTerminalActionsResponse, ObjectSerializer diff --git a/src/services/management/terminalOrdersCompanyLevelApi.ts b/src/services/management/terminalOrdersCompanyLevelApi.ts index f444bb764..6b353199d 100644 --- a/src/services/management/terminalOrdersCompanyLevelApi.ts +++ b/src/services/management/terminalOrdersCompanyLevelApi.ts @@ -12,6 +12,7 @@ import Service from "../../service"; import Client from "../../client"; import { BillingEntitiesResponse, + RestServiceError, ShippingLocation, ShippingLocationsResponse, TerminalModelsResponse, diff --git a/src/services/management/terminalOrdersMerchantLevelApi.ts b/src/services/management/terminalOrdersMerchantLevelApi.ts index 06e39cea5..6caf70726 100644 --- a/src/services/management/terminalOrdersMerchantLevelApi.ts +++ b/src/services/management/terminalOrdersMerchantLevelApi.ts @@ -12,6 +12,7 @@ import Service from "../../service"; import Client from "../../client"; import { BillingEntitiesResponse, + RestServiceError, ShippingLocation, ShippingLocationsResponse, TerminalModelsResponse, diff --git a/src/services/management/terminalSettingsCompanyLevelApi.ts b/src/services/management/terminalSettingsCompanyLevelApi.ts index e56221a1e..5fb48db84 100644 --- a/src/services/management/terminalSettingsCompanyLevelApi.ts +++ b/src/services/management/terminalSettingsCompanyLevelApi.ts @@ -12,6 +12,7 @@ import Service from "../../service"; import Client from "../../client"; import { Logo, + RestServiceError, TerminalSettings, ObjectSerializer } from "../../typings/management/models"; diff --git a/src/services/management/terminalSettingsMerchantLevelApi.ts b/src/services/management/terminalSettingsMerchantLevelApi.ts index 6c41e12fd..cf97028e8 100644 --- a/src/services/management/terminalSettingsMerchantLevelApi.ts +++ b/src/services/management/terminalSettingsMerchantLevelApi.ts @@ -12,6 +12,7 @@ import Service from "../../service"; import Client from "../../client"; import { Logo, + RestServiceError, TerminalSettings, ObjectSerializer } from "../../typings/management/models"; diff --git a/src/services/management/terminalSettingsStoreLevelApi.ts b/src/services/management/terminalSettingsStoreLevelApi.ts index 89b2f4373..7f8711311 100644 --- a/src/services/management/terminalSettingsStoreLevelApi.ts +++ b/src/services/management/terminalSettingsStoreLevelApi.ts @@ -12,6 +12,7 @@ import Service from "../../service"; import Client from "../../client"; import { Logo, + RestServiceError, TerminalSettings, ObjectSerializer } from "../../typings/management/models"; diff --git a/src/services/management/terminalSettingsTerminalLevelApi.ts b/src/services/management/terminalSettingsTerminalLevelApi.ts index 1893a17c6..0e706e759 100644 --- a/src/services/management/terminalSettingsTerminalLevelApi.ts +++ b/src/services/management/terminalSettingsTerminalLevelApi.ts @@ -12,6 +12,7 @@ import Service from "../../service"; import Client from "../../client"; import { Logo, + RestServiceError, TerminalSettings, ObjectSerializer } from "../../typings/management/models"; diff --git a/src/services/management/terminalsTerminalLevelApi.ts b/src/services/management/terminalsTerminalLevelApi.ts index c0ef8f83f..b230c217b 100644 --- a/src/services/management/terminalsTerminalLevelApi.ts +++ b/src/services/management/terminalsTerminalLevelApi.ts @@ -12,6 +12,7 @@ import Service from "../../service"; import Client from "../../client"; import { ListTerminalsResponse, + RestServiceError, TerminalReassignmentRequest, ObjectSerializer } from "../../typings/management/models"; diff --git a/src/services/management/usersCompanyLevelApi.ts b/src/services/management/usersCompanyLevelApi.ts index 9af238a0a..55f9a62c4 100644 --- a/src/services/management/usersCompanyLevelApi.ts +++ b/src/services/management/usersCompanyLevelApi.ts @@ -15,6 +15,7 @@ import { CreateCompanyUserRequest, CreateCompanyUserResponse, ListCompanyUsersResponse, + RestServiceError, UpdateCompanyUserRequest, ObjectSerializer } from "../../typings/management/models"; diff --git a/src/services/management/usersMerchantLevelApi.ts b/src/services/management/usersMerchantLevelApi.ts index 7726040e5..ebb82d2bc 100644 --- a/src/services/management/usersMerchantLevelApi.ts +++ b/src/services/management/usersMerchantLevelApi.ts @@ -14,6 +14,7 @@ import { CreateMerchantUserRequest, CreateUserResponse, ListMerchantUsersResponse, + RestServiceError, UpdateMerchantUserRequest, User, ObjectSerializer diff --git a/src/services/management/webhooksCompanyLevelApi.ts b/src/services/management/webhooksCompanyLevelApi.ts index 802aebf34..c3c85c61d 100644 --- a/src/services/management/webhooksCompanyLevelApi.ts +++ b/src/services/management/webhooksCompanyLevelApi.ts @@ -14,6 +14,7 @@ import { CreateCompanyWebhookRequest, GenerateHmacKeyResponse, ListWebhooksResponse, + RestServiceError, TestCompanyWebhookRequest, TestWebhookResponse, UpdateCompanyWebhookRequest, diff --git a/src/services/management/webhooksMerchantLevelApi.ts b/src/services/management/webhooksMerchantLevelApi.ts index e41f15630..9b0b2dc52 100644 --- a/src/services/management/webhooksMerchantLevelApi.ts +++ b/src/services/management/webhooksMerchantLevelApi.ts @@ -14,6 +14,7 @@ import { CreateMerchantWebhookRequest, GenerateHmacKeyResponse, ListWebhooksResponse, + RestServiceError, TestWebhookRequest, TestWebhookResponse, UpdateMerchantWebhookRequest, diff --git a/src/services/paymentApi.ts b/src/services/paymentApi.ts index d0b9076d7..d06272faa 100644 --- a/src/services/paymentApi.ts +++ b/src/services/paymentApi.ts @@ -23,6 +23,7 @@ import { PaymentRequest3d } from "../typings/payment/models"; import { PaymentRequest3ds2 } from "../typings/payment/models"; import { PaymentResult } from "../typings/payment/models"; import { RefundRequest } from "../typings/payment/models"; +import { ServiceError } from "../typings/payment/models"; import { TechnicalCancelRequest } from "../typings/payment/models"; import { ThreeDS2ResultRequest } from "../typings/payment/models"; import { ThreeDS2ResultResponse } from "../typings/payment/models"; diff --git a/src/services/paymentsAppApi.ts b/src/services/paymentsAppApi.ts index fc21763bf..a8cc47838 100644 --- a/src/services/paymentsAppApi.ts +++ b/src/services/paymentsAppApi.ts @@ -12,6 +12,7 @@ import getJsonResponse from "../helpers/getJsonResponse"; import Service from "../service"; import { BoardingTokenRequest } from "../typings/paymentsApp/models"; import { BoardingTokenResponse } from "../typings/paymentsApp/models"; +import { DefaultErrorResponseEntity } from "../typings/paymentsApp/models"; import { PaymentsAppResponse } from "../typings/paymentsApp/models"; import { IRequest } from "../typings/requestOptions"; import Resource from "./resource"; diff --git a/src/services/payout/initializationApi.ts b/src/services/payout/initializationApi.ts index 03fce51d8..d4441c599 100644 --- a/src/services/payout/initializationApi.ts +++ b/src/services/payout/initializationApi.ts @@ -10,7 +10,8 @@ import getJsonResponse from "../../helpers/getJsonResponse"; import Service from "../../service"; import Client from "../../client"; -import { +import { + ServiceError, StoreDetailAndSubmitRequest, StoreDetailAndSubmitResponse, StoreDetailRequest, diff --git a/src/services/payout/instantPayoutsApi.ts b/src/services/payout/instantPayoutsApi.ts index 421a4147f..2b58a4edd 100644 --- a/src/services/payout/instantPayoutsApi.ts +++ b/src/services/payout/instantPayoutsApi.ts @@ -13,6 +13,7 @@ import Client from "../../client"; import { PayoutRequest, PayoutResponse, + ServiceError, ObjectSerializer } from "../../typings/payout/models"; import { IRequest } from "../../typings/requestOptions"; diff --git a/src/services/payout/reviewingApi.ts b/src/services/payout/reviewingApi.ts index a5e014232..e1903496a 100644 --- a/src/services/payout/reviewingApi.ts +++ b/src/services/payout/reviewingApi.ts @@ -13,6 +13,7 @@ import Client from "../../client"; import { ModifyRequest, ModifyResponse, + ServiceError, ObjectSerializer } from "../../typings/payout/models"; import { IRequest } from "../../typings/requestOptions"; diff --git a/src/services/recurringApi.ts b/src/services/recurringApi.ts index f4d672a04..daf1c7005 100644 --- a/src/services/recurringApi.ts +++ b/src/services/recurringApi.ts @@ -22,6 +22,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"; import { IRequest } from "../typings/requestOptions"; import Resource from "./resource"; import { ObjectSerializer } from "../typings/recurring/models"; diff --git a/src/services/storedValueApi.ts b/src/services/storedValueApi.ts index 28425347d..e675d176e 100644 --- a/src/services/storedValueApi.ts +++ b/src/services/storedValueApi.ts @@ -10,6 +10,7 @@ import Client from "../client"; import getJsonResponse from "../helpers/getJsonResponse"; import Service from "../service"; +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/terminalManagementApi.ts b/src/services/terminalManagementApi.ts index 7effe9e62..b654d9cb8 100644 --- a/src/services/terminalManagementApi.ts +++ b/src/services/terminalManagementApi.ts @@ -20,6 +20,7 @@ import { GetTerminalDetailsRequest } from "../typings/terminalManagement/models" import { GetTerminalDetailsResponse } from "../typings/terminalManagement/models"; import { GetTerminalsUnderAccountRequest } from "../typings/terminalManagement/models"; import { GetTerminalsUnderAccountResponse } from "../typings/terminalManagement/models"; +import { ServiceError } from "../typings/terminalManagement/models"; import { IRequest } from "../typings/requestOptions"; import Resource from "./resource"; import { ObjectSerializer } from "../typings/terminalManagement/models"; diff --git a/src/services/transfers/capitalApi.ts b/src/services/transfers/capitalApi.ts index a5a3e2c3e..b7f19bc5c 100644 --- a/src/services/transfers/capitalApi.ts +++ b/src/services/transfers/capitalApi.ts @@ -14,6 +14,7 @@ import { CapitalGrant, CapitalGrantInfo, CapitalGrants, + RestServiceError, ObjectSerializer } from "../../typings/transfers/models"; import { IRequest } from "../../typings/requestOptions"; diff --git a/src/services/transfers/transactionsApi.ts b/src/services/transfers/transactionsApi.ts index 3146cedb6..18a397b64 100644 --- a/src/services/transfers/transactionsApi.ts +++ b/src/services/transfers/transactionsApi.ts @@ -10,7 +10,8 @@ import getJsonResponse from "../../helpers/getJsonResponse"; import Service from "../../service"; import Client from "../../client"; -import { +import { + RestServiceError, Transaction, TransactionSearchResponse, ObjectSerializer diff --git a/src/services/transfers/transfersApi.ts b/src/services/transfers/transfersApi.ts index 1d51f9e68..1a6bcea2e 100644 --- a/src/services/transfers/transfersApi.ts +++ b/src/services/transfers/transfersApi.ts @@ -16,9 +16,11 @@ import { FindTransfersResponse, ReturnTransferRequest, ReturnTransferResponse, + ServiceError, Transfer, TransferData, TransferInfo, + TransferServiceRestServiceError, ObjectSerializer } from "../../typings/transfers/models"; import { IRequest } from "../../typings/requestOptions"; @@ -81,7 +83,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(balancePlatform?: string, accountHolderId?: string, balanceAccountId?: string, paymentInstrumentId?: string, reference?: string, category?: "bank" | "card" | "grants" | "internal" | "issuedCard" | "migration" | "platformPayment" | "topUp" | "upgrade", createdSince?: Date, createdUntil?: Date, cursor?: string, limit?: number, requestOptions?: IRequest.Options): Promise { + public async getAllTransfers(balancePlatform?: string, accountHolderId?: string, balanceAccountId?: string, paymentInstrumentId?: string, reference?: string, category?: 'bank' | 'card' | 'grants' | 'internal' | 'issuedCard' | 'migration' | 'platformPayment' | 'topUp' | 'upgrade', createdSince?: Date, createdUntil?: Date, cursor?: string, limit?: number, requestOptions?: IRequest.Options): Promise { const endpoint = `${this.baseUrl}/transfers`; const resource = new Resource(this, endpoint); const hasDefinedQueryParams = balancePlatform ?? accountHolderId ?? balanceAccountId ?? paymentInstrumentId ?? reference ?? category ?? createdSince ?? createdUntil ?? cursor ?? limit; diff --git a/src/typings/acsWebhooks/authenticationInfo.ts b/src/typings/acsWebhooks/authenticationInfo.ts index 6f905e78e..87ca26a44 100644 --- a/src/typings/acsWebhooks/authenticationInfo.ts +++ b/src/typings/acsWebhooks/authenticationInfo.ts @@ -14,7 +14,7 @@ export class AuthenticationInfo { * Universally unique transaction identifier assigned by the Access Control Server (ACS) to identify a single transaction. */ 'acsTransId': string; - 'challenge'?: ChallengeInfo; + 'challenge'?: ChallengeInfo | null; /** * Specifies a preference for receiving a challenge. Possible values: * **01**: No preference * **02**: No challenge requested * **03**: Challenge requested (preference) * **04**: Challenge requested (mandate) * **05**: No challenge requested (transactional risk analysis is already performed) * **07**: No challenge requested (SCA is already performed) * **08**: No challenge requested (trusted beneficiaries exemption of no challenge required) * **09**: Challenge requested (trusted beneficiaries prompt requested if challenge required) * **80**: No challenge requested (secure corporate payment with Mastercard) * **82**: No challenge requested (secure corporate payment with Visa) */ @@ -79,7 +79,7 @@ export class AuthenticationInfo { { "name": "challenge", "baseName": "challenge", - "type": "ChallengeInfo" + "type": "ChallengeInfo | null" }, { "name": "challengeIndicator", diff --git a/src/typings/balancePlatform/accountHolder.ts b/src/typings/balancePlatform/accountHolder.ts index 7f08f216c..451bdd371 100644 --- a/src/typings/balancePlatform/accountHolder.ts +++ b/src/typings/balancePlatform/accountHolder.ts @@ -23,7 +23,7 @@ export class AccountHolder { /** * @deprecated */ - 'contactDetails'?: ContactDetails; + 'contactDetails'?: ContactDetails | null; /** * Your description for the account holder. */ @@ -81,7 +81,7 @@ export class AccountHolder { { "name": "contactDetails", "baseName": "contactDetails", - "type": "ContactDetails" + "type": "ContactDetails | null" }, { "name": "description", diff --git a/src/typings/balancePlatform/accountHolderCapability.ts b/src/typings/balancePlatform/accountHolderCapability.ts index 9da4d41af..eaccb94ae 100644 --- a/src/typings/balancePlatform/accountHolderCapability.ts +++ b/src/typings/balancePlatform/accountHolderCapability.ts @@ -20,7 +20,7 @@ export class AccountHolderCapability { * The capability level that is allowed for the account holder. Possible values: **notApplicable**, **low**, **medium**, **high**. */ 'allowedLevel'?: AccountHolderCapability.AllowedLevelEnum; - 'allowedSettings'?: CapabilitySettings; + 'allowedSettings'?: CapabilitySettings | null; /** * Indicates whether the capability is enabled. If **false**, the capability is temporarily disabled for the account holder. */ @@ -37,7 +37,7 @@ export class AccountHolderCapability { * The requested level of the capability. Some capabilities, such as those used in [card issuing](https://docs.adyen.com/issuing/add-capabilities#capability-levels), have different levels. Levels increase the capability, but also require additional checks and increased monitoring. Possible values: **notApplicable**, **low**, **medium**, **high**. */ 'requestedLevel'?: AccountHolderCapability.RequestedLevelEnum; - 'requestedSettings'?: CapabilitySettings; + 'requestedSettings'?: CapabilitySettings | null; /** * Contains the status of the transfer instruments associated with this capability. */ @@ -63,7 +63,7 @@ export class AccountHolderCapability { { "name": "allowedSettings", "baseName": "allowedSettings", - "type": "CapabilitySettings" + "type": "CapabilitySettings | null" }, { "name": "enabled", @@ -88,7 +88,7 @@ export class AccountHolderCapability { { "name": "requestedSettings", "baseName": "requestedSettings", - "type": "CapabilitySettings" + "type": "CapabilitySettings | null" }, { "name": "transferInstruments", diff --git a/src/typings/balancePlatform/accountHolderInfo.ts b/src/typings/balancePlatform/accountHolderInfo.ts index b6e015ccd..a2bfdfdb0 100644 --- a/src/typings/balancePlatform/accountHolderInfo.ts +++ b/src/typings/balancePlatform/accountHolderInfo.ts @@ -22,7 +22,7 @@ export class AccountHolderInfo { /** * @deprecated */ - 'contactDetails'?: ContactDetails; + 'contactDetails'?: ContactDetails | null; /** * Your description for the account holder. */ @@ -64,7 +64,7 @@ export class AccountHolderInfo { { "name": "contactDetails", "baseName": "contactDetails", - "type": "ContactDetails" + "type": "ContactDetails | null" }, { "name": "description", diff --git a/src/typings/balancePlatform/accountHolderUpdateRequest.ts b/src/typings/balancePlatform/accountHolderUpdateRequest.ts index bf4826b46..14ee29f4d 100644 --- a/src/typings/balancePlatform/accountHolderUpdateRequest.ts +++ b/src/typings/balancePlatform/accountHolderUpdateRequest.ts @@ -23,7 +23,7 @@ export class AccountHolderUpdateRequest { /** * @deprecated */ - 'contactDetails'?: ContactDetails; + 'contactDetails'?: ContactDetails | null; /** * Your description for the account holder. */ @@ -73,7 +73,7 @@ export class AccountHolderUpdateRequest { { "name": "contactDetails", "baseName": "contactDetails", - "type": "ContactDetails" + "type": "ContactDetails | null" }, { "name": "description", diff --git a/src/typings/balancePlatform/authentication.ts b/src/typings/balancePlatform/authentication.ts index 0a6a62203..843cf933c 100644 --- a/src/typings/balancePlatform/authentication.ts +++ b/src/typings/balancePlatform/authentication.ts @@ -18,7 +18,7 @@ export class Authentication { * The password used for 3D Secure password-based authentication. The value must be between 1 to 30 characters and must only contain the following supported characters. * Characters between **a-z**, **A-Z**, and **0-9** * Special characters: **äöüßÄÖÜ+-*_/ç%()=?!~#\'\",;:$&àùòâôûáúó** */ 'password'?: string; - 'phone'?: Phone; + 'phone'?: Phone | null; static discriminator: string | undefined = undefined; @@ -36,7 +36,7 @@ export class Authentication { { "name": "phone", "baseName": "phone", - "type": "Phone" + "type": "Phone | null" } ]; static getAttributeTypeMap() { diff --git a/src/typings/balancePlatform/balanceAccount.ts b/src/typings/balancePlatform/balanceAccount.ts index 0ca96a1f7..6fcb17368 100644 --- a/src/typings/balancePlatform/balanceAccount.ts +++ b/src/typings/balancePlatform/balanceAccount.ts @@ -39,7 +39,7 @@ export class BalanceAccount { * The unique identifier of the account of the migrated account holder in the classic integration. */ 'migratedAccountCode'?: string; - 'platformPaymentConfiguration'?: PlatformPaymentConfiguration; + 'platformPaymentConfiguration'?: PlatformPaymentConfiguration | null; /** * Your reference for the balance account, maximum 150 characters. */ @@ -94,7 +94,7 @@ export class BalanceAccount { { "name": "platformPaymentConfiguration", "baseName": "platformPaymentConfiguration", - "type": "PlatformPaymentConfiguration" + "type": "PlatformPaymentConfiguration | null" }, { "name": "reference", diff --git a/src/typings/balancePlatform/balanceAccountBase.ts b/src/typings/balancePlatform/balanceAccountBase.ts index 395f2fe85..2dbccb7ce 100644 --- a/src/typings/balancePlatform/balanceAccountBase.ts +++ b/src/typings/balancePlatform/balanceAccountBase.ts @@ -34,7 +34,7 @@ export class BalanceAccountBase { * The unique identifier of the account of the migrated account holder in the classic integration. */ 'migratedAccountCode'?: string; - 'platformPaymentConfiguration'?: PlatformPaymentConfiguration; + 'platformPaymentConfiguration'?: PlatformPaymentConfiguration | null; /** * Your reference for the balance account, maximum 150 characters. */ @@ -84,7 +84,7 @@ export class BalanceAccountBase { { "name": "platformPaymentConfiguration", "baseName": "platformPaymentConfiguration", - "type": "PlatformPaymentConfiguration" + "type": "PlatformPaymentConfiguration | null" }, { "name": "reference", diff --git a/src/typings/balancePlatform/balanceAccountInfo.ts b/src/typings/balancePlatform/balanceAccountInfo.ts index 38096aa21..59f3ad042 100644 --- a/src/typings/balancePlatform/balanceAccountInfo.ts +++ b/src/typings/balancePlatform/balanceAccountInfo.ts @@ -30,7 +30,7 @@ export class BalanceAccountInfo { * The unique identifier of the account of the migrated account holder in the classic integration. */ 'migratedAccountCode'?: string; - 'platformPaymentConfiguration'?: PlatformPaymentConfiguration; + 'platformPaymentConfiguration'?: PlatformPaymentConfiguration | null; /** * Your reference for the balance account, maximum 150 characters. */ @@ -71,7 +71,7 @@ export class BalanceAccountInfo { { "name": "platformPaymentConfiguration", "baseName": "platformPaymentConfiguration", - "type": "PlatformPaymentConfiguration" + "type": "PlatformPaymentConfiguration | null" }, { "name": "reference", diff --git a/src/typings/balancePlatform/balanceAccountUpdateRequest.ts b/src/typings/balancePlatform/balanceAccountUpdateRequest.ts index ccd002f63..ddb759ffc 100644 --- a/src/typings/balancePlatform/balanceAccountUpdateRequest.ts +++ b/src/typings/balancePlatform/balanceAccountUpdateRequest.ts @@ -22,7 +22,7 @@ export class BalanceAccountUpdateRequest { * A set of key and value pairs for general use. The keys do not have specific names and may be used for storing miscellaneous data as desired. > Note that during an update of metadata, the omission of existing key-value pairs will result in the deletion of those key-value pairs. */ 'metadata'?: { [key: string]: string; }; - 'platformPaymentConfiguration'?: PlatformPaymentConfiguration; + 'platformPaymentConfiguration'?: PlatformPaymentConfiguration | null; /** * Your reference to the balance account. */ @@ -57,7 +57,7 @@ export class BalanceAccountUpdateRequest { { "name": "platformPaymentConfiguration", "baseName": "platformPaymentConfiguration", - "type": "PlatformPaymentConfiguration" + "type": "PlatformPaymentConfiguration | null" }, { "name": "reference", diff --git a/src/typings/balancePlatform/bankAccount.ts b/src/typings/balancePlatform/bankAccount.ts index 6699a3e26..c2dbb54c3 100644 --- a/src/typings/balancePlatform/bankAccount.ts +++ b/src/typings/balancePlatform/bankAccount.ts @@ -28,7 +28,7 @@ export class BankAccount { /** * Contains the bank account details. The fields required in this object depend on the country of the bank account and the currency of the transfer. */ - 'accountIdentification': AULocalAccountIdentification | BRLocalAccountIdentification | CALocalAccountIdentification | CZLocalAccountIdentification | DKLocalAccountIdentification | HKLocalAccountIdentification | HULocalAccountIdentification | IbanAccountIdentification | NOLocalAccountIdentification | NZLocalAccountIdentification | NumberAndBicAccountIdentification | PLLocalAccountIdentification | SELocalAccountIdentification | SGLocalAccountIdentification | UKLocalAccountIdentification | USLocalAccountIdentification | null; + 'accountIdentification': AULocalAccountIdentification | BRLocalAccountIdentification | CALocalAccountIdentification | CZLocalAccountIdentification | DKLocalAccountIdentification | HKLocalAccountIdentification | HULocalAccountIdentification | IbanAccountIdentification | NOLocalAccountIdentification | NZLocalAccountIdentification | NumberAndBicAccountIdentification | PLLocalAccountIdentification | SELocalAccountIdentification | SGLocalAccountIdentification | UKLocalAccountIdentification | USLocalAccountIdentification; static discriminator: string | undefined = undefined; @@ -36,7 +36,7 @@ export class BankAccount { { "name": "accountIdentification", "baseName": "accountIdentification", - "type": "AULocalAccountIdentification | BRLocalAccountIdentification | CALocalAccountIdentification | CZLocalAccountIdentification | DKLocalAccountIdentification | HKLocalAccountIdentification | HULocalAccountIdentification | IbanAccountIdentification | NOLocalAccountIdentification | NZLocalAccountIdentification | NumberAndBicAccountIdentification | PLLocalAccountIdentification | SELocalAccountIdentification | SGLocalAccountIdentification | UKLocalAccountIdentification | USLocalAccountIdentification | null" + "type": "AULocalAccountIdentification | BRLocalAccountIdentification | CALocalAccountIdentification | CZLocalAccountIdentification | DKLocalAccountIdentification | HKLocalAccountIdentification | HULocalAccountIdentification | IbanAccountIdentification | NOLocalAccountIdentification | NZLocalAccountIdentification | NumberAndBicAccountIdentification | PLLocalAccountIdentification | SELocalAccountIdentification | SGLocalAccountIdentification | UKLocalAccountIdentification | USLocalAccountIdentification" } ]; static getAttributeTypeMap() { diff --git a/src/typings/balancePlatform/bankAccountIdentificationValidationRequest.ts b/src/typings/balancePlatform/bankAccountIdentificationValidationRequest.ts index d3fe81b6f..1962bbd42 100644 --- a/src/typings/balancePlatform/bankAccountIdentificationValidationRequest.ts +++ b/src/typings/balancePlatform/bankAccountIdentificationValidationRequest.ts @@ -28,7 +28,7 @@ export class BankAccountIdentificationValidationRequest { /** * Bank account identification. */ - 'accountIdentification': AULocalAccountIdentification | BRLocalAccountIdentification | CALocalAccountIdentification | CZLocalAccountIdentification | DKLocalAccountIdentification | HKLocalAccountIdentification | HULocalAccountIdentification | IbanAccountIdentification | NOLocalAccountIdentification | NZLocalAccountIdentification | NumberAndBicAccountIdentification | PLLocalAccountIdentification | SELocalAccountIdentification | SGLocalAccountIdentification | UKLocalAccountIdentification | USLocalAccountIdentification | null; + 'accountIdentification': AULocalAccountIdentification | BRLocalAccountIdentification | CALocalAccountIdentification | CZLocalAccountIdentification | DKLocalAccountIdentification | HKLocalAccountIdentification | HULocalAccountIdentification | IbanAccountIdentification | NOLocalAccountIdentification | NZLocalAccountIdentification | NumberAndBicAccountIdentification | PLLocalAccountIdentification | SELocalAccountIdentification | SGLocalAccountIdentification | UKLocalAccountIdentification | USLocalAccountIdentification; static discriminator: string | undefined = undefined; @@ -36,7 +36,7 @@ export class BankAccountIdentificationValidationRequest { { "name": "accountIdentification", "baseName": "accountIdentification", - "type": "AULocalAccountIdentification | BRLocalAccountIdentification | CALocalAccountIdentification | CZLocalAccountIdentification | DKLocalAccountIdentification | HKLocalAccountIdentification | HULocalAccountIdentification | IbanAccountIdentification | NOLocalAccountIdentification | NZLocalAccountIdentification | NumberAndBicAccountIdentification | PLLocalAccountIdentification | SELocalAccountIdentification | SGLocalAccountIdentification | UKLocalAccountIdentification | USLocalAccountIdentification | null" + "type": "AULocalAccountIdentification | BRLocalAccountIdentification | CALocalAccountIdentification | CZLocalAccountIdentification | DKLocalAccountIdentification | HKLocalAccountIdentification | HULocalAccountIdentification | IbanAccountIdentification | NOLocalAccountIdentification | NZLocalAccountIdentification | NumberAndBicAccountIdentification | PLLocalAccountIdentification | SELocalAccountIdentification | SGLocalAccountIdentification | UKLocalAccountIdentification | USLocalAccountIdentification" } ]; static getAttributeTypeMap() { diff --git a/src/typings/balancePlatform/capabilityProblem.ts b/src/typings/balancePlatform/capabilityProblem.ts index 539cda4dc..41cd5fe6c 100644 --- a/src/typings/balancePlatform/capabilityProblem.ts +++ b/src/typings/balancePlatform/capabilityProblem.ts @@ -11,7 +11,7 @@ import { CapabilityProblemEntity } from './capabilityProblemEntity'; import { VerificationError } from './verificationError'; export class CapabilityProblem { - 'entity'?: CapabilityProblemEntity; + 'entity'?: CapabilityProblemEntity | null; /** * Contains information about the verification error. */ @@ -23,7 +23,7 @@ export class CapabilityProblem { { "name": "entity", "baseName": "entity", - "type": "CapabilityProblemEntity" + "type": "CapabilityProblemEntity | null" }, { "name": "verificationErrors", diff --git a/src/typings/balancePlatform/capabilityProblemEntity.ts b/src/typings/balancePlatform/capabilityProblemEntity.ts index 9b4f1e324..b022a757f 100644 --- a/src/typings/balancePlatform/capabilityProblemEntity.ts +++ b/src/typings/balancePlatform/capabilityProblemEntity.ts @@ -18,7 +18,7 @@ export class CapabilityProblemEntity { * The ID of the entity. */ 'id'?: string; - 'owner'?: CapabilityProblemEntityRecursive; + 'owner'?: CapabilityProblemEntityRecursive | null; /** * Type of entity. Possible values: **LegalEntity**, **BankAccount**, **Document**. */ @@ -40,7 +40,7 @@ export class CapabilityProblemEntity { { "name": "owner", "baseName": "owner", - "type": "CapabilityProblemEntityRecursive" + "type": "CapabilityProblemEntityRecursive | null" }, { "name": "type", diff --git a/src/typings/balancePlatform/capabilitySettings.ts b/src/typings/balancePlatform/capabilitySettings.ts index a6b9ea2bd..4a1bd904a 100644 --- a/src/typings/balancePlatform/capabilitySettings.ts +++ b/src/typings/balancePlatform/capabilitySettings.ts @@ -14,7 +14,7 @@ export class CapabilitySettings { 'authorizedCardUsers'?: boolean; 'fundingSource'?: Array; 'interval'?: CapabilitySettings.IntervalEnum; - 'maxAmount'?: Amount; + 'maxAmount'?: Amount | null; static discriminator: string | undefined = undefined; @@ -42,7 +42,7 @@ export class CapabilitySettings { { "name": "maxAmount", "baseName": "maxAmount", - "type": "Amount" + "type": "Amount | null" } ]; static getAttributeTypeMap() { diff --git a/src/typings/balancePlatform/card.ts b/src/typings/balancePlatform/card.ts index 53b0cde7c..2d386cbda 100644 --- a/src/typings/balancePlatform/card.ts +++ b/src/typings/balancePlatform/card.ts @@ -13,7 +13,7 @@ import { DeliveryContact } from './deliveryContact'; import { Expiry } from './expiry'; export class Card { - 'authentication'?: Authentication; + 'authentication'?: Authentication | null; /** * The bank identification number (BIN) of the card number. */ @@ -30,13 +30,13 @@ export class Card { * The name of the cardholder. Maximum length: 26 characters. */ 'cardholderName': string; - 'configuration'?: CardConfiguration; + 'configuration'?: CardConfiguration | null; /** * The CVC2 value of the card. > The CVC2 is not sent by default. This is only returned in the `POST` response for single-use virtual cards. */ 'cvc'?: string; - 'deliveryContact'?: DeliveryContact; - 'expiration'?: Expiry; + 'deliveryContact'?: DeliveryContact | null; + 'expiration'?: Expiry | null; /** * The form factor of the card. Possible values: **virtual**, **physical**. */ @@ -60,7 +60,7 @@ export class Card { { "name": "authentication", "baseName": "authentication", - "type": "Authentication" + "type": "Authentication | null" }, { "name": "bin", @@ -85,7 +85,7 @@ export class Card { { "name": "configuration", "baseName": "configuration", - "type": "CardConfiguration" + "type": "CardConfiguration | null" }, { "name": "cvc", @@ -95,12 +95,12 @@ export class Card { { "name": "deliveryContact", "baseName": "deliveryContact", - "type": "DeliveryContact" + "type": "DeliveryContact | null" }, { "name": "expiration", "baseName": "expiration", - "type": "Expiry" + "type": "Expiry | null" }, { "name": "formFactor", diff --git a/src/typings/balancePlatform/cardConfiguration.ts b/src/typings/balancePlatform/cardConfiguration.ts index 833894ecf..79d7502dd 100644 --- a/src/typings/balancePlatform/cardConfiguration.ts +++ b/src/typings/balancePlatform/cardConfiguration.ts @@ -18,7 +18,7 @@ export class CardConfiguration { * Your app\'s URL, if you want to activate cards through your app. For example, **my-app://ref1236a7d**. A QR code is created based on this URL, and is included in the carrier. Before you use this field, reach out to your Adyen contact to set up the QR code process. Maximum length: 255 characters. */ 'activationUrl'?: string; - 'bulkAddress'?: BulkAddress; + 'bulkAddress'?: BulkAddress | null; /** * The ID of the card image. This is the image that will be printed on the full front of the card. */ @@ -80,7 +80,7 @@ export class CardConfiguration { { "name": "bulkAddress", "baseName": "bulkAddress", - "type": "BulkAddress" + "type": "BulkAddress | null" }, { "name": "cardImageId", diff --git a/src/typings/balancePlatform/cardInfo.ts b/src/typings/balancePlatform/cardInfo.ts index dc2764ea5..26849f0d1 100644 --- a/src/typings/balancePlatform/cardInfo.ts +++ b/src/typings/balancePlatform/cardInfo.ts @@ -12,7 +12,7 @@ import { CardConfiguration } from './cardConfiguration'; import { DeliveryContact } from './deliveryContact'; export class CardInfo { - 'authentication'?: Authentication; + 'authentication'?: Authentication | null; /** * The brand of the physical or the virtual card. Possible values: **visa**, **mc**. */ @@ -25,8 +25,8 @@ export class CardInfo { * The name of the cardholder. Maximum length: 26 characters. */ 'cardholderName': string; - 'configuration'?: CardConfiguration; - 'deliveryContact'?: DeliveryContact; + 'configuration'?: CardConfiguration | null; + 'deliveryContact'?: DeliveryContact | null; /** * The form factor of the card. Possible values: **virtual**, **physical**. */ @@ -42,7 +42,7 @@ export class CardInfo { { "name": "authentication", "baseName": "authentication", - "type": "Authentication" + "type": "Authentication | null" }, { "name": "brand", @@ -62,12 +62,12 @@ export class CardInfo { { "name": "configuration", "baseName": "configuration", - "type": "CardConfiguration" + "type": "CardConfiguration | null" }, { "name": "deliveryContact", "baseName": "deliveryContact", - "type": "DeliveryContact" + "type": "DeliveryContact | null" }, { "name": "formFactor", diff --git a/src/typings/balancePlatform/cardOrderItem.ts b/src/typings/balancePlatform/cardOrderItem.ts index 0cafa4c38..2d6cd1223 100644 --- a/src/typings/balancePlatform/cardOrderItem.ts +++ b/src/typings/balancePlatform/cardOrderItem.ts @@ -14,7 +14,7 @@ export class CardOrderItem { * The unique identifier of the balance platform. */ 'balancePlatform'?: string; - 'card'?: CardOrderItemDeliveryStatus; + 'card'?: CardOrderItemDeliveryStatus | null; /** * The unique identifier of the card order item. */ @@ -31,7 +31,7 @@ export class CardOrderItem { * The unique identifier of the payment instrument related to the card order item. */ 'paymentInstrumentId'?: string; - 'pin'?: CardOrderItemDeliveryStatus; + 'pin'?: CardOrderItemDeliveryStatus | null; /** * The shipping method used to deliver the card or the PIN. */ @@ -48,7 +48,7 @@ export class CardOrderItem { { "name": "card", "baseName": "card", - "type": "CardOrderItemDeliveryStatus" + "type": "CardOrderItemDeliveryStatus | null" }, { "name": "cardOrderItemId", @@ -73,7 +73,7 @@ export class CardOrderItem { { "name": "pin", "baseName": "pin", - "type": "CardOrderItemDeliveryStatus" + "type": "CardOrderItemDeliveryStatus | null" }, { "name": "shippingMethod", diff --git a/src/typings/balancePlatform/counterparty.ts b/src/typings/balancePlatform/counterparty.ts index 3b0917217..1dfb62aea 100644 --- a/src/typings/balancePlatform/counterparty.ts +++ b/src/typings/balancePlatform/counterparty.ts @@ -10,7 +10,7 @@ import { BankAccount } from './bankAccount'; export class Counterparty { - 'bankAccount'?: BankAccount; + 'bankAccount'?: BankAccount | null; /** * The unique identifier of the [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). */ @@ -22,7 +22,7 @@ export class Counterparty { { "name": "bankAccount", "baseName": "bankAccount", - "type": "BankAccount" + "type": "BankAccount | null" }, { "name": "transferInstrumentId", diff --git a/src/typings/balancePlatform/createSweepConfigurationV2.ts b/src/typings/balancePlatform/createSweepConfigurationV2.ts index 91f93fdd3..26953e1c0 100644 --- a/src/typings/balancePlatform/createSweepConfigurationV2.ts +++ b/src/typings/balancePlatform/createSweepConfigurationV2.ts @@ -50,9 +50,9 @@ export class CreateSweepConfigurationV2 { * The status of the sweep. If not provided, by default, this is set to **active**. Possible values: * **active**: the sweep is enabled and funds will be pulled in or pushed out based on the defined configuration. * **inactive**: the sweep is disabled and cannot be triggered. */ 'status'?: CreateSweepConfigurationV2.StatusEnum; - 'sweepAmount'?: Amount; - 'targetAmount'?: Amount; - 'triggerAmount'?: Amount; + 'sweepAmount'?: Amount | null; + 'targetAmount'?: Amount | null; + 'triggerAmount'?: Amount | null; /** * The direction of sweep, whether pushing out or pulling in funds to the balance account. If not provided, by default, this is set to **push**. Possible values: * **push**: _push out funds_ to a destination balance account or transfer instrument. * **pull**: _pull in funds_ from a source merchant account, transfer instrument, or balance account. */ @@ -119,17 +119,17 @@ export class CreateSweepConfigurationV2 { { "name": "sweepAmount", "baseName": "sweepAmount", - "type": "Amount" + "type": "Amount | null" }, { "name": "targetAmount", "baseName": "targetAmount", - "type": "Amount" + "type": "Amount | null" }, { "name": "triggerAmount", "baseName": "triggerAmount", - "type": "Amount" + "type": "Amount | null" }, { "name": "type", diff --git a/src/typings/balancePlatform/deliveryContact.ts b/src/typings/balancePlatform/deliveryContact.ts index c01f2b4a0..f60009f14 100644 --- a/src/typings/balancePlatform/deliveryContact.ts +++ b/src/typings/balancePlatform/deliveryContact.ts @@ -26,7 +26,7 @@ export class DeliveryContact { */ 'fullPhoneNumber'?: string; 'name': Name; - 'phoneNumber'?: PhoneNumber; + 'phoneNumber'?: PhoneNumber | null; /** * The URL of the contact\'s website. */ @@ -63,7 +63,7 @@ export class DeliveryContact { { "name": "phoneNumber", "baseName": "phoneNumber", - "type": "PhoneNumber" + "type": "PhoneNumber | null" }, { "name": "webAddress", diff --git a/src/typings/balancePlatform/grantLimit.ts b/src/typings/balancePlatform/grantLimit.ts index aed646197..89f6908b3 100644 --- a/src/typings/balancePlatform/grantLimit.ts +++ b/src/typings/balancePlatform/grantLimit.ts @@ -10,7 +10,7 @@ import { Amount } from './amount'; export class GrantLimit { - 'amount'?: Amount; + 'amount'?: Amount | null; static discriminator: string | undefined = undefined; @@ -18,7 +18,7 @@ export class GrantLimit { { "name": "amount", "baseName": "amount", - "type": "Amount" + "type": "Amount | null" } ]; static getAttributeTypeMap() { diff --git a/src/typings/balancePlatform/grantOffer.ts b/src/typings/balancePlatform/grantOffer.ts index 8ac2bbfdf..24ba1a3ee 100644 --- a/src/typings/balancePlatform/grantOffer.ts +++ b/src/typings/balancePlatform/grantOffer.ts @@ -16,7 +16,7 @@ export class GrantOffer { * The identifier of the account holder to which the grant is offered. */ 'accountHolderId': string; - 'amount'?: Amount; + 'amount'?: Amount | null; /** * The contract type of the grant offer. Possible value: **cashAdvance**, **loan**. */ @@ -25,12 +25,12 @@ export class GrantOffer { * The end date of the grant offer validity period. */ 'expiresAt'?: Date; - 'fee'?: Fee; + 'fee'?: Fee | null; /** * The unique identifier of the grant offer. */ 'id'?: string; - 'repayment'?: Repayment; + 'repayment'?: Repayment | null; /** * The starting date of the grant offer validity period. */ @@ -47,7 +47,7 @@ export class GrantOffer { { "name": "amount", "baseName": "amount", - "type": "Amount" + "type": "Amount | null" }, { "name": "contractType", @@ -62,7 +62,7 @@ export class GrantOffer { { "name": "fee", "baseName": "fee", - "type": "Fee" + "type": "Fee | null" }, { "name": "id", @@ -72,7 +72,7 @@ export class GrantOffer { { "name": "repayment", "baseName": "repayment", - "type": "Repayment" + "type": "Repayment | null" }, { "name": "startsAt", diff --git a/src/typings/balancePlatform/link.ts b/src/typings/balancePlatform/link.ts index b1731980f..9c95a205c 100644 --- a/src/typings/balancePlatform/link.ts +++ b/src/typings/balancePlatform/link.ts @@ -10,11 +10,11 @@ import { Href } from './href'; export class Link { - 'first'?: Href; - 'last'?: Href; - 'next'?: Href; - 'previous'?: Href; - 'self'?: Href; + 'first'?: Href | null; + 'last'?: Href | null; + 'next'?: Href | null; + 'previous'?: Href | null; + 'self'?: Href | null; static discriminator: string | undefined = undefined; @@ -22,27 +22,27 @@ export class Link { { "name": "first", "baseName": "first", - "type": "Href" + "type": "Href | null" }, { "name": "last", "baseName": "last", - "type": "Href" + "type": "Href | null" }, { "name": "next", "baseName": "next", - "type": "Href" + "type": "Href | null" }, { "name": "previous", "baseName": "previous", - "type": "Href" + "type": "Href | null" }, { "name": "self", "baseName": "self", - "type": "Href" + "type": "Href | null" } ]; static getAttributeTypeMap() { diff --git a/src/typings/balancePlatform/networkToken.ts b/src/typings/balancePlatform/networkToken.ts index 872902bec..00b0fde00 100644 --- a/src/typings/balancePlatform/networkToken.ts +++ b/src/typings/balancePlatform/networkToken.ts @@ -18,7 +18,7 @@ export class NetworkToken { * Date and time when the network token was created, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) extended format. For example, **2020-12-18T10:15:30+01:00**.. */ 'creationDate'?: Date; - 'device'?: DeviceInfo; + 'device'?: DeviceInfo | null; /** * The unique identifier of the network token. */ @@ -56,7 +56,7 @@ export class NetworkToken { { "name": "device", "baseName": "device", - "type": "DeviceInfo" + "type": "DeviceInfo | null" }, { "name": "id", diff --git a/src/typings/balancePlatform/numberAndBicAccountIdentification.ts b/src/typings/balancePlatform/numberAndBicAccountIdentification.ts index 1a265d3d1..b72d72143 100644 --- a/src/typings/balancePlatform/numberAndBicAccountIdentification.ts +++ b/src/typings/balancePlatform/numberAndBicAccountIdentification.ts @@ -14,7 +14,7 @@ export class NumberAndBicAccountIdentification { * The bank account number, without separators or whitespace. The length and format depends on the bank or country. */ 'accountNumber': string; - 'additionalBankIdentification'?: AdditionalBankIdentification; + 'additionalBankIdentification'?: AdditionalBankIdentification | null; /** * The bank\'s 8- or 11-character BIC or SWIFT code. */ @@ -35,7 +35,7 @@ export class NumberAndBicAccountIdentification { { "name": "additionalBankIdentification", "baseName": "additionalBankIdentification", - "type": "AdditionalBankIdentification" + "type": "AdditionalBankIdentification | null" }, { "name": "bic", diff --git a/src/typings/balancePlatform/paymentInstrument.ts b/src/typings/balancePlatform/paymentInstrument.ts index 16e5ba7a6..1c156b43b 100644 --- a/src/typings/balancePlatform/paymentInstrument.ts +++ b/src/typings/balancePlatform/paymentInstrument.ts @@ -23,8 +23,8 @@ export class PaymentInstrument { * The unique identifier of the [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/balanceAccounts__resParam_id) associated with the payment instrument. */ 'balanceAccountId': string; - 'bankAccount'?: BankAccountDetails; - 'card'?: Card; + 'bankAccount'?: BankAccountDetails | null; + 'card'?: Card | null; /** * Your description for the payment instrument, maximum 300 characters. */ @@ -78,12 +78,12 @@ export class PaymentInstrument { { "name": "bankAccount", "baseName": "bankAccount", - "type": "BankAccountDetails" + "type": "BankAccountDetails | null" }, { "name": "card", "baseName": "card", - "type": "Card" + "type": "Card | null" }, { "name": "description", diff --git a/src/typings/balancePlatform/paymentInstrumentInfo.ts b/src/typings/balancePlatform/paymentInstrumentInfo.ts index 1f06ed1e2..048eba9d4 100644 --- a/src/typings/balancePlatform/paymentInstrumentInfo.ts +++ b/src/typings/balancePlatform/paymentInstrumentInfo.ts @@ -15,8 +15,8 @@ export class PaymentInstrumentInfo { * The unique identifier of the [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/balanceAccounts__resParam_id) associated with the payment instrument. */ 'balanceAccountId': string; - 'bankAccount'?: BankAccountModel; - 'card'?: CardInfo; + 'bankAccount'?: BankAccountModel | null; + 'card'?: CardInfo | null; /** * Your description for the payment instrument, maximum 300 characters. */ @@ -61,12 +61,12 @@ export class PaymentInstrumentInfo { { "name": "bankAccount", "baseName": "bankAccount", - "type": "BankAccountModel" + "type": "BankAccountModel | null" }, { "name": "card", "baseName": "card", - "type": "CardInfo" + "type": "CardInfo | null" }, { "name": "description", diff --git a/src/typings/balancePlatform/paymentInstrumentUpdateRequest.ts b/src/typings/balancePlatform/paymentInstrumentUpdateRequest.ts index c89504cba..ee43abb50 100644 --- a/src/typings/balancePlatform/paymentInstrumentUpdateRequest.ts +++ b/src/typings/balancePlatform/paymentInstrumentUpdateRequest.ts @@ -14,7 +14,7 @@ export class PaymentInstrumentUpdateRequest { * The unique identifier of the balance account associated with this payment instrument. >You can only change the balance account ID if the payment instrument has **inactive** status. */ 'balanceAccountId'?: string; - 'card'?: CardInfo; + 'card'?: CardInfo | null; /** * The status of the payment instrument. If a status is not specified when creating a payment instrument, it is set to **active** by default. However, there can be exceptions for cards based on the `card.formFactor` and the `issuingCountryCode`. For example, when issuing physical cards in the US, the default status is **inactive**. Possible values: * **active**: The payment instrument is active and can be used to make payments. * **inactive**: The payment instrument is inactive and cannot be used to make payments. * **suspended**: The payment instrument is suspended, either because it was stolen or lost. * **closed**: The payment instrument is permanently closed. This action cannot be undone. */ @@ -39,7 +39,7 @@ export class PaymentInstrumentUpdateRequest { { "name": "card", "baseName": "card", - "type": "CardInfo" + "type": "CardInfo | null" }, { "name": "status", diff --git a/src/typings/balancePlatform/repayment.ts b/src/typings/balancePlatform/repayment.ts index 25e740574..1288eab0a 100644 --- a/src/typings/balancePlatform/repayment.ts +++ b/src/typings/balancePlatform/repayment.ts @@ -15,8 +15,8 @@ export class Repayment { * The repayment that is deducted daily from incoming net volume, in [basis points](https://www.investopedia.com/terms/b/basispoint.asp). */ 'basisPoints': number; - 'term'?: RepaymentTerm; - 'threshold'?: ThresholdRepayment; + 'term'?: RepaymentTerm | null; + 'threshold'?: ThresholdRepayment | null; static discriminator: string | undefined = undefined; @@ -29,12 +29,12 @@ export class Repayment { { "name": "term", "baseName": "term", - "type": "RepaymentTerm" + "type": "RepaymentTerm | null" }, { "name": "threshold", "baseName": "threshold", - "type": "ThresholdRepayment" + "type": "ThresholdRepayment | null" } ]; static getAttributeTypeMap() { diff --git a/src/typings/balancePlatform/riskScoresRestriction.ts b/src/typings/balancePlatform/riskScoresRestriction.ts index 032bc6f2e..816973909 100644 --- a/src/typings/balancePlatform/riskScoresRestriction.ts +++ b/src/typings/balancePlatform/riskScoresRestriction.ts @@ -14,7 +14,7 @@ export class RiskScoresRestriction { * Defines how the condition must be evaluated. */ 'operation': string; - 'value'?: RiskScores; + 'value'?: RiskScores | null; static discriminator: string | undefined = undefined; @@ -27,7 +27,7 @@ export class RiskScoresRestriction { { "name": "value", "baseName": "value", - "type": "RiskScores" + "type": "RiskScores | null" } ]; static getAttributeTypeMap() { diff --git a/src/typings/balancePlatform/searchRegisteredDevicesResponse.ts b/src/typings/balancePlatform/searchRegisteredDevicesResponse.ts index a99077f30..fbcb7e9de 100644 --- a/src/typings/balancePlatform/searchRegisteredDevicesResponse.ts +++ b/src/typings/balancePlatform/searchRegisteredDevicesResponse.ts @@ -19,7 +19,7 @@ export class SearchRegisteredDevicesResponse { * The total amount of registered SCA devices that match the query parameters. */ 'itemsTotal'?: number; - 'link'?: Link; + 'link'?: Link | null; /** * The total amount of list pages. */ @@ -41,7 +41,7 @@ export class SearchRegisteredDevicesResponse { { "name": "link", "baseName": "link", - "type": "Link" + "type": "Link | null" }, { "name": "pagesTotal", diff --git a/src/typings/balancePlatform/sweepConfigurationV2.ts b/src/typings/balancePlatform/sweepConfigurationV2.ts index a6dbeae2a..3bd2d7584 100644 --- a/src/typings/balancePlatform/sweepConfigurationV2.ts +++ b/src/typings/balancePlatform/sweepConfigurationV2.ts @@ -54,9 +54,9 @@ export class SweepConfigurationV2 { * The status of the sweep. If not provided, by default, this is set to **active**. Possible values: * **active**: the sweep is enabled and funds will be pulled in or pushed out based on the defined configuration. * **inactive**: the sweep is disabled and cannot be triggered. */ 'status'?: SweepConfigurationV2.StatusEnum; - 'sweepAmount'?: Amount; - 'targetAmount'?: Amount; - 'triggerAmount'?: Amount; + 'sweepAmount'?: Amount | null; + 'targetAmount'?: Amount | null; + 'triggerAmount'?: Amount | null; /** * The direction of sweep, whether pushing out or pulling in funds to the balance account. If not provided, by default, this is set to **push**. Possible values: * **push**: _push out funds_ to a destination balance account or transfer instrument. * **pull**: _pull in funds_ from a source merchant account, transfer instrument, or balance account. */ @@ -128,17 +128,17 @@ export class SweepConfigurationV2 { { "name": "sweepAmount", "baseName": "sweepAmount", - "type": "Amount" + "type": "Amount | null" }, { "name": "targetAmount", "baseName": "targetAmount", - "type": "Amount" + "type": "Amount | null" }, { "name": "triggerAmount", "baseName": "triggerAmount", - "type": "Amount" + "type": "Amount | null" }, { "name": "type", diff --git a/src/typings/balancePlatform/timeOfDayRestriction.ts b/src/typings/balancePlatform/timeOfDayRestriction.ts index 22b717b35..e5ba5199a 100644 --- a/src/typings/balancePlatform/timeOfDayRestriction.ts +++ b/src/typings/balancePlatform/timeOfDayRestriction.ts @@ -14,7 +14,7 @@ export class TimeOfDayRestriction { * Defines how the condition must be evaluated. */ 'operation': string; - 'value'?: TimeOfDay; + 'value'?: TimeOfDay | null; static discriminator: string | undefined = undefined; @@ -27,7 +27,7 @@ export class TimeOfDayRestriction { { "name": "value", "baseName": "value", - "type": "TimeOfDay" + "type": "TimeOfDay | null" } ]; static getAttributeTypeMap() { diff --git a/src/typings/balancePlatform/totalAmountRestriction.ts b/src/typings/balancePlatform/totalAmountRestriction.ts index 2d5b2c423..d0065cfe2 100644 --- a/src/typings/balancePlatform/totalAmountRestriction.ts +++ b/src/typings/balancePlatform/totalAmountRestriction.ts @@ -14,7 +14,7 @@ export class TotalAmountRestriction { * Defines how the condition must be evaluated. */ 'operation': string; - 'value'?: Amount; + 'value'?: Amount | null; static discriminator: string | undefined = undefined; @@ -27,7 +27,7 @@ export class TotalAmountRestriction { { "name": "value", "baseName": "value", - "type": "Amount" + "type": "Amount | null" } ]; static getAttributeTypeMap() { diff --git a/src/typings/balancePlatform/transactionRuleInterval.ts b/src/typings/balancePlatform/transactionRuleInterval.ts index b3b1b4f02..d3cb3f96f 100644 --- a/src/typings/balancePlatform/transactionRuleInterval.ts +++ b/src/typings/balancePlatform/transactionRuleInterval.ts @@ -18,7 +18,7 @@ export class TransactionRuleInterval { * The day of week, used when the `duration.unit` is **weeks**. If not provided, by default, this is set to **monday**. Possible values: **sunday**, **monday**, **tuesday**, **wednesday**, **thursday**, **friday**. */ 'dayOfWeek'?: TransactionRuleInterval.DayOfWeekEnum; - 'duration'?: Duration; + 'duration'?: Duration | null; /** * The time of day, in **hh:mm:ss** format, used when the `duration.unit` is **hours**. If not provided, by default, this is set to **00:00:00**. */ @@ -48,7 +48,7 @@ export class TransactionRuleInterval { { "name": "duration", "baseName": "duration", - "type": "Duration" + "type": "Duration | null" }, { "name": "timeOfDay", diff --git a/src/typings/balancePlatform/transactionRuleResponse.ts b/src/typings/balancePlatform/transactionRuleResponse.ts index a0ee4b0c2..ca9a9c41f 100644 --- a/src/typings/balancePlatform/transactionRuleResponse.ts +++ b/src/typings/balancePlatform/transactionRuleResponse.ts @@ -10,7 +10,7 @@ import { TransactionRule } from './transactionRule'; export class TransactionRuleResponse { - 'transactionRule'?: TransactionRule; + 'transactionRule'?: TransactionRule | null; static discriminator: string | undefined = undefined; @@ -18,7 +18,7 @@ export class TransactionRuleResponse { { "name": "transactionRule", "baseName": "transactionRule", - "type": "TransactionRule" + "type": "TransactionRule | null" } ]; static getAttributeTypeMap() { diff --git a/src/typings/balancePlatform/transactionRuleRestrictions.ts b/src/typings/balancePlatform/transactionRuleRestrictions.ts index 7b452926e..3d7aa0e81 100644 --- a/src/typings/balancePlatform/transactionRuleRestrictions.ts +++ b/src/typings/balancePlatform/transactionRuleRestrictions.ts @@ -30,27 +30,27 @@ import { TimeOfDayRestriction } from './timeOfDayRestriction'; import { TotalAmountRestriction } from './totalAmountRestriction'; export class TransactionRuleRestrictions { - 'activeNetworkTokens'?: ActiveNetworkTokensRestriction; - 'brandVariants'?: BrandVariantsRestriction; - 'counterpartyBank'?: CounterpartyBankRestriction; - 'counterpartyTypes'?: CounterpartyTypesRestriction; - 'countries'?: CountriesRestriction; - 'dayOfWeek'?: DayOfWeekRestriction; - 'differentCurrencies'?: DifferentCurrenciesRestriction; - 'entryModes'?: EntryModesRestriction; - 'internationalTransaction'?: InternationalTransactionRestriction; - 'matchingTransactions'?: MatchingTransactionsRestriction; - 'matchingValues'?: MatchingValuesRestriction; - 'mccs'?: MccsRestriction; - 'merchantNames'?: MerchantNamesRestriction; - 'merchants'?: MerchantsRestriction; - 'processingTypes'?: ProcessingTypesRestriction; - 'riskScores'?: RiskScoresRestriction; - 'sameAmountRestriction'?: SameAmountRestriction; - 'sameCounterpartyRestriction'?: SameCounterpartyRestriction; - 'sourceAccountTypes'?: SourceAccountTypesRestriction; - 'timeOfDay'?: TimeOfDayRestriction; - 'totalAmount'?: TotalAmountRestriction; + 'activeNetworkTokens'?: ActiveNetworkTokensRestriction | null; + 'brandVariants'?: BrandVariantsRestriction | null; + 'counterpartyBank'?: CounterpartyBankRestriction | null; + 'counterpartyTypes'?: CounterpartyTypesRestriction | null; + 'countries'?: CountriesRestriction | null; + 'dayOfWeek'?: DayOfWeekRestriction | null; + 'differentCurrencies'?: DifferentCurrenciesRestriction | null; + 'entryModes'?: EntryModesRestriction | null; + 'internationalTransaction'?: InternationalTransactionRestriction | null; + 'matchingTransactions'?: MatchingTransactionsRestriction | null; + 'matchingValues'?: MatchingValuesRestriction | null; + 'mccs'?: MccsRestriction | null; + 'merchantNames'?: MerchantNamesRestriction | null; + 'merchants'?: MerchantsRestriction | null; + 'processingTypes'?: ProcessingTypesRestriction | null; + 'riskScores'?: RiskScoresRestriction | null; + 'sameAmountRestriction'?: SameAmountRestriction | null; + 'sameCounterpartyRestriction'?: SameCounterpartyRestriction | null; + 'sourceAccountTypes'?: SourceAccountTypesRestriction | null; + 'timeOfDay'?: TimeOfDayRestriction | null; + 'totalAmount'?: TotalAmountRestriction | null; static discriminator: string | undefined = undefined; @@ -58,107 +58,107 @@ export class TransactionRuleRestrictions { { "name": "activeNetworkTokens", "baseName": "activeNetworkTokens", - "type": "ActiveNetworkTokensRestriction" + "type": "ActiveNetworkTokensRestriction | null" }, { "name": "brandVariants", "baseName": "brandVariants", - "type": "BrandVariantsRestriction" + "type": "BrandVariantsRestriction | null" }, { "name": "counterpartyBank", "baseName": "counterpartyBank", - "type": "CounterpartyBankRestriction" + "type": "CounterpartyBankRestriction | null" }, { "name": "counterpartyTypes", "baseName": "counterpartyTypes", - "type": "CounterpartyTypesRestriction" + "type": "CounterpartyTypesRestriction | null" }, { "name": "countries", "baseName": "countries", - "type": "CountriesRestriction" + "type": "CountriesRestriction | null" }, { "name": "dayOfWeek", "baseName": "dayOfWeek", - "type": "DayOfWeekRestriction" + "type": "DayOfWeekRestriction | null" }, { "name": "differentCurrencies", "baseName": "differentCurrencies", - "type": "DifferentCurrenciesRestriction" + "type": "DifferentCurrenciesRestriction | null" }, { "name": "entryModes", "baseName": "entryModes", - "type": "EntryModesRestriction" + "type": "EntryModesRestriction | null" }, { "name": "internationalTransaction", "baseName": "internationalTransaction", - "type": "InternationalTransactionRestriction" + "type": "InternationalTransactionRestriction | null" }, { "name": "matchingTransactions", "baseName": "matchingTransactions", - "type": "MatchingTransactionsRestriction" + "type": "MatchingTransactionsRestriction | null" }, { "name": "matchingValues", "baseName": "matchingValues", - "type": "MatchingValuesRestriction" + "type": "MatchingValuesRestriction | null" }, { "name": "mccs", "baseName": "mccs", - "type": "MccsRestriction" + "type": "MccsRestriction | null" }, { "name": "merchantNames", "baseName": "merchantNames", - "type": "MerchantNamesRestriction" + "type": "MerchantNamesRestriction | null" }, { "name": "merchants", "baseName": "merchants", - "type": "MerchantsRestriction" + "type": "MerchantsRestriction | null" }, { "name": "processingTypes", "baseName": "processingTypes", - "type": "ProcessingTypesRestriction" + "type": "ProcessingTypesRestriction | null" }, { "name": "riskScores", "baseName": "riskScores", - "type": "RiskScoresRestriction" + "type": "RiskScoresRestriction | null" }, { "name": "sameAmountRestriction", "baseName": "sameAmountRestriction", - "type": "SameAmountRestriction" + "type": "SameAmountRestriction | null" }, { "name": "sameCounterpartyRestriction", "baseName": "sameCounterpartyRestriction", - "type": "SameCounterpartyRestriction" + "type": "SameCounterpartyRestriction | null" }, { "name": "sourceAccountTypes", "baseName": "sourceAccountTypes", - "type": "SourceAccountTypesRestriction" + "type": "SourceAccountTypesRestriction | null" }, { "name": "timeOfDay", "baseName": "timeOfDay", - "type": "TimeOfDayRestriction" + "type": "TimeOfDayRestriction | null" }, { "name": "totalAmount", "baseName": "totalAmount", - "type": "TotalAmountRestriction" + "type": "TotalAmountRestriction | null" } ]; static getAttributeTypeMap() { diff --git a/src/typings/balancePlatform/transferRoute.ts b/src/typings/balancePlatform/transferRoute.ts index 2b8862ae9..01786c0e8 100644 --- a/src/typings/balancePlatform/transferRoute.ts +++ b/src/typings/balancePlatform/transferRoute.ts @@ -8,6 +8,7 @@ */ import { AddressRequirement } from './addressRequirement'; +import { AddressRequirement | AmountMinMaxRequirement | AmountNonZeroDecimalsRequirement | BankAccountIdentificationTypeRequirement | IbanAccountIdentificationRequirement | PaymentInstrumentRequirement | USInternationalAchAddressRequirement } from './addressRequirement | AmountMinMaxRequirement | AmountNonZeroDecimalsRequirement | BankAccountIdentificationTypeRequirement | IbanAccountIdentificationRequirement | PaymentInstrumentRequirement | USInternationalAchAddressRequirement'; import { AmountMinMaxRequirement } from './amountMinMaxRequirement'; import { AmountNonZeroDecimalsRequirement } from './amountNonZeroDecimalsRequirement'; import { BankAccountIdentificationTypeRequirement } from './bankAccountIdentificationTypeRequirement'; diff --git a/src/typings/balancePlatform/transferRouteRequest.ts b/src/typings/balancePlatform/transferRouteRequest.ts index 8a28ba772..d2dfd8ac0 100644 --- a/src/typings/balancePlatform/transferRouteRequest.ts +++ b/src/typings/balancePlatform/transferRouteRequest.ts @@ -22,7 +22,7 @@ export class TransferRouteRequest { * The type of transfer. Possible values: - **bank**: Transfer to a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. */ 'category': TransferRouteRequest.CategoryEnum; - 'counterparty'?: Counterparty; + 'counterparty'?: Counterparty | null; /** * The two-character ISO-3166-1 alpha-2 country code of the counterparty. For example, **US** or **NL**. > Either `counterparty` or `country` field must be provided in a transfer route request. */ @@ -57,7 +57,7 @@ export class TransferRouteRequest { { "name": "counterparty", "baseName": "counterparty", - "type": "Counterparty" + "type": "Counterparty | null" }, { "name": "country", diff --git a/src/typings/balancePlatform/updatePaymentInstrument.ts b/src/typings/balancePlatform/updatePaymentInstrument.ts index 5189c844c..57842bc71 100644 --- a/src/typings/balancePlatform/updatePaymentInstrument.ts +++ b/src/typings/balancePlatform/updatePaymentInstrument.ts @@ -23,8 +23,8 @@ export class UpdatePaymentInstrument { * The unique identifier of the [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/balanceAccounts__resParam_id) associated with the payment instrument. */ 'balanceAccountId': string; - 'bankAccount'?: BankAccountDetails; - 'card'?: Card; + 'bankAccount'?: BankAccountDetails | null; + 'card'?: Card | null; /** * Your description for the payment instrument, maximum 300 characters. */ @@ -78,12 +78,12 @@ export class UpdatePaymentInstrument { { "name": "bankAccount", "baseName": "bankAccount", - "type": "BankAccountDetails" + "type": "BankAccountDetails | null" }, { "name": "card", "baseName": "card", - "type": "Card" + "type": "Card | null" }, { "name": "description", diff --git a/src/typings/balancePlatform/updateSweepConfigurationV2.ts b/src/typings/balancePlatform/updateSweepConfigurationV2.ts index d8f529d78..d74461c0b 100644 --- a/src/typings/balancePlatform/updateSweepConfigurationV2.ts +++ b/src/typings/balancePlatform/updateSweepConfigurationV2.ts @@ -16,7 +16,7 @@ export class UpdateSweepConfigurationV2 { * The type of transfer that results from the sweep. Possible values: - **bank**: Sweep to a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). - **internal**: Transfer to another [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. Required when setting `priorities`. */ 'category'?: UpdateSweepConfigurationV2.CategoryEnum; - 'counterparty'?: SweepCounterparty; + 'counterparty'?: SweepCounterparty | null; /** * The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes) in uppercase. For example, **EUR**. The sweep currency must match any of the [balances currencies](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balanceAccounts/{id}__resParam_balances). */ @@ -49,14 +49,14 @@ export class UpdateSweepConfigurationV2 { * The reference sent to or received from the counterparty. Only alphanumeric characters are allowed. */ 'referenceForBeneficiary'?: string; - 'schedule'?: SweepSchedule; + 'schedule'?: SweepSchedule | null; /** * The status of the sweep. If not provided, by default, this is set to **active**. Possible values: * **active**: the sweep is enabled and funds will be pulled in or pushed out based on the defined configuration. * **inactive**: the sweep is disabled and cannot be triggered. */ 'status'?: UpdateSweepConfigurationV2.StatusEnum; - 'sweepAmount'?: Amount; - 'targetAmount'?: Amount; - 'triggerAmount'?: Amount; + 'sweepAmount'?: Amount | null; + 'targetAmount'?: Amount | null; + 'triggerAmount'?: Amount | null; /** * The direction of sweep, whether pushing out or pulling in funds to the balance account. If not provided, by default, this is set to **push**. Possible values: * **push**: _push out funds_ to a destination balance account or transfer instrument. * **pull**: _pull in funds_ from a source merchant account, transfer instrument, or balance account. */ @@ -73,7 +73,7 @@ export class UpdateSweepConfigurationV2 { { "name": "counterparty", "baseName": "counterparty", - "type": "SweepCounterparty" + "type": "SweepCounterparty | null" }, { "name": "currency", @@ -118,7 +118,7 @@ export class UpdateSweepConfigurationV2 { { "name": "schedule", "baseName": "schedule", - "type": "SweepSchedule" + "type": "SweepSchedule | null" }, { "name": "status", @@ -128,17 +128,17 @@ export class UpdateSweepConfigurationV2 { { "name": "sweepAmount", "baseName": "sweepAmount", - "type": "Amount" + "type": "Amount | null" }, { "name": "targetAmount", "baseName": "targetAmount", - "type": "Amount" + "type": "Amount | null" }, { "name": "triggerAmount", "baseName": "triggerAmount", - "type": "Amount" + "type": "Amount | null" }, { "name": "type", diff --git a/src/typings/binLookup/costEstimateRequest.ts b/src/typings/binLookup/costEstimateRequest.ts index 42d2656df..968578171 100644 --- a/src/typings/binLookup/costEstimateRequest.ts +++ b/src/typings/binLookup/costEstimateRequest.ts @@ -14,7 +14,7 @@ import { Recurring } from './recurring'; export class CostEstimateRequest { 'amount': Amount; - 'assumptions'?: CostEstimateAssumptions; + 'assumptions'?: CostEstimateAssumptions | null; /** * The card number (4-19 characters) for PCI compliant use cases. Do not use any separators. > Either the `cardNumber` or `encryptedCardNumber` field must be provided in a payment request. */ @@ -27,8 +27,8 @@ export class CostEstimateRequest { * The merchant account identifier you want to process the (transaction) request with. */ 'merchantAccount': string; - 'merchantDetails'?: MerchantDetails; - 'recurring'?: Recurring; + 'merchantDetails'?: MerchantDetails | null; + 'recurring'?: Recurring | null; /** * The `recurringDetailReference` you want to use for this cost estimate. The value `LATEST` can be used to select the most recently stored recurring detail. */ @@ -53,7 +53,7 @@ export class CostEstimateRequest { { "name": "assumptions", "baseName": "assumptions", - "type": "CostEstimateAssumptions" + "type": "CostEstimateAssumptions | null" }, { "name": "cardNumber", @@ -73,12 +73,12 @@ export class CostEstimateRequest { { "name": "merchantDetails", "baseName": "merchantDetails", - "type": "MerchantDetails" + "type": "MerchantDetails | null" }, { "name": "recurring", "baseName": "recurring", - "type": "Recurring" + "type": "Recurring | null" }, { "name": "selectedRecurringDetailReference", diff --git a/src/typings/binLookup/costEstimateResponse.ts b/src/typings/binLookup/costEstimateResponse.ts index 82117ee6c..fda35d2b4 100644 --- a/src/typings/binLookup/costEstimateResponse.ts +++ b/src/typings/binLookup/costEstimateResponse.ts @@ -11,8 +11,8 @@ import { Amount } from './amount'; import { CardBin } from './cardBin'; export class CostEstimateResponse { - 'cardBin'?: CardBin; - 'costEstimateAmount'?: Amount; + 'cardBin'?: CardBin | null; + 'costEstimateAmount'?: Amount | null; /** * Adyen\'s 16-character reference associated with the request. */ @@ -32,12 +32,12 @@ export class CostEstimateResponse { { "name": "cardBin", "baseName": "cardBin", - "type": "CardBin" + "type": "CardBin | null" }, { "name": "costEstimateAmount", "baseName": "costEstimateAmount", - "type": "Amount" + "type": "Amount | null" }, { "name": "costEstimateReference", diff --git a/src/typings/binLookup/threeDSAvailabilityResponse.ts b/src/typings/binLookup/threeDSAvailabilityResponse.ts index 643d883c9..7af1392a7 100644 --- a/src/typings/binLookup/threeDSAvailabilityResponse.ts +++ b/src/typings/binLookup/threeDSAvailabilityResponse.ts @@ -12,7 +12,7 @@ import { DSPublicKeyDetail } from './dSPublicKeyDetail'; import { ThreeDS2CardRangeDetail } from './threeDS2CardRangeDetail'; export class ThreeDSAvailabilityResponse { - 'binDetails'?: BinDetail; + 'binDetails'?: BinDetail | null; /** * List of Directory Server (DS) public keys. */ @@ -36,7 +36,7 @@ export class ThreeDSAvailabilityResponse { { "name": "binDetails", "baseName": "binDetails", - "type": "BinDetail" + "type": "BinDetail | null" }, { "name": "dsPublicKeys", diff --git a/src/typings/checkout/applicationInfo.ts b/src/typings/checkout/applicationInfo.ts index f5bda9224..e926e01cb 100644 --- a/src/typings/checkout/applicationInfo.ts +++ b/src/typings/checkout/applicationInfo.ts @@ -13,12 +13,12 @@ import { MerchantDevice } from './merchantDevice'; import { ShopperInteractionDevice } from './shopperInteractionDevice'; export class ApplicationInfo { - 'adyenLibrary'?: CommonField; - 'adyenPaymentSource'?: CommonField; - 'externalPlatform'?: ExternalPlatform; - 'merchantApplication'?: CommonField; - 'merchantDevice'?: MerchantDevice; - 'shopperInteractionDevice'?: ShopperInteractionDevice; + 'adyenLibrary'?: CommonField | null; + 'adyenPaymentSource'?: CommonField | null; + 'externalPlatform'?: ExternalPlatform | null; + 'merchantApplication'?: CommonField | null; + 'merchantDevice'?: MerchantDevice | null; + 'shopperInteractionDevice'?: ShopperInteractionDevice | null; static discriminator: string | undefined = undefined; @@ -26,32 +26,32 @@ export class ApplicationInfo { { "name": "adyenLibrary", "baseName": "adyenLibrary", - "type": "CommonField" + "type": "CommonField | null" }, { "name": "adyenPaymentSource", "baseName": "adyenPaymentSource", - "type": "CommonField" + "type": "CommonField | null" }, { "name": "externalPlatform", "baseName": "externalPlatform", - "type": "ExternalPlatform" + "type": "ExternalPlatform | null" }, { "name": "merchantApplication", "baseName": "merchantApplication", - "type": "CommonField" + "type": "CommonField | null" }, { "name": "merchantDevice", "baseName": "merchantDevice", - "type": "MerchantDevice" + "type": "MerchantDevice | null" }, { "name": "shopperInteractionDevice", "baseName": "shopperInteractionDevice", - "type": "ShopperInteractionDevice" + "type": "ShopperInteractionDevice | null" } ]; static getAttributeTypeMap() { diff --git a/src/typings/checkout/authenticationData.ts b/src/typings/checkout/authenticationData.ts index 0d7b856fc..c48142dca 100644 --- a/src/typings/checkout/authenticationData.ts +++ b/src/typings/checkout/authenticationData.ts @@ -18,7 +18,7 @@ export class AuthenticationData { * 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**. */ 'authenticationOnly'?: boolean; - 'threeDSRequestData'?: ThreeDSRequestData; + 'threeDSRequestData'?: ThreeDSRequestData | null; static discriminator: string | undefined = undefined; @@ -36,7 +36,7 @@ export class AuthenticationData { { "name": "threeDSRequestData", "baseName": "threeDSRequestData", - "type": "ThreeDSRequestData" + "type": "ThreeDSRequestData | null" } ]; static getAttributeTypeMap() { diff --git a/src/typings/checkout/balanceCheckRequest.ts b/src/typings/checkout/balanceCheckRequest.ts index f92d9106f..12080cdb0 100644 --- a/src/typings/checkout/balanceCheckRequest.ts +++ b/src/typings/checkout/balanceCheckRequest.ts @@ -21,16 +21,16 @@ import { Split } from './split'; import { ThreeDS2RequestData } from './threeDS2RequestData'; export class BalanceCheckRequest { - 'accountInfo'?: AccountInfo; - 'additionalAmount'?: Amount; + 'accountInfo'?: AccountInfo | null; + 'additionalAmount'?: Amount | null; /** * This field contains additional data, which may be required for a particular payment request. The `additionalData` object consists of entries, each of which includes the key and value. */ 'additionalData'?: { [key: string]: string; }; 'amount': Amount; - 'applicationInfo'?: ApplicationInfo; - 'billingAddress'?: Address; - 'browserInfo'?: BrowserInfo; + 'applicationInfo'?: ApplicationInfo | null; + 'billingAddress'?: Address | null; + 'browserInfo'?: BrowserInfo | null; /** * The delay between the authorisation and scheduled auto-capture, specified in hours. */ @@ -39,8 +39,8 @@ export class BalanceCheckRequest { * The shopper\'s date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD */ 'dateOfBirth'?: string; - 'dccQuote'?: ForexQuote; - 'deliveryAddress'?: Address; + 'dccQuote'?: ForexQuote | null; + 'deliveryAddress'?: Address | null; /** * The date and time the purchased goods should be delivered. Format [ISO 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: 2017-07-17T13:42:40.428+01:00 */ @@ -53,7 +53,7 @@ export class BalanceCheckRequest { * An integer value that is added to the normal fraud score. The value can be either positive or negative. */ 'fraudOffset'?: number; - 'installments'?: Installments; + 'installments'?: Installments | null; /** * The `localizedShopperStatement` field lets you use dynamic values for your shopper statement in a local character set. If not supplied, left empty, or for cross-border transactions, **shopperStatement** is used. Adyen currently supports the ja-Kana character set for Visa and Mastercard payments in Japan using Japanese cards. This character set supports: * UTF-8 based Katakana, capital letters, numbers and special characters. * Half-width or full-width characters. */ @@ -70,7 +70,7 @@ export class BalanceCheckRequest { * This reference allows linking multiple transactions to each other for reporting purposes (i.e. order auth-rate). The reference should be unique per billing cycle. The same merchant order reference should never be reused after the first authorised attempt. If used, this field should be supplied for all incoming authorisations. > We strongly recommend you send the `merchantOrderReference` value to benefit from linking payment requests when authorisation retries take place. In addition, we recommend you provide `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and `retry.skipRetry` values in `PaymentRequest.additionalData`. */ 'merchantOrderReference'?: string; - 'merchantRiskIndicator'?: MerchantRiskIndicator; + 'merchantRiskIndicator'?: MerchantRiskIndicator | null; /** * Metadata consists of entries, each of which includes a key and a value. Limits: * Maximum 20 key-value pairs per request. When exceeding, the \"177\" error occurs: \"Metadata size exceeds limit\". * Maximum 20 characters per key. * Maximum 80 characters per value. */ @@ -83,7 +83,7 @@ export class BalanceCheckRequest { * The collection that contains the type of the payment method and its specific information. */ 'paymentMethod': { [key: string]: string; }; - 'recurring'?: Recurring; + 'recurring'?: Recurring | null; /** * Defines a recurring payment type. Required when creating a token to store payment details or using stored payment details. Allowed values: * `Subscription` – A transaction for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have variable amounts. For example, automatic top-ups when a cardholder\'s balance drops below a certain amount. */ @@ -120,7 +120,7 @@ export class BalanceCheckRequest { * The combination of a language code and a country code to specify the language to be used in the payment. */ 'shopperLocale'?: string; - 'shopperName'?: Name; + 'shopperName'?: Name | null; /** * Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. Minimum length: 3 characters. > Your reference must not include personally identifiable information (PII), for example name or email address. */ @@ -145,7 +145,7 @@ export class BalanceCheckRequest { * The shopper\'s telephone number. */ 'telephoneNumber'?: string; - 'threeDS2RequestData'?: ThreeDS2RequestData; + '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. * @@ -168,12 +168,12 @@ export class BalanceCheckRequest { { "name": "accountInfo", "baseName": "accountInfo", - "type": "AccountInfo" + "type": "AccountInfo | null" }, { "name": "additionalAmount", "baseName": "additionalAmount", - "type": "Amount" + "type": "Amount | null" }, { "name": "additionalData", @@ -188,17 +188,17 @@ export class BalanceCheckRequest { { "name": "applicationInfo", "baseName": "applicationInfo", - "type": "ApplicationInfo" + "type": "ApplicationInfo | null" }, { "name": "billingAddress", "baseName": "billingAddress", - "type": "Address" + "type": "Address | null" }, { "name": "browserInfo", "baseName": "browserInfo", - "type": "BrowserInfo" + "type": "BrowserInfo | null" }, { "name": "captureDelayHours", @@ -213,12 +213,12 @@ export class BalanceCheckRequest { { "name": "dccQuote", "baseName": "dccQuote", - "type": "ForexQuote" + "type": "ForexQuote | null" }, { "name": "deliveryAddress", "baseName": "deliveryAddress", - "type": "Address" + "type": "Address | null" }, { "name": "deliveryDate", @@ -238,7 +238,7 @@ export class BalanceCheckRequest { { "name": "installments", "baseName": "installments", - "type": "Installments" + "type": "Installments | null" }, { "name": "localizedShopperStatement", @@ -263,7 +263,7 @@ export class BalanceCheckRequest { { "name": "merchantRiskIndicator", "baseName": "merchantRiskIndicator", - "type": "MerchantRiskIndicator" + "type": "MerchantRiskIndicator | null" }, { "name": "metadata", @@ -283,7 +283,7 @@ export class BalanceCheckRequest { { "name": "recurring", "baseName": "recurring", - "type": "Recurring" + "type": "Recurring | null" }, { "name": "recurringProcessingModel", @@ -333,7 +333,7 @@ export class BalanceCheckRequest { { "name": "shopperName", "baseName": "shopperName", - "type": "Name" + "type": "Name | null" }, { "name": "shopperReference", @@ -368,7 +368,7 @@ export class BalanceCheckRequest { { "name": "threeDS2RequestData", "baseName": "threeDS2RequestData", - "type": "ThreeDS2RequestData" + "type": "ThreeDS2RequestData | null" }, { "name": "threeDSAuthenticationOnly", diff --git a/src/typings/checkout/balanceCheckResponse.ts b/src/typings/checkout/balanceCheckResponse.ts index 6abd499f8..59654dc73 100644 --- a/src/typings/checkout/balanceCheckResponse.ts +++ b/src/typings/checkout/balanceCheckResponse.ts @@ -16,7 +16,7 @@ export class BalanceCheckResponse { */ 'additionalData'?: { [key: string]: string; }; 'balance': Amount; - 'fraudResult'?: FraudResult; + 'fraudResult'?: FraudResult | null; /** * Adyen\'s 16-character reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. */ @@ -29,7 +29,7 @@ export class BalanceCheckResponse { * The result of the cancellation request. Possible values: * **Success** – Indicates that the balance check was successful. * **NotEnoughBalance** – Commonly indicates that the card did not have enough balance to pay the amount in the request, or that the currency of the balance on the card did not match the currency of the requested amount. * **Failed** – Indicates that the balance check failed. */ 'resultCode': BalanceCheckResponse.ResultCodeEnum; - 'transactionLimit'?: Amount; + 'transactionLimit'?: Amount | null; static discriminator: string | undefined = undefined; @@ -47,7 +47,7 @@ export class BalanceCheckResponse { { "name": "fraudResult", "baseName": "fraudResult", - "type": "FraudResult" + "type": "FraudResult | null" }, { "name": "pspReference", @@ -67,7 +67,7 @@ export class BalanceCheckResponse { { "name": "transactionLimit", "baseName": "transactionLimit", - "type": "Amount" + "type": "Amount | null" } ]; static getAttributeTypeMap() { diff --git a/src/typings/checkout/checkoutBankTransferAction.ts b/src/typings/checkout/checkoutBankTransferAction.ts index 61831186b..b788fdf5b 100644 --- a/src/typings/checkout/checkoutBankTransferAction.ts +++ b/src/typings/checkout/checkoutBankTransferAction.ts @@ -50,7 +50,7 @@ export class CheckoutBankTransferAction { * The sort code of the bank transfer. */ 'sortCode'?: string; - 'totalAmount'?: Amount; + 'totalAmount'?: Amount | null; /** * The type of the action. */ @@ -116,7 +116,7 @@ export class CheckoutBankTransferAction { { "name": "totalAmount", "baseName": "totalAmount", - "type": "Amount" + "type": "Amount | null" }, { "name": "type", diff --git a/src/typings/checkout/checkoutOrderResponse.ts b/src/typings/checkout/checkoutOrderResponse.ts index a14efa50b..7a30f402b 100644 --- a/src/typings/checkout/checkoutOrderResponse.ts +++ b/src/typings/checkout/checkoutOrderResponse.ts @@ -10,7 +10,7 @@ import { Amount } from './amount'; export class CheckoutOrderResponse { - 'amount'?: Amount; + 'amount'?: Amount | null; /** * The expiry date for the order. */ @@ -27,7 +27,7 @@ export class CheckoutOrderResponse { * The merchant reference for the order. */ 'reference'?: string; - 'remainingAmount'?: Amount; + 'remainingAmount'?: Amount | null; static discriminator: string | undefined = undefined; @@ -35,7 +35,7 @@ export class CheckoutOrderResponse { { "name": "amount", "baseName": "amount", - "type": "Amount" + "type": "Amount | null" }, { "name": "expiresAt", @@ -60,7 +60,7 @@ export class CheckoutOrderResponse { { "name": "remainingAmount", "baseName": "remainingAmount", - "type": "Amount" + "type": "Amount | null" } ]; static getAttributeTypeMap() { diff --git a/src/typings/checkout/checkoutSessionThreeDS2RequestData.ts b/src/typings/checkout/checkoutSessionThreeDS2RequestData.ts index 5e8f31a65..265e37b9c 100644 --- a/src/typings/checkout/checkoutSessionThreeDS2RequestData.ts +++ b/src/typings/checkout/checkoutSessionThreeDS2RequestData.ts @@ -10,13 +10,13 @@ import { Phone } from './phone'; export class CheckoutSessionThreeDS2RequestData { - 'homePhone'?: Phone; - 'mobilePhone'?: Phone; + 'homePhone'?: Phone | null; + 'mobilePhone'?: Phone | null; /** * Indicates whether a challenge is requested for this transaction. Possible values: * **01** — No preference * **02** — No challenge requested * **03** — Challenge requested (3DS Requestor preference) * **04** — Challenge requested (Mandate) * **05** — No challenge (transactional risk analysis is already performed) * **06** — Data Only */ 'threeDSRequestorChallengeInd'?: CheckoutSessionThreeDS2RequestData.ThreeDSRequestorChallengeIndEnum; - 'workPhone'?: Phone; + 'workPhone'?: Phone | null; static discriminator: string | undefined = undefined; @@ -24,12 +24,12 @@ export class CheckoutSessionThreeDS2RequestData { { "name": "homePhone", "baseName": "homePhone", - "type": "Phone" + "type": "Phone | null" }, { "name": "mobilePhone", "baseName": "mobilePhone", - "type": "Phone" + "type": "Phone | null" }, { "name": "threeDSRequestorChallengeInd", @@ -39,7 +39,7 @@ export class CheckoutSessionThreeDS2RequestData { { "name": "workPhone", "baseName": "workPhone", - "type": "Phone" + "type": "Phone | null" } ]; static getAttributeTypeMap() { diff --git a/src/typings/checkout/checkoutVoucherAction.ts b/src/typings/checkout/checkoutVoucherAction.ts index ae8356f69..4f4cf6d7e 100644 --- a/src/typings/checkout/checkoutVoucherAction.ts +++ b/src/typings/checkout/checkoutVoucherAction.ts @@ -30,7 +30,7 @@ export class CheckoutVoucherAction { * The date time of the voucher expiry. */ 'expiresAt'?: string; - 'initialAmount'?: Amount; + 'initialAmount'?: Amount | null; /** * The URL to the detailed instructions to make payment using the voucher. */ @@ -75,8 +75,8 @@ export class CheckoutVoucherAction { * The shopper name. */ 'shopperName'?: string; - 'surcharge'?: Amount; - 'totalAmount'?: Amount; + 'surcharge'?: Amount | null; + 'totalAmount'?: Amount | null; /** * **voucher** */ @@ -117,7 +117,7 @@ export class CheckoutVoucherAction { { "name": "initialAmount", "baseName": "initialAmount", - "type": "Amount" + "type": "Amount | null" }, { "name": "instructionsUrl", @@ -177,12 +177,12 @@ export class CheckoutVoucherAction { { "name": "surcharge", "baseName": "surcharge", - "type": "Amount" + "type": "Amount | null" }, { "name": "totalAmount", "baseName": "totalAmount", - "type": "Amount" + "type": "Amount | null" }, { "name": "type", diff --git a/src/typings/checkout/createCheckoutSessionRequest.ts b/src/typings/checkout/createCheckoutSessionRequest.ts index dbc25ef12..0174a4ff3 100644 --- a/src/typings/checkout/createCheckoutSessionRequest.ts +++ b/src/typings/checkout/createCheckoutSessionRequest.ts @@ -27,8 +27,8 @@ import { Split } from './split'; import { ThreeDSecureData } from './threeDSecureData'; export class CreateCheckoutSessionRequest { - 'accountInfo'?: AccountInfo; - 'additionalAmount'?: Amount; + 'accountInfo'?: AccountInfo | null; + 'additionalAmount'?: Amount | null; /** * This field contains additional data, which may be required for a particular payment request. The `additionalData` object consists of entries, each of which includes the key and value. */ @@ -38,9 +38,9 @@ export class CreateCheckoutSessionRequest { */ 'allowedPaymentMethods'?: Array; 'amount': Amount; - 'applicationInfo'?: ApplicationInfo; - 'authenticationData'?: AuthenticationData; - 'billingAddress'?: BillingAddress; + 'applicationInfo'?: ApplicationInfo | null; + 'authenticationData'?: AuthenticationData | null; + 'billingAddress'?: BillingAddress | null; /** * List of payment methods to be hidden from the shopper. To refer to payment methods, use their [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: `\"blockedPaymentMethods\":[\"ideal\",\"giropay\"]` */ @@ -53,7 +53,7 @@ export class CreateCheckoutSessionRequest { * The platform where a payment transaction takes place. This field is optional for filtering out payment methods that are only available on specific platforms. If this value is not set, then we will try to infer it from the `sdkVersion` or `token`. Possible values: * **iOS** * **Android** * **Web** */ 'channel'?: CreateCheckoutSessionRequest.ChannelEnum; - 'company'?: Company; + 'company'?: Company | null; /** * The shopper\'s two-letter country code. */ @@ -66,7 +66,7 @@ export class CreateCheckoutSessionRequest { * The date and time when the purchased goods should be delivered. [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, **2020-12-18T10:15:30+01:00**. */ 'deliverAt'?: Date; - 'deliveryAddress'?: DeliveryAddress; + 'deliveryAddress'?: DeliveryAddress | null; /** * When true and `shopperReference` is provided, the shopper will be asked if the payment details should be stored for future [one-click payments](https://docs.adyen.com/get-started-with-adyen/payment-glossary/#one-click-payments-definition). */ @@ -83,8 +83,8 @@ export class CreateCheckoutSessionRequest { * The date the session expires in [ISO8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. When not specified, the expiry date is set to 1 hour after session creation. You cannot set the session expiry to more than 24 hours after session creation. */ 'expiresAt'?: Date; - 'fundOrigin'?: FundOrigin; - 'fundRecipient'?: FundRecipient; + 'fundOrigin'?: FundOrigin | null; + 'fundRecipient'?: FundRecipient | null; /** * A set of key-value pairs that specifies the installment options available per payment method. The key must be a payment method name in lowercase. For example, **card** to specify installment options for all cards, or **visa** or **mc**. The value must be an object containing the installment options. */ @@ -93,7 +93,7 @@ export class CreateCheckoutSessionRequest { * Price and product information about the purchased items, to be included on the invoice sent to the shopper. > This field is required for 3x 4x Oney, Affirm, Afterpay, Clearpay, Klarna, Ratepay, Riverty, and Zip. */ 'lineItems'?: Array; - 'mandate'?: Mandate; + 'mandate'?: Mandate | null; /** * The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a four-digit number, which relates to a particular market segment. This code reflects the predominant activity that is conducted by the merchant. */ @@ -114,8 +114,8 @@ export class CreateCheckoutSessionRequest { * Indicates the type of front end integration. Possible values: * **embedded** (default): Drop-in or Components integration * **hosted**: Hosted Checkout integration */ 'mode'?: CreateCheckoutSessionRequest.ModeEnum; - 'mpiData'?: ThreeDSecureData; - 'platformChargebackLogic'?: PlatformChargebackLogic; + 'mpiData'?: ThreeDSecureData | null; + 'platformChargebackLogic'?: PlatformChargebackLogic | null; /** * Date after which no further authorisations shall be performed. Only for 3D Secure 2. */ @@ -144,7 +144,7 @@ export class CreateCheckoutSessionRequest { * 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. */ 'returnUrl': string; - 'riskData'?: RiskData; + 'riskData'?: RiskData | null; /** * The shopper\'s email address. */ @@ -161,7 +161,7 @@ export class CreateCheckoutSessionRequest { * The combination of a language code and a country code to specify the language to be used in the payment. */ 'shopperLocale'?: string; - 'shopperName'?: Name; + 'shopperName'?: Name | null; /** * Your reference to uniquely identify this shopper, for example user ID or account ID. Minimum length: 3 characters. > Your reference must not include personally identifiable information (PII), for example name or email address. */ @@ -214,7 +214,7 @@ export class CreateCheckoutSessionRequest { * Sets a custom theme for [Hosted Checkout](https://docs.adyen.com/online-payments/build-your-integration/?platform=Web&integration=Hosted+Checkout). The value can be any of the **Theme ID** values from your Customer Area. */ 'themeId'?: string; - 'threeDS2RequestData'?: CheckoutSessionThreeDS2RequestData; + '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. * @@ -233,12 +233,12 @@ export class CreateCheckoutSessionRequest { { "name": "accountInfo", "baseName": "accountInfo", - "type": "AccountInfo" + "type": "AccountInfo | null" }, { "name": "additionalAmount", "baseName": "additionalAmount", - "type": "Amount" + "type": "Amount | null" }, { "name": "additionalData", @@ -258,17 +258,17 @@ export class CreateCheckoutSessionRequest { { "name": "applicationInfo", "baseName": "applicationInfo", - "type": "ApplicationInfo" + "type": "ApplicationInfo | null" }, { "name": "authenticationData", "baseName": "authenticationData", - "type": "AuthenticationData" + "type": "AuthenticationData | null" }, { "name": "billingAddress", "baseName": "billingAddress", - "type": "BillingAddress" + "type": "BillingAddress | null" }, { "name": "blockedPaymentMethods", @@ -288,7 +288,7 @@ export class CreateCheckoutSessionRequest { { "name": "company", "baseName": "company", - "type": "Company" + "type": "Company | null" }, { "name": "countryCode", @@ -308,7 +308,7 @@ export class CreateCheckoutSessionRequest { { "name": "deliveryAddress", "baseName": "deliveryAddress", - "type": "DeliveryAddress" + "type": "DeliveryAddress | null" }, { "name": "enableOneClick", @@ -333,12 +333,12 @@ export class CreateCheckoutSessionRequest { { "name": "fundOrigin", "baseName": "fundOrigin", - "type": "FundOrigin" + "type": "FundOrigin | null" }, { "name": "fundRecipient", "baseName": "fundRecipient", - "type": "FundRecipient" + "type": "FundRecipient | null" }, { "name": "installmentOptions", @@ -353,7 +353,7 @@ export class CreateCheckoutSessionRequest { { "name": "mandate", "baseName": "mandate", - "type": "Mandate" + "type": "Mandate | null" }, { "name": "mcc", @@ -383,12 +383,12 @@ export class CreateCheckoutSessionRequest { { "name": "mpiData", "baseName": "mpiData", - "type": "ThreeDSecureData" + "type": "ThreeDSecureData | null" }, { "name": "platformChargebackLogic", "baseName": "platformChargebackLogic", - "type": "PlatformChargebackLogic" + "type": "PlatformChargebackLogic | null" }, { "name": "recurringExpiry", @@ -428,7 +428,7 @@ export class CreateCheckoutSessionRequest { { "name": "riskData", "baseName": "riskData", - "type": "RiskData" + "type": "RiskData | null" }, { "name": "shopperEmail", @@ -453,7 +453,7 @@ export class CreateCheckoutSessionRequest { { "name": "shopperName", "baseName": "shopperName", - "type": "Name" + "type": "Name | null" }, { "name": "shopperReference", @@ -523,7 +523,7 @@ export class CreateCheckoutSessionRequest { { "name": "threeDS2RequestData", "baseName": "threeDS2RequestData", - "type": "CheckoutSessionThreeDS2RequestData" + "type": "CheckoutSessionThreeDS2RequestData | null" }, { "name": "threeDSAuthenticationOnly", diff --git a/src/typings/checkout/createCheckoutSessionResponse.ts b/src/typings/checkout/createCheckoutSessionResponse.ts index 578556e8d..9ef17bbcf 100644 --- a/src/typings/checkout/createCheckoutSessionResponse.ts +++ b/src/typings/checkout/createCheckoutSessionResponse.ts @@ -27,8 +27,8 @@ import { Split } from './split'; import { ThreeDSecureData } from './threeDSecureData'; export class CreateCheckoutSessionResponse { - 'accountInfo'?: AccountInfo; - 'additionalAmount'?: Amount; + 'accountInfo'?: AccountInfo | null; + 'additionalAmount'?: Amount | null; /** * This field contains additional data, which may be required for a particular payment request. The `additionalData` object consists of entries, each of which includes the key and value. */ @@ -38,9 +38,9 @@ export class CreateCheckoutSessionResponse { */ 'allowedPaymentMethods'?: Array; 'amount': Amount; - 'applicationInfo'?: ApplicationInfo; - 'authenticationData'?: AuthenticationData; - 'billingAddress'?: BillingAddress; + 'applicationInfo'?: ApplicationInfo | null; + 'authenticationData'?: AuthenticationData | null; + 'billingAddress'?: BillingAddress | null; /** * List of payment methods to be hidden from the shopper. To refer to payment methods, use their [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: `\"blockedPaymentMethods\":[\"ideal\",\"giropay\"]` */ @@ -53,7 +53,7 @@ export class CreateCheckoutSessionResponse { * The platform where a payment transaction takes place. This field is optional for filtering out payment methods that are only available on specific platforms. If this value is not set, then we will try to infer it from the `sdkVersion` or `token`. Possible values: * **iOS** * **Android** * **Web** */ 'channel'?: CreateCheckoutSessionResponse.ChannelEnum; - 'company'?: Company; + 'company'?: Company | null; /** * The shopper\'s two-letter country code. */ @@ -66,7 +66,7 @@ export class CreateCheckoutSessionResponse { * The date and time when the purchased goods should be delivered. [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, **2020-12-18T10:15:30+01:00**. */ 'deliverAt'?: Date; - 'deliveryAddress'?: DeliveryAddress; + 'deliveryAddress'?: DeliveryAddress | null; /** * When true and `shopperReference` is provided, the shopper will be asked if the payment details should be stored for future [one-click payments](https://docs.adyen.com/get-started-with-adyen/payment-glossary/#one-click-payments-definition). */ @@ -83,8 +83,8 @@ export class CreateCheckoutSessionResponse { * The date the session expires in [ISO8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. When not specified, the expiry date is set to 1 hour after session creation. You cannot set the session expiry to more than 24 hours after session creation. */ 'expiresAt': Date; - 'fundOrigin'?: FundOrigin; - 'fundRecipient'?: FundRecipient; + 'fundOrigin'?: FundOrigin | null; + 'fundRecipient'?: FundRecipient | null; /** * A unique identifier of the session. */ @@ -97,7 +97,7 @@ export class CreateCheckoutSessionResponse { * Price and product information about the purchased items, to be included on the invoice sent to the shopper. > This field is required for 3x 4x Oney, Affirm, Afterpay, Clearpay, Klarna, Ratepay, Riverty, and Zip. */ 'lineItems'?: Array; - 'mandate'?: Mandate; + 'mandate'?: Mandate | null; /** * The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a four-digit number, which relates to a particular market segment. This code reflects the predominant activity that is conducted by the merchant. */ @@ -118,8 +118,8 @@ export class CreateCheckoutSessionResponse { * Indicates the type of front end integration. Possible values: * **embedded** (default): Drop-in or Components integration * **hosted**: Hosted Checkout integration */ 'mode'?: CreateCheckoutSessionResponse.ModeEnum; - 'mpiData'?: ThreeDSecureData; - 'platformChargebackLogic'?: PlatformChargebackLogic; + 'mpiData'?: ThreeDSecureData | null; + 'platformChargebackLogic'?: PlatformChargebackLogic | null; /** * Date after which no further authorisations shall be performed. Only for 3D Secure 2. */ @@ -148,7 +148,7 @@ export class CreateCheckoutSessionResponse { * 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. */ 'returnUrl': string; - 'riskData'?: RiskData; + 'riskData'?: RiskData | null; /** * The payment session data you need to pass to your front end. */ @@ -169,7 +169,7 @@ export class CreateCheckoutSessionResponse { * The combination of a language code and a country code to specify the language to be used in the payment. */ 'shopperLocale'?: string; - 'shopperName'?: Name; + 'shopperName'?: Name | null; /** * Your reference to uniquely identify this shopper, for example user ID or account ID. Minimum length: 3 characters. > Your reference must not include personally identifiable information (PII), for example name or email address. */ @@ -222,7 +222,7 @@ export class CreateCheckoutSessionResponse { * Sets a custom theme for [Hosted Checkout](https://docs.adyen.com/online-payments/build-your-integration/?platform=Web&integration=Hosted+Checkout). The value can be any of the **Theme ID** values from your Customer Area. */ 'themeId'?: string; - 'threeDS2RequestData'?: CheckoutSessionThreeDS2RequestData; + '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. * @@ -245,12 +245,12 @@ export class CreateCheckoutSessionResponse { { "name": "accountInfo", "baseName": "accountInfo", - "type": "AccountInfo" + "type": "AccountInfo | null" }, { "name": "additionalAmount", "baseName": "additionalAmount", - "type": "Amount" + "type": "Amount | null" }, { "name": "additionalData", @@ -270,17 +270,17 @@ export class CreateCheckoutSessionResponse { { "name": "applicationInfo", "baseName": "applicationInfo", - "type": "ApplicationInfo" + "type": "ApplicationInfo | null" }, { "name": "authenticationData", "baseName": "authenticationData", - "type": "AuthenticationData" + "type": "AuthenticationData | null" }, { "name": "billingAddress", "baseName": "billingAddress", - "type": "BillingAddress" + "type": "BillingAddress | null" }, { "name": "blockedPaymentMethods", @@ -300,7 +300,7 @@ export class CreateCheckoutSessionResponse { { "name": "company", "baseName": "company", - "type": "Company" + "type": "Company | null" }, { "name": "countryCode", @@ -320,7 +320,7 @@ export class CreateCheckoutSessionResponse { { "name": "deliveryAddress", "baseName": "deliveryAddress", - "type": "DeliveryAddress" + "type": "DeliveryAddress | null" }, { "name": "enableOneClick", @@ -345,12 +345,12 @@ export class CreateCheckoutSessionResponse { { "name": "fundOrigin", "baseName": "fundOrigin", - "type": "FundOrigin" + "type": "FundOrigin | null" }, { "name": "fundRecipient", "baseName": "fundRecipient", - "type": "FundRecipient" + "type": "FundRecipient | null" }, { "name": "id", @@ -370,7 +370,7 @@ export class CreateCheckoutSessionResponse { { "name": "mandate", "baseName": "mandate", - "type": "Mandate" + "type": "Mandate | null" }, { "name": "mcc", @@ -400,12 +400,12 @@ export class CreateCheckoutSessionResponse { { "name": "mpiData", "baseName": "mpiData", - "type": "ThreeDSecureData" + "type": "ThreeDSecureData | null" }, { "name": "platformChargebackLogic", "baseName": "platformChargebackLogic", - "type": "PlatformChargebackLogic" + "type": "PlatformChargebackLogic | null" }, { "name": "recurringExpiry", @@ -445,7 +445,7 @@ export class CreateCheckoutSessionResponse { { "name": "riskData", "baseName": "riskData", - "type": "RiskData" + "type": "RiskData | null" }, { "name": "sessionData", @@ -475,7 +475,7 @@ export class CreateCheckoutSessionResponse { { "name": "shopperName", "baseName": "shopperName", - "type": "Name" + "type": "Name | null" }, { "name": "shopperReference", @@ -545,7 +545,7 @@ export class CreateCheckoutSessionResponse { { "name": "threeDS2RequestData", "baseName": "threeDS2RequestData", - "type": "CheckoutSessionThreeDS2RequestData" + "type": "CheckoutSessionThreeDS2RequestData | null" }, { "name": "threeDSAuthenticationOnly", diff --git a/src/typings/checkout/createOrderResponse.ts b/src/typings/checkout/createOrderResponse.ts index e76866458..76e77ace8 100644 --- a/src/typings/checkout/createOrderResponse.ts +++ b/src/typings/checkout/createOrderResponse.ts @@ -20,7 +20,7 @@ export class CreateOrderResponse { * The date that the order will expire. */ 'expiresAt': string; - 'fraudResult'?: FraudResult; + 'fraudResult'?: FraudResult | null; /** * The encrypted data that will be used by merchant for adding payments to the order. */ @@ -64,7 +64,7 @@ export class CreateOrderResponse { { "name": "fraudResult", "baseName": "fraudResult", - "type": "FraudResult" + "type": "FraudResult | null" }, { "name": "orderData", diff --git a/src/typings/checkout/deliveryMethod.ts b/src/typings/checkout/deliveryMethod.ts index 75960ba9e..0beb2f5d9 100644 --- a/src/typings/checkout/deliveryMethod.ts +++ b/src/typings/checkout/deliveryMethod.ts @@ -10,7 +10,7 @@ import { Amount } from './amount'; export class DeliveryMethod { - 'amount'?: Amount; + 'amount'?: Amount | null; /** * The name of the delivery method as shown to the shopper. */ @@ -34,7 +34,7 @@ export class DeliveryMethod { { "name": "amount", "baseName": "amount", - "type": "Amount" + "type": "Amount | null" }, { "name": "description", diff --git a/src/typings/checkout/donationCampaign.ts b/src/typings/checkout/donationCampaign.ts index 92094b116..e31a4fca6 100644 --- a/src/typings/checkout/donationCampaign.ts +++ b/src/typings/checkout/donationCampaign.ts @@ -11,7 +11,7 @@ import { Amounts } from './amounts'; import { Donation } from './donation'; export class DonationCampaign { - 'amounts'?: Amounts; + 'amounts'?: Amounts | null; /** * The URL for the banner of the nonprofit or campaign. */ @@ -24,7 +24,7 @@ export class DonationCampaign { * The cause of the nonprofit. */ 'causeName'?: string; - 'donation'?: Donation; + 'donation'?: Donation | null; /** * The unique campaign ID of the donation campaign. */ @@ -56,7 +56,7 @@ export class DonationCampaign { { "name": "amounts", "baseName": "amounts", - "type": "Amounts" + "type": "Amounts | null" }, { "name": "bannerUrl", @@ -76,7 +76,7 @@ export class DonationCampaign { { "name": "donation", "baseName": "donation", - "type": "Donation" + "type": "Donation | null" }, { "name": "id", diff --git a/src/typings/checkout/donationPaymentRequest.ts b/src/typings/checkout/donationPaymentRequest.ts index 7a564ad2d..22fb1ae1e 100644 --- a/src/typings/checkout/donationPaymentRequest.ts +++ b/src/typings/checkout/donationPaymentRequest.ts @@ -26,16 +26,16 @@ import { ThreeDS2RequestFields } from './threeDS2RequestFields'; import { ThreeDSecureData } from './threeDSecureData'; export class DonationPaymentRequest { - 'accountInfo'?: AccountInfo; + 'accountInfo'?: AccountInfo | null; /** * This field contains additional data, which may be required for a particular payment request. The `additionalData` object consists of entries, each of which includes the key and value. */ 'additionalData'?: { [key: string]: string; }; 'amount': Amount; - 'applicationInfo'?: ApplicationInfo; - 'authenticationData'?: AuthenticationData; - 'billingAddress'?: BillingAddress; - 'browserInfo'?: BrowserInfo; + 'applicationInfo'?: ApplicationInfo | null; + 'authenticationData'?: AuthenticationData | null; + 'billingAddress'?: BillingAddress | null; + 'browserInfo'?: BrowserInfo | null; /** * The platform where a payment transaction takes place. This field is optional for filtering out payment methods that are only available on specific platforms. If this value is not set, then we will try to infer it from the `sdkVersion` or `token`. Possible values: * iOS * Android * Web */ @@ -63,7 +63,7 @@ export class DonationPaymentRequest { * The date and time the purchased goods should be delivered. Format [ISO 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: 2017-07-17T13:42:40.428+01:00 */ 'deliverAt'?: Date; - 'deliveryAddress'?: DeliveryAddress; + 'deliveryAddress'?: DeliveryAddress | null; /** * A string containing the shopper\'s device fingerprint. For more information, refer to [Device fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting). */ @@ -92,12 +92,12 @@ export class DonationPaymentRequest { * The merchant account identifier, with which you want to process the transaction. */ 'merchantAccount': string; - 'merchantRiskIndicator'?: MerchantRiskIndicator; + 'merchantRiskIndicator'?: MerchantRiskIndicator | null; /** * Metadata consists of entries, each of which includes a key and a value. Limits: * Maximum 20 key-value pairs per request. When exceeding, the \"177\" error occurs: \"Metadata size exceeds limit\". * Maximum 20 characters per key. * Maximum 80 characters per value. */ 'metadata'?: { [key: string]: string; }; - 'mpiData'?: ThreeDSecureData; + '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. */ @@ -105,7 +105,7 @@ export class DonationPaymentRequest { /** * The type and required details of a payment method to use. */ - 'paymentMethod': ApplePayDonations | CardDonations | GooglePayDonations | IdealDonations | PayWithGoogleDonations | null; + 'paymentMethod': ApplePayDonations | CardDonations | GooglePayDonations | IdealDonations | PayWithGoogleDonations; /** * Defines a recurring payment type. Required when creating a token to store payment details or using stored payment details. Allowed values: * `Subscription` – A transaction for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have variable amounts. For example, automatic top-ups when a cardholder\'s balance drops below a certain amount. */ @@ -146,7 +146,7 @@ export class DonationPaymentRequest { * The combination of a language code and a country code to specify the language to be used in the payment. */ 'shopperLocale'?: string; - 'shopperName'?: Name; + 'shopperName'?: Name | null; /** * Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. Minimum length: 3 characters. > Your reference must not include personally identifiable information (PII), for example name or email address. */ @@ -159,7 +159,7 @@ export class DonationPaymentRequest { * The shopper\'s telephone number. */ 'telephoneNumber'?: string; - 'threeDS2RequestData'?: ThreeDS2RequestFields; + '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. * @@ -174,7 +174,7 @@ export class DonationPaymentRequest { { "name": "accountInfo", "baseName": "accountInfo", - "type": "AccountInfo" + "type": "AccountInfo | null" }, { "name": "additionalData", @@ -189,22 +189,22 @@ export class DonationPaymentRequest { { "name": "applicationInfo", "baseName": "applicationInfo", - "type": "ApplicationInfo" + "type": "ApplicationInfo | null" }, { "name": "authenticationData", "baseName": "authenticationData", - "type": "AuthenticationData" + "type": "AuthenticationData | null" }, { "name": "billingAddress", "baseName": "billingAddress", - "type": "BillingAddress" + "type": "BillingAddress | null" }, { "name": "browserInfo", "baseName": "browserInfo", - "type": "BrowserInfo" + "type": "BrowserInfo | null" }, { "name": "channel", @@ -239,7 +239,7 @@ export class DonationPaymentRequest { { "name": "deliveryAddress", "baseName": "deliveryAddress", - "type": "DeliveryAddress" + "type": "DeliveryAddress | null" }, { "name": "deviceFingerprint", @@ -279,7 +279,7 @@ export class DonationPaymentRequest { { "name": "merchantRiskIndicator", "baseName": "merchantRiskIndicator", - "type": "MerchantRiskIndicator" + "type": "MerchantRiskIndicator | null" }, { "name": "metadata", @@ -289,7 +289,7 @@ export class DonationPaymentRequest { { "name": "mpiData", "baseName": "mpiData", - "type": "ThreeDSecureData" + "type": "ThreeDSecureData | null" }, { "name": "origin", @@ -299,7 +299,7 @@ export class DonationPaymentRequest { { "name": "paymentMethod", "baseName": "paymentMethod", - "type": "ApplePayDonations | CardDonations | GooglePayDonations | IdealDonations | PayWithGoogleDonations | null" + "type": "ApplePayDonations | CardDonations | GooglePayDonations | IdealDonations | PayWithGoogleDonations" }, { "name": "recurringProcessingModel", @@ -354,7 +354,7 @@ export class DonationPaymentRequest { { "name": "shopperName", "baseName": "shopperName", - "type": "Name" + "type": "Name | null" }, { "name": "shopperReference", @@ -374,7 +374,7 @@ export class DonationPaymentRequest { { "name": "threeDS2RequestData", "baseName": "threeDS2RequestData", - "type": "ThreeDS2RequestFields" + "type": "ThreeDS2RequestFields | null" }, { "name": "threeDSAuthenticationOnly", diff --git a/src/typings/checkout/donationPaymentResponse.ts b/src/typings/checkout/donationPaymentResponse.ts index 3e6dce43a..84281bb59 100644 --- a/src/typings/checkout/donationPaymentResponse.ts +++ b/src/typings/checkout/donationPaymentResponse.ts @@ -11,7 +11,7 @@ import { Amount } from './amount'; import { PaymentResponse } from './paymentResponse'; export class DonationPaymentResponse { - 'amount'?: Amount; + 'amount'?: Amount | null; /** * The Adyen account name of your charity. We will provide you with this account name once your chosen charity has been [onboarded](https://docs.adyen.com/online-payments/donations#onboarding). */ @@ -24,7 +24,7 @@ export class DonationPaymentResponse { * The merchant account identifier, with which you want to process the transaction. */ 'merchantAccount'?: string; - 'payment'?: PaymentResponse; + 'payment'?: PaymentResponse | null; /** * The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. */ @@ -40,7 +40,7 @@ export class DonationPaymentResponse { { "name": "amount", "baseName": "amount", - "type": "Amount" + "type": "Amount | null" }, { "name": "donationAccount", @@ -60,7 +60,7 @@ export class DonationPaymentResponse { { "name": "payment", "baseName": "payment", - "type": "PaymentResponse" + "type": "PaymentResponse | null" }, { "name": "reference", diff --git a/src/typings/checkout/forexQuote.ts b/src/typings/checkout/forexQuote.ts index 3e306696b..9b4ccfcda 100644 --- a/src/typings/checkout/forexQuote.ts +++ b/src/typings/checkout/forexQuote.ts @@ -18,18 +18,18 @@ export class ForexQuote { * The account type. */ 'accountType'?: string; - 'baseAmount'?: Amount; + 'baseAmount'?: Amount | null; /** * The base points. */ 'basePoints': number; - 'buy'?: Amount; - 'interbank'?: Amount; + 'buy'?: Amount | null; + 'interbank'?: Amount | null; /** * The reference assigned to the forex quote request. */ 'reference'?: string; - 'sell'?: Amount; + 'sell'?: Amount | null; /** * The signature to validate the integrity. */ @@ -63,7 +63,7 @@ export class ForexQuote { { "name": "baseAmount", "baseName": "baseAmount", - "type": "Amount" + "type": "Amount | null" }, { "name": "basePoints", @@ -73,12 +73,12 @@ export class ForexQuote { { "name": "buy", "baseName": "buy", - "type": "Amount" + "type": "Amount | null" }, { "name": "interbank", "baseName": "interbank", - "type": "Amount" + "type": "Amount | null" }, { "name": "reference", @@ -88,7 +88,7 @@ export class ForexQuote { { "name": "sell", "baseName": "sell", - "type": "Amount" + "type": "Amount | null" }, { "name": "signature", diff --git a/src/typings/checkout/fundOrigin.ts b/src/typings/checkout/fundOrigin.ts index 9cc19553f..b0854ca4c 100644 --- a/src/typings/checkout/fundOrigin.ts +++ b/src/typings/checkout/fundOrigin.ts @@ -11,12 +11,12 @@ import { Address } from './address'; import { Name } from './name'; export class FundOrigin { - 'billingAddress'?: Address; + 'billingAddress'?: Address | null; /** * The email address of the person funding the money. */ 'shopperEmail'?: string; - 'shopperName'?: Name; + 'shopperName'?: Name | null; /** * The phone number of the person funding the money. */ @@ -32,7 +32,7 @@ export class FundOrigin { { "name": "billingAddress", "baseName": "billingAddress", - "type": "Address" + "type": "Address | null" }, { "name": "shopperEmail", @@ -42,7 +42,7 @@ export class FundOrigin { { "name": "shopperName", "baseName": "shopperName", - "type": "Name" + "type": "Name | null" }, { "name": "telephoneNumber", diff --git a/src/typings/checkout/fundRecipient.ts b/src/typings/checkout/fundRecipient.ts index 1da5fd67b..25fb7db36 100644 --- a/src/typings/checkout/fundRecipient.ts +++ b/src/typings/checkout/fundRecipient.ts @@ -17,13 +17,13 @@ export class FundRecipient { * The IBAN of the bank account where the funds are being transferred to. */ 'IBAN'?: string; - 'billingAddress'?: Address; - 'paymentMethod'?: CardDetails; + 'billingAddress'?: Address | null; + 'paymentMethod'?: CardDetails | null; /** * The email address of the shopper. */ 'shopperEmail'?: string; - 'shopperName'?: Name; + 'shopperName'?: Name | null; /** * Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. Minimum length: 3 characters. > Your reference must not include personally identifiable information (PII), for example name or email address. */ @@ -32,7 +32,7 @@ export class FundRecipient { * This is the `recurringDetailReference` returned in the response when you created the token. */ 'storedPaymentMethodId'?: string; - 'subMerchant'?: SubMerchant; + 'subMerchant'?: SubMerchant | null; /** * The telephone number of the shopper. */ @@ -61,12 +61,12 @@ export class FundRecipient { { "name": "billingAddress", "baseName": "billingAddress", - "type": "Address" + "type": "Address | null" }, { "name": "paymentMethod", "baseName": "paymentMethod", - "type": "CardDetails" + "type": "CardDetails | null" }, { "name": "shopperEmail", @@ -76,7 +76,7 @@ export class FundRecipient { { "name": "shopperName", "baseName": "shopperName", - "type": "Name" + "type": "Name | null" }, { "name": "shopperReference", @@ -91,7 +91,7 @@ export class FundRecipient { { "name": "subMerchant", "baseName": "subMerchant", - "type": "SubMerchant" + "type": "SubMerchant | null" }, { "name": "telephoneNumber", diff --git a/src/typings/checkout/merchantRiskIndicator.ts b/src/typings/checkout/merchantRiskIndicator.ts index 24ba13a2d..2d698d520 100644 --- a/src/typings/checkout/merchantRiskIndicator.ts +++ b/src/typings/checkout/merchantRiskIndicator.ts @@ -33,7 +33,7 @@ export class MerchantRiskIndicator { * The estimated delivery time for the shopper to receive the goods. Allowed values: * `electronicDelivery` * `sameDayShipping` * `overnightShipping` * `twoOrMoreDaysShipping` */ 'deliveryTimeframe'?: MerchantRiskIndicator.DeliveryTimeframeEnum; - 'giftCardAmount'?: Amount; + 'giftCardAmount'?: Amount | null; /** * For prepaid or gift card purchase, total count of individual prepaid or gift cards/codes purchased. */ @@ -98,7 +98,7 @@ export class MerchantRiskIndicator { { "name": "giftCardAmount", "baseName": "giftCardAmount", - "type": "Amount" + "type": "Amount | null" }, { "name": "giftCardCount", diff --git a/src/typings/checkout/paymentAmountUpdateRequest.ts b/src/typings/checkout/paymentAmountUpdateRequest.ts index a32c76e07..41cca2313 100644 --- a/src/typings/checkout/paymentAmountUpdateRequest.ts +++ b/src/typings/checkout/paymentAmountUpdateRequest.ts @@ -14,7 +14,7 @@ import { Split } from './split'; export class PaymentAmountUpdateRequest { 'amount': Amount; - 'applicationInfo'?: ApplicationInfo; + 'applicationInfo'?: ApplicationInfo | null; /** * The reason for the amount update. Possible values: * **delayedCharge** * **noShow** * **installment** */ @@ -47,7 +47,7 @@ export class PaymentAmountUpdateRequest { { "name": "applicationInfo", "baseName": "applicationInfo", - "type": "ApplicationInfo" + "type": "ApplicationInfo | null" }, { "name": "industryUsage", diff --git a/src/typings/checkout/paymentCancelRequest.ts b/src/typings/checkout/paymentCancelRequest.ts index 50c3480ee..cdb4f5ea3 100644 --- a/src/typings/checkout/paymentCancelRequest.ts +++ b/src/typings/checkout/paymentCancelRequest.ts @@ -10,7 +10,7 @@ import { ApplicationInfo } from './applicationInfo'; export class PaymentCancelRequest { - 'applicationInfo'?: ApplicationInfo; + 'applicationInfo'?: ApplicationInfo | null; /** * The merchant account that is used to process the payment. */ @@ -26,7 +26,7 @@ export class PaymentCancelRequest { { "name": "applicationInfo", "baseName": "applicationInfo", - "type": "ApplicationInfo" + "type": "ApplicationInfo | null" }, { "name": "merchantAccount", diff --git a/src/typings/checkout/paymentCaptureRequest.ts b/src/typings/checkout/paymentCaptureRequest.ts index 71f109212..cea76b74a 100644 --- a/src/typings/checkout/paymentCaptureRequest.ts +++ b/src/typings/checkout/paymentCaptureRequest.ts @@ -16,7 +16,7 @@ import { SubMerchantInfo } from './subMerchantInfo'; export class PaymentCaptureRequest { 'amount': Amount; - 'applicationInfo'?: ApplicationInfo; + 'applicationInfo'?: ApplicationInfo | 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. */ @@ -25,7 +25,7 @@ export class PaymentCaptureRequest { * The merchant account that is used to process the payment. */ 'merchantAccount': string; - 'platformChargebackLogic'?: PlatformChargebackLogic; + 'platformChargebackLogic'?: PlatformChargebackLogic | null; /** * Your reference for the capture request. Maximum length: 80 characters. */ @@ -50,7 +50,7 @@ export class PaymentCaptureRequest { { "name": "applicationInfo", "baseName": "applicationInfo", - "type": "ApplicationInfo" + "type": "ApplicationInfo | null" }, { "name": "lineItems", @@ -65,7 +65,7 @@ export class PaymentCaptureRequest { { "name": "platformChargebackLogic", "baseName": "platformChargebackLogic", - "type": "PlatformChargebackLogic" + "type": "PlatformChargebackLogic | null" }, { "name": "reference", diff --git a/src/typings/checkout/paymentCaptureResponse.ts b/src/typings/checkout/paymentCaptureResponse.ts index d9a48d11e..57600c036 100644 --- a/src/typings/checkout/paymentCaptureResponse.ts +++ b/src/typings/checkout/paymentCaptureResponse.ts @@ -27,7 +27,7 @@ export class PaymentCaptureResponse { * The [`pspReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) of the payment to capture. */ 'paymentPspReference': string; - 'platformChargebackLogic'?: PlatformChargebackLogic; + 'platformChargebackLogic'?: PlatformChargebackLogic | null; /** * Adyen\'s 16-character reference associated with the capture request. */ @@ -75,7 +75,7 @@ export class PaymentCaptureResponse { { "name": "platformChargebackLogic", "baseName": "platformChargebackLogic", - "type": "PlatformChargebackLogic" + "type": "PlatformChargebackLogic | null" }, { "name": "pspReference", diff --git a/src/typings/checkout/paymentDetailsRequest.ts b/src/typings/checkout/paymentDetailsRequest.ts index 11ce8d59e..4478d4dd1 100644 --- a/src/typings/checkout/paymentDetailsRequest.ts +++ b/src/typings/checkout/paymentDetailsRequest.ts @@ -11,7 +11,7 @@ import { DetailsRequestAuthenticationData } from './detailsRequestAuthentication import { PaymentCompletionDetails } from './paymentCompletionDetails'; export class PaymentDetailsRequest { - 'authenticationData'?: DetailsRequestAuthenticationData; + 'authenticationData'?: DetailsRequestAuthenticationData | null; 'details': PaymentCompletionDetails; /** * Encoded payment data. For [authorizing a payment after using 3D Secure 2 Authentication-only](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only/#authorise-the-payment-with-adyen): If you received `resultCode`: **AuthenticationNotRequired** in the `/payments` response, use the `threeDSPaymentData` from the same response. If you received `resultCode`: **AuthenticationFinished** in the `/payments` response, use the `action.paymentData` from the same response. @@ -31,7 +31,7 @@ export class PaymentDetailsRequest { { "name": "authenticationData", "baseName": "authenticationData", - "type": "DetailsRequestAuthenticationData" + "type": "DetailsRequestAuthenticationData | null" }, { "name": "details", diff --git a/src/typings/checkout/paymentDetailsResponse.ts b/src/typings/checkout/paymentDetailsResponse.ts index 5b8dc05de..9b9431e84 100644 --- a/src/typings/checkout/paymentDetailsResponse.ts +++ b/src/typings/checkout/paymentDetailsResponse.ts @@ -19,18 +19,18 @@ export class PaymentDetailsResponse { * Contains additional information about the payment. Some data fields are included only if you select them first: Go to **Customer Area** > **Developers** > **Additional data**. */ 'additionalData'?: { [key: string]: string; }; - 'amount'?: Amount; + 'amount'?: Amount | null; /** * Donation Token containing payment details for Adyen Giving. */ 'donationToken'?: string; - 'fraudResult'?: FraudResult; + 'fraudResult'?: FraudResult | null; /** * The reference used during the /payments request. */ 'merchantReference'?: string; - 'order'?: CheckoutOrderResponse; - 'paymentMethod'?: ResponsePaymentMethod; + 'order'?: CheckoutOrderResponse | null; + 'paymentMethod'?: ResponsePaymentMethod | null; /** * Adyen\'s 16-character string reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. */ @@ -51,8 +51,8 @@ export class PaymentDetailsResponse { * The shopperLocale. */ 'shopperLocale'?: string; - 'threeDS2ResponseData'?: ThreeDS2ResponseData; - 'threeDS2Result'?: ThreeDS2Result; + 'threeDS2ResponseData'?: ThreeDS2ResponseData | null; + 'threeDS2Result'?: ThreeDS2Result | null; /** * When non-empty, contains a value that you must submit to the `/payments/details` endpoint as `paymentData`. */ @@ -69,7 +69,7 @@ export class PaymentDetailsResponse { { "name": "amount", "baseName": "amount", - "type": "Amount" + "type": "Amount | null" }, { "name": "donationToken", @@ -79,7 +79,7 @@ export class PaymentDetailsResponse { { "name": "fraudResult", "baseName": "fraudResult", - "type": "FraudResult" + "type": "FraudResult | null" }, { "name": "merchantReference", @@ -89,12 +89,12 @@ export class PaymentDetailsResponse { { "name": "order", "baseName": "order", - "type": "CheckoutOrderResponse" + "type": "CheckoutOrderResponse | null" }, { "name": "paymentMethod", "baseName": "paymentMethod", - "type": "ResponsePaymentMethod" + "type": "ResponsePaymentMethod | null" }, { "name": "pspReference", @@ -124,12 +124,12 @@ export class PaymentDetailsResponse { { "name": "threeDS2ResponseData", "baseName": "threeDS2ResponseData", - "type": "ThreeDS2ResponseData" + "type": "ThreeDS2ResponseData | null" }, { "name": "threeDS2Result", "baseName": "threeDS2Result", - "type": "ThreeDS2Result" + "type": "ThreeDS2Result | null" }, { "name": "threeDSPaymentData", diff --git a/src/typings/checkout/paymentLinkRequest.ts b/src/typings/checkout/paymentLinkRequest.ts index 323c75702..aa147eae0 100644 --- a/src/typings/checkout/paymentLinkRequest.ts +++ b/src/typings/checkout/paymentLinkRequest.ts @@ -26,8 +26,8 @@ export class PaymentLinkRequest { */ 'allowedPaymentMethods'?: Array; 'amount': Amount; - 'applicationInfo'?: ApplicationInfo; - 'billingAddress'?: Address; + 'applicationInfo'?: ApplicationInfo | null; + 'billingAddress'?: Address | null; /** * List of payment methods to be hidden from the shopper. To refer to payment methods, use their [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: `\"blockedPaymentMethods\":[\"ideal\",\"giropay\"]` */ @@ -48,7 +48,7 @@ export class PaymentLinkRequest { * The date and time when the purchased goods should be delivered. [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, **2020-12-18T10:15:30+01:00**. */ 'deliverAt'?: Date; - 'deliveryAddress'?: Address; + 'deliveryAddress'?: Address | null; /** * A short description visible on the payment page. Maximum length: 280 characters. */ @@ -57,8 +57,8 @@ export class PaymentLinkRequest { * The date when the payment link expires. [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format with time zone offset: YYYY-MM-DDThh:mm:ss+TZD, for example, **2020-12-18T10:15:30+01:00**. The maximum expiry date is 70 days after the payment link is created. If not provided, the payment link expires 24 hours after it was created. */ 'expiresAt'?: Date; - 'fundOrigin'?: FundOrigin; - 'fundRecipient'?: FundRecipient; + 'fundOrigin'?: FundOrigin | null; + 'fundRecipient'?: FundRecipient | null; /** * A set of key-value pairs that specifies the installment options available per payment method. The key must be a payment method name in lowercase. For example, **card** to specify installment options for all cards, or **visa** or **mc**. The value must be an object containing the installment options. */ @@ -87,7 +87,7 @@ export class PaymentLinkRequest { * Metadata consists of entries, each of which includes a key and a value. Limitations: * Maximum 20 key-value pairs per request. Otherwise, error \"177\" occurs: \"Metadata size exceeds limit\" * Maximum 20 characters per key. Otherwise, error \"178\" occurs: \"Metadata key size exceeds limit\" * A key cannot have the name `checkout.linkId`. Any value that you provide with this key is going to be replaced by the real payment link ID. */ 'metadata'?: { [key: string]: string; }; - 'platformChargebackLogic'?: PlatformChargebackLogic; + 'platformChargebackLogic'?: PlatformChargebackLogic | null; /** * Defines a recurring payment type. Required when `storePaymentMethodMode` is set to **askForConsent** or **enabled**. Possible values: * **Subscription** – A transaction for a fixed or variable amount, which follows a fixed schedule. * **CardOnFile** – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * **UnscheduledCardOnFile** – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or has variable amounts. For example, automatic top-ups when a cardholder\'s balance drops below a certain amount. */ @@ -108,7 +108,7 @@ export class PaymentLinkRequest { * Indicates whether the payment link can be reused for multiple payments. If not provided, this defaults to **false** which means the link can be used for one successful payment only. */ 'reusable'?: boolean; - 'riskData'?: RiskData; + 'riskData'?: RiskData | null; /** * The shopper\'s email address. */ @@ -117,7 +117,7 @@ export class PaymentLinkRequest { * The language to be used in the payment page, specified by a combination of a language and country code. For example, `en-US`. For a list of shopper locales that Pay by Link supports, refer to [Language and localization](https://docs.adyen.com/unified-commerce/pay-by-link/payment-links/api#language). */ 'shopperLocale'?: string; - 'shopperName'?: Name; + 'shopperName'?: Name | null; /** * Your reference to uniquely identify this shopper, for example user ID or account ID. Minimum length: 3 characters. > Your reference must not include personally identifiable information (PII), for example name or email address. */ @@ -158,7 +158,7 @@ export class PaymentLinkRequest { * A [theme](https://docs.adyen.com/unified-commerce/pay-by-link/payment-links/api#themes) to customize the appearance of the payment page. If not specified, the payment page is rendered according to the theme set as default in your Customer Area. */ 'themeId'?: string; - 'threeDS2RequestData'?: CheckoutSessionThreeDS2RequestData; + 'threeDS2RequestData'?: CheckoutSessionThreeDS2RequestData | null; static discriminator: string | undefined = undefined; @@ -176,12 +176,12 @@ export class PaymentLinkRequest { { "name": "applicationInfo", "baseName": "applicationInfo", - "type": "ApplicationInfo" + "type": "ApplicationInfo | null" }, { "name": "billingAddress", "baseName": "billingAddress", - "type": "Address" + "type": "Address | null" }, { "name": "blockedPaymentMethods", @@ -211,7 +211,7 @@ export class PaymentLinkRequest { { "name": "deliveryAddress", "baseName": "deliveryAddress", - "type": "Address" + "type": "Address | null" }, { "name": "description", @@ -226,12 +226,12 @@ export class PaymentLinkRequest { { "name": "fundOrigin", "baseName": "fundOrigin", - "type": "FundOrigin" + "type": "FundOrigin | null" }, { "name": "fundRecipient", "baseName": "fundRecipient", - "type": "FundRecipient" + "type": "FundRecipient | null" }, { "name": "installmentOptions", @@ -271,7 +271,7 @@ export class PaymentLinkRequest { { "name": "platformChargebackLogic", "baseName": "platformChargebackLogic", - "type": "PlatformChargebackLogic" + "type": "PlatformChargebackLogic | null" }, { "name": "recurringProcessingModel", @@ -301,7 +301,7 @@ export class PaymentLinkRequest { { "name": "riskData", "baseName": "riskData", - "type": "RiskData" + "type": "RiskData | null" }, { "name": "shopperEmail", @@ -316,7 +316,7 @@ export class PaymentLinkRequest { { "name": "shopperName", "baseName": "shopperName", - "type": "Name" + "type": "Name | null" }, { "name": "shopperReference", @@ -371,7 +371,7 @@ export class PaymentLinkRequest { { "name": "threeDS2RequestData", "baseName": "threeDS2RequestData", - "type": "CheckoutSessionThreeDS2RequestData" + "type": "CheckoutSessionThreeDS2RequestData | null" } ]; static getAttributeTypeMap() { diff --git a/src/typings/checkout/paymentLinkResponse.ts b/src/typings/checkout/paymentLinkResponse.ts index 1e51f9f9e..b36c5d19c 100644 --- a/src/typings/checkout/paymentLinkResponse.ts +++ b/src/typings/checkout/paymentLinkResponse.ts @@ -26,8 +26,8 @@ export class PaymentLinkResponse { */ 'allowedPaymentMethods'?: Array; 'amount': Amount; - 'applicationInfo'?: ApplicationInfo; - 'billingAddress'?: Address; + 'applicationInfo'?: ApplicationInfo | null; + 'billingAddress'?: Address | null; /** * List of payment methods to be hidden from the shopper. To refer to payment methods, use their [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: `\"blockedPaymentMethods\":[\"ideal\",\"giropay\"]` */ @@ -48,7 +48,7 @@ export class PaymentLinkResponse { * The date and time when the purchased goods should be delivered. [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, **2020-12-18T10:15:30+01:00**. */ 'deliverAt'?: Date; - 'deliveryAddress'?: Address; + 'deliveryAddress'?: Address | null; /** * A short description visible on the payment page. Maximum length: 280 characters. */ @@ -57,8 +57,8 @@ export class PaymentLinkResponse { * The date when the payment link expires. [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format with time zone offset: YYYY-MM-DDThh:mm:ss+TZD, for example, **2020-12-18T10:15:30+01:00**. The maximum expiry date is 70 days after the payment link is created. If not provided, the payment link expires 24 hours after it was created. */ 'expiresAt'?: Date; - 'fundOrigin'?: FundOrigin; - 'fundRecipient'?: FundRecipient; + 'fundOrigin'?: FundOrigin | null; + 'fundRecipient'?: FundRecipient | null; /** * A unique identifier of the payment link. */ @@ -91,7 +91,7 @@ export class PaymentLinkResponse { * Metadata consists of entries, each of which includes a key and a value. Limitations: * Maximum 20 key-value pairs per request. Otherwise, error \"177\" occurs: \"Metadata size exceeds limit\" * Maximum 20 characters per key. Otherwise, error \"178\" occurs: \"Metadata key size exceeds limit\" * A key cannot have the name `checkout.linkId`. Any value that you provide with this key is going to be replaced by the real payment link ID. */ 'metadata'?: { [key: string]: string; }; - 'platformChargebackLogic'?: PlatformChargebackLogic; + 'platformChargebackLogic'?: PlatformChargebackLogic | null; /** * Defines a recurring payment type. Required when `storePaymentMethodMode` is set to **askForConsent** or **enabled**. Possible values: * **Subscription** – A transaction for a fixed or variable amount, which follows a fixed schedule. * **CardOnFile** – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * **UnscheduledCardOnFile** – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or has variable amounts. For example, automatic top-ups when a cardholder\'s balance drops below a certain amount. */ @@ -112,7 +112,7 @@ export class PaymentLinkResponse { * Indicates whether the payment link can be reused for multiple payments. If not provided, this defaults to **false** which means the link can be used for one successful payment only. */ 'reusable'?: boolean; - 'riskData'?: RiskData; + 'riskData'?: RiskData | null; /** * The shopper\'s email address. */ @@ -121,7 +121,7 @@ export class PaymentLinkResponse { * The language to be used in the payment page, specified by a combination of a language and country code. For example, `en-US`. For a list of shopper locales that Pay by Link supports, refer to [Language and localization](https://docs.adyen.com/unified-commerce/pay-by-link/payment-links/api#language). */ 'shopperLocale'?: string; - 'shopperName'?: Name; + 'shopperName'?: Name | null; /** * Your reference to uniquely identify this shopper, for example user ID or account ID. Minimum length: 3 characters. > Your reference must not include personally identifiable information (PII), for example name or email address. */ @@ -166,7 +166,7 @@ export class PaymentLinkResponse { * A [theme](https://docs.adyen.com/unified-commerce/pay-by-link/payment-links/api#themes) to customize the appearance of the payment page. If not specified, the payment page is rendered according to the theme set as default in your Customer Area. */ 'themeId'?: string; - 'threeDS2RequestData'?: CheckoutSessionThreeDS2RequestData; + 'threeDS2RequestData'?: CheckoutSessionThreeDS2RequestData | null; /** * The date when the payment link status was updated. [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, **2020-12-18T10:15:30+01:00**. */ @@ -192,12 +192,12 @@ export class PaymentLinkResponse { { "name": "applicationInfo", "baseName": "applicationInfo", - "type": "ApplicationInfo" + "type": "ApplicationInfo | null" }, { "name": "billingAddress", "baseName": "billingAddress", - "type": "Address" + "type": "Address | null" }, { "name": "blockedPaymentMethods", @@ -227,7 +227,7 @@ export class PaymentLinkResponse { { "name": "deliveryAddress", "baseName": "deliveryAddress", - "type": "Address" + "type": "Address | null" }, { "name": "description", @@ -242,12 +242,12 @@ export class PaymentLinkResponse { { "name": "fundOrigin", "baseName": "fundOrigin", - "type": "FundOrigin" + "type": "FundOrigin | null" }, { "name": "fundRecipient", "baseName": "fundRecipient", - "type": "FundRecipient" + "type": "FundRecipient | null" }, { "name": "id", @@ -292,7 +292,7 @@ export class PaymentLinkResponse { { "name": "platformChargebackLogic", "baseName": "platformChargebackLogic", - "type": "PlatformChargebackLogic" + "type": "PlatformChargebackLogic | null" }, { "name": "recurringProcessingModel", @@ -322,7 +322,7 @@ export class PaymentLinkResponse { { "name": "riskData", "baseName": "riskData", - "type": "RiskData" + "type": "RiskData | null" }, { "name": "shopperEmail", @@ -337,7 +337,7 @@ export class PaymentLinkResponse { { "name": "shopperName", "baseName": "shopperName", - "type": "Name" + "type": "Name | null" }, { "name": "shopperReference", @@ -397,7 +397,7 @@ export class PaymentLinkResponse { { "name": "threeDS2RequestData", "baseName": "threeDS2RequestData", - "type": "CheckoutSessionThreeDS2RequestData" + "type": "CheckoutSessionThreeDS2RequestData | null" }, { "name": "updatedAt", diff --git a/src/typings/checkout/paymentMethod.ts b/src/typings/checkout/paymentMethod.ts index f63c04760..ab77b0d76 100644 --- a/src/typings/checkout/paymentMethod.ts +++ b/src/typings/checkout/paymentMethod.ts @@ -33,7 +33,7 @@ export class PaymentMethod { * The funding source of the payment method. */ 'fundingSource'?: PaymentMethod.FundingSourceEnum; - 'group'?: PaymentMethodGroup; + 'group'?: PaymentMethodGroup | null; /** * All input details to be provided to complete the payment with this payment method. * @@ -84,7 +84,7 @@ export class PaymentMethod { { "name": "group", "baseName": "group", - "type": "PaymentMethodGroup" + "type": "PaymentMethodGroup | null" }, { "name": "inputDetails", diff --git a/src/typings/checkout/paymentMethodsRequest.ts b/src/typings/checkout/paymentMethodsRequest.ts index c3bcd8536..0a0263265 100644 --- a/src/typings/checkout/paymentMethodsRequest.ts +++ b/src/typings/checkout/paymentMethodsRequest.ts @@ -19,7 +19,7 @@ export class PaymentMethodsRequest { * List of payment methods to be presented to the shopper. To refer to payment methods, use their [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: `\"allowedPaymentMethods\":[\"ideal\",\"giropay\"]` */ 'allowedPaymentMethods'?: Array; - 'amount'?: Amount; + 'amount'?: Amount | null; /** * List of payment methods to be hidden from the shopper. To refer to payment methods, use their [payment method type](https://docs.adyen.com/payment-methods/payment-method-types). Example: `\"blockedPaymentMethods\":[\"ideal\",\"giropay\"]` */ @@ -36,7 +36,7 @@ export class PaymentMethodsRequest { * The merchant account identifier, with which you want to process the transaction. */ 'merchantAccount': string; - 'order'?: EncryptedOrderData; + 'order'?: EncryptedOrderData | null; /** * A unique ID that can be used to associate `/paymentMethods` and `/payments` requests with the same shopper transaction, offering insights into conversion rates. */ @@ -78,7 +78,7 @@ export class PaymentMethodsRequest { { "name": "amount", "baseName": "amount", - "type": "Amount" + "type": "Amount | null" }, { "name": "blockedPaymentMethods", @@ -103,7 +103,7 @@ export class PaymentMethodsRequest { { "name": "order", "baseName": "order", - "type": "EncryptedOrderData" + "type": "EncryptedOrderData | null" }, { "name": "shopperConversionId", diff --git a/src/typings/checkout/paymentRefundRequest.ts b/src/typings/checkout/paymentRefundRequest.ts index 0b8442cdb..de2686d3c 100644 --- a/src/typings/checkout/paymentRefundRequest.ts +++ b/src/typings/checkout/paymentRefundRequest.ts @@ -14,7 +14,7 @@ import { Split } from './split'; export class PaymentRefundRequest { 'amount': Amount; - 'applicationInfo'?: ApplicationInfo; + 'applicationInfo'?: ApplicationInfo | 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. */ @@ -51,7 +51,7 @@ export class PaymentRefundRequest { { "name": "applicationInfo", "baseName": "applicationInfo", - "type": "ApplicationInfo" + "type": "ApplicationInfo | null" }, { "name": "lineItems", diff --git a/src/typings/checkout/paymentRequest.ts b/src/typings/checkout/paymentRequest.ts index cb60862c1..2f3e4b2a7 100644 --- a/src/typings/checkout/paymentRequest.ts +++ b/src/typings/checkout/paymentRequest.ts @@ -82,18 +82,18 @@ import { WeChatPayMiniProgramDetails } from './weChatPayMiniProgramDetails'; import { ZipDetails } from './zipDetails'; export class PaymentRequest { - 'accountInfo'?: AccountInfo; - 'additionalAmount'?: Amount; + 'accountInfo'?: AccountInfo | null; + 'additionalAmount'?: Amount | null; /** * This field contains additional data, which may be required for a particular payment request. The `additionalData` object consists of entries, each of which includes the key and value. */ 'additionalData'?: { [key: string]: string; }; 'amount': Amount; - 'applicationInfo'?: ApplicationInfo; - 'authenticationData'?: AuthenticationData; - 'bankAccount'?: CheckoutBankAccount; - 'billingAddress'?: BillingAddress; - 'browserInfo'?: BrowserInfo; + 'applicationInfo'?: ApplicationInfo | null; + 'authenticationData'?: AuthenticationData | null; + 'bankAccount'?: CheckoutBankAccount | null; + 'billingAddress'?: BillingAddress | null; + 'browserInfo'?: BrowserInfo | null; /** * The delay between the authorisation and scheduled auto-capture, specified in hours. */ @@ -106,7 +106,7 @@ export class PaymentRequest { * Checkout attempt ID that corresponds to the Id generated by the client SDK for tracking user payment journey. */ 'checkoutAttemptId'?: string; - 'company'?: Company; + 'company'?: Company | null; /** * Conversion ID that corresponds to the Id generated by the client SDK for tracking user payment journey. * @@ -122,12 +122,12 @@ export class PaymentRequest { * The shopper\'s date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD */ 'dateOfBirth'?: Date; - 'dccQuote'?: ForexQuote; + 'dccQuote'?: ForexQuote | null; /** * The date and time the purchased goods should be delivered. Format [ISO 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: 2017-07-17T13:42:40.428+01:00 */ 'deliverAt'?: Date; - 'deliveryAddress'?: DeliveryAddress; + 'deliveryAddress'?: DeliveryAddress | null; /** * The date and time the purchased goods should be delivered. Format [ISO 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: 2017-07-17T13:42:40.428+01:00 * @@ -159,13 +159,13 @@ export class PaymentRequest { * An integer value that is added to the normal fraud score. The value can be either positive or negative. */ 'fraudOffset'?: number; - 'fundOrigin'?: FundOrigin; - 'fundRecipient'?: FundRecipient; + 'fundOrigin'?: FundOrigin | null; + 'fundRecipient'?: FundRecipient | null; /** * The reason for the amount update. Possible values: * **delayedCharge** * **noShow** * **installment** */ 'industryUsage'?: PaymentRequest.IndustryUsageEnum; - 'installments'?: Installments; + 'installments'?: Installments | null; /** * Price and product information about the purchased items, to be included on the invoice sent to the shopper. > This field is required for 3x 4x Oney, Affirm, Afterpay, Clearpay, Klarna, Ratepay, Riverty, and Zip. */ @@ -174,7 +174,7 @@ export class PaymentRequest { * The `localizedShopperStatement` field lets you use dynamic values for your shopper statement in a local character set. If not supplied, left empty, or for cross-border transactions, **shopperStatement** is used. Adyen currently supports the ja-Kana character set for Visa and Mastercard payments in Japan using Japanese cards. This character set supports: * UTF-8 based Katakana, capital letters, numbers and special characters. * Half-width or full-width characters. */ 'localizedShopperStatement'?: { [key: string]: string; }; - 'mandate'?: Mandate; + 'mandate'?: Mandate | null; /** * The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a four-digit number, which relates to a particular market segment. This code reflects the predominant activity that is conducted by the merchant. */ @@ -187,13 +187,13 @@ export class PaymentRequest { * This reference allows linking multiple transactions to each other for reporting purposes (i.e. order auth-rate). The reference should be unique per billing cycle. The same merchant order reference should never be reused after the first authorised attempt. If used, this field should be supplied for all incoming authorisations. > We strongly recommend you send the `merchantOrderReference` value to benefit from linking payment requests when authorisation retries take place. In addition, we recommend you provide `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and `retry.skipRetry` values in `PaymentRequest.additionalData`. */ 'merchantOrderReference'?: string; - 'merchantRiskIndicator'?: MerchantRiskIndicator; + 'merchantRiskIndicator'?: MerchantRiskIndicator | null; /** * Metadata consists of entries, each of which includes a key and a value. Limits: * Maximum 20 key-value pairs per request. When exceeding, the \"177\" error occurs: \"Metadata size exceeds limit\". * Maximum 20 characters per key. * Maximum 80 characters per value. */ 'metadata'?: { [key: string]: string; }; - 'mpiData'?: ThreeDSecureData; - 'order'?: EncryptedOrderData; + 'mpiData'?: ThreeDSecureData | null; + 'order'?: EncryptedOrderData | null; /** * When you are doing multiple partial (gift card) payments, this is the `pspReference` of the first payment. We use this to link the multiple payments to each other. As your own reference for linking multiple payments, use the `merchantOrderReference`instead. */ @@ -205,8 +205,8 @@ export class PaymentRequest { /** * The type and required details of a payment method to use. */ - 'paymentMethod': AchDetails | AfterpayDetails | AmazonPayDetails | AncvDetails | AndroidPayDetails | ApplePayDetails | BacsDirectDebitDetails | BillDeskDetails | BlikDetails | CardDetails | CashAppDetails | CellulantDetails | DokuDetails | DotpayDetails | DragonpayDetails | EBankingFinlandDetails | EcontextVoucherDetails | EftDetails | GenericIssuerPaymentMethodDetails | GiropayDetails | GooglePayDetails | IdealDetails | KlarnaDetails | MasterpassDetails | MbwayDetails | MobilePayDetails | MolPayDetails | OpenInvoiceDetails | PayByBankAISDirectDebitDetails | PayByBankDetails | PayPalDetails | PayToDetails | PayUUpiDetails | PayWithGoogleDetails | PaymentDetails | PseDetails | RatepayDetails | RivertyDetails | SamsungPayDetails | SepaDirectDebitDetails | StoredPaymentMethodDetails | TwintDetails | UpiCollectDetails | UpiIntentDetails | VippsDetails | VisaCheckoutDetails | WeChatPayDetails | WeChatPayMiniProgramDetails | ZipDetails | null; - 'platformChargebackLogic'?: PlatformChargebackLogic; + 'paymentMethod': AchDetails | AfterpayDetails | AmazonPayDetails | AncvDetails | AndroidPayDetails | ApplePayDetails | BacsDirectDebitDetails | BillDeskDetails | BlikDetails | CardDetails | CashAppDetails | CellulantDetails | DokuDetails | DotpayDetails | DragonpayDetails | EBankingFinlandDetails | EcontextVoucherDetails | EftDetails | GenericIssuerPaymentMethodDetails | GiropayDetails | GooglePayDetails | IdealDetails | KlarnaDetails | MasterpassDetails | MbwayDetails | MobilePayDetails | MolPayDetails | OpenInvoiceDetails | PayByBankAISDirectDebitDetails | PayByBankDetails | PayPalDetails | PayToDetails | PayUUpiDetails | PayWithGoogleDetails | PaymentDetails | PseDetails | RatepayDetails | RivertyDetails | SamsungPayDetails | SepaDirectDebitDetails | StoredPaymentMethodDetails | TwintDetails | UpiCollectDetails | UpiIntentDetails | VippsDetails | VisaCheckoutDetails | WeChatPayDetails | WeChatPayMiniProgramDetails | ZipDetails; + 'platformChargebackLogic'?: PlatformChargebackLogic | null; /** * Date after which no further authorisations shall be performed. Only for 3D Secure 2. */ @@ -235,7 +235,7 @@ export class PaymentRequest { * 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. */ 'returnUrl': string; - 'riskData'?: RiskData; + 'riskData'?: RiskData | null; /** * The date and time until when the session remains valid, in [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format. For example: 2020-07-18T15:42:40.428+01:00 */ @@ -260,7 +260,7 @@ export class PaymentRequest { * The combination of a language code and a country code to specify the language to be used in the payment. */ 'shopperLocale'?: string; - 'shopperName'?: Name; + 'shopperName'?: Name | null; /** * Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. Minimum length: 3 characters. > Your reference must not include personally identifiable information (PII), for example name or email address. */ @@ -293,7 +293,7 @@ export class PaymentRequest { * The shopper\'s telephone number. */ 'telephoneNumber'?: string; - 'threeDS2RequestData'?: ThreeDS2RequestFields; + '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. * @@ -312,12 +312,12 @@ export class PaymentRequest { { "name": "accountInfo", "baseName": "accountInfo", - "type": "AccountInfo" + "type": "AccountInfo | null" }, { "name": "additionalAmount", "baseName": "additionalAmount", - "type": "Amount" + "type": "Amount | null" }, { "name": "additionalData", @@ -332,27 +332,27 @@ export class PaymentRequest { { "name": "applicationInfo", "baseName": "applicationInfo", - "type": "ApplicationInfo" + "type": "ApplicationInfo | null" }, { "name": "authenticationData", "baseName": "authenticationData", - "type": "AuthenticationData" + "type": "AuthenticationData | null" }, { "name": "bankAccount", "baseName": "bankAccount", - "type": "CheckoutBankAccount" + "type": "CheckoutBankAccount | null" }, { "name": "billingAddress", "baseName": "billingAddress", - "type": "BillingAddress" + "type": "BillingAddress | null" }, { "name": "browserInfo", "baseName": "browserInfo", - "type": "BrowserInfo" + "type": "BrowserInfo | null" }, { "name": "captureDelayHours", @@ -372,7 +372,7 @@ export class PaymentRequest { { "name": "company", "baseName": "company", - "type": "Company" + "type": "Company | null" }, { "name": "conversionId", @@ -392,7 +392,7 @@ export class PaymentRequest { { "name": "dccQuote", "baseName": "dccQuote", - "type": "ForexQuote" + "type": "ForexQuote | null" }, { "name": "deliverAt", @@ -402,7 +402,7 @@ export class PaymentRequest { { "name": "deliveryAddress", "baseName": "deliveryAddress", - "type": "DeliveryAddress" + "type": "DeliveryAddress | null" }, { "name": "deliveryDate", @@ -442,12 +442,12 @@ export class PaymentRequest { { "name": "fundOrigin", "baseName": "fundOrigin", - "type": "FundOrigin" + "type": "FundOrigin | null" }, { "name": "fundRecipient", "baseName": "fundRecipient", - "type": "FundRecipient" + "type": "FundRecipient | null" }, { "name": "industryUsage", @@ -457,7 +457,7 @@ export class PaymentRequest { { "name": "installments", "baseName": "installments", - "type": "Installments" + "type": "Installments | null" }, { "name": "lineItems", @@ -472,7 +472,7 @@ export class PaymentRequest { { "name": "mandate", "baseName": "mandate", - "type": "Mandate" + "type": "Mandate | null" }, { "name": "mcc", @@ -492,7 +492,7 @@ export class PaymentRequest { { "name": "merchantRiskIndicator", "baseName": "merchantRiskIndicator", - "type": "MerchantRiskIndicator" + "type": "MerchantRiskIndicator | null" }, { "name": "metadata", @@ -502,12 +502,12 @@ export class PaymentRequest { { "name": "mpiData", "baseName": "mpiData", - "type": "ThreeDSecureData" + "type": "ThreeDSecureData | null" }, { "name": "order", "baseName": "order", - "type": "EncryptedOrderData" + "type": "EncryptedOrderData | null" }, { "name": "orderReference", @@ -522,12 +522,12 @@ export class PaymentRequest { { "name": "paymentMethod", "baseName": "paymentMethod", - "type": "AchDetails | AfterpayDetails | AmazonPayDetails | AncvDetails | AndroidPayDetails | ApplePayDetails | BacsDirectDebitDetails | BillDeskDetails | BlikDetails | CardDetails | CashAppDetails | CellulantDetails | DokuDetails | DotpayDetails | DragonpayDetails | EBankingFinlandDetails | EcontextVoucherDetails | EftDetails | GenericIssuerPaymentMethodDetails | GiropayDetails | GooglePayDetails | IdealDetails | KlarnaDetails | MasterpassDetails | MbwayDetails | MobilePayDetails | MolPayDetails | OpenInvoiceDetails | PayByBankAISDirectDebitDetails | PayByBankDetails | PayPalDetails | PayToDetails | PayUUpiDetails | PayWithGoogleDetails | PaymentDetails | PseDetails | RatepayDetails | RivertyDetails | SamsungPayDetails | SepaDirectDebitDetails | StoredPaymentMethodDetails | TwintDetails | UpiCollectDetails | UpiIntentDetails | VippsDetails | VisaCheckoutDetails | WeChatPayDetails | WeChatPayMiniProgramDetails | ZipDetails | null" + "type": "AchDetails | AfterpayDetails | AmazonPayDetails | AncvDetails | AndroidPayDetails | ApplePayDetails | BacsDirectDebitDetails | BillDeskDetails | BlikDetails | CardDetails | CashAppDetails | CellulantDetails | DokuDetails | DotpayDetails | DragonpayDetails | EBankingFinlandDetails | EcontextVoucherDetails | EftDetails | GenericIssuerPaymentMethodDetails | GiropayDetails | GooglePayDetails | IdealDetails | KlarnaDetails | MasterpassDetails | MbwayDetails | MobilePayDetails | MolPayDetails | OpenInvoiceDetails | PayByBankAISDirectDebitDetails | PayByBankDetails | PayPalDetails | PayToDetails | PayUUpiDetails | PayWithGoogleDetails | PaymentDetails | PseDetails | RatepayDetails | RivertyDetails | SamsungPayDetails | SepaDirectDebitDetails | StoredPaymentMethodDetails | TwintDetails | UpiCollectDetails | UpiIntentDetails | VippsDetails | VisaCheckoutDetails | WeChatPayDetails | WeChatPayMiniProgramDetails | ZipDetails" }, { "name": "platformChargebackLogic", "baseName": "platformChargebackLogic", - "type": "PlatformChargebackLogic" + "type": "PlatformChargebackLogic | null" }, { "name": "recurringExpiry", @@ -567,7 +567,7 @@ export class PaymentRequest { { "name": "riskData", "baseName": "riskData", - "type": "RiskData" + "type": "RiskData | null" }, { "name": "sessionValidity", @@ -602,7 +602,7 @@ export class PaymentRequest { { "name": "shopperName", "baseName": "shopperName", - "type": "Name" + "type": "Name | null" }, { "name": "shopperReference", @@ -647,7 +647,7 @@ export class PaymentRequest { { "name": "threeDS2RequestData", "baseName": "threeDS2RequestData", - "type": "ThreeDS2RequestFields" + "type": "ThreeDS2RequestFields | null" }, { "name": "threeDSAuthenticationOnly", diff --git a/src/typings/checkout/paymentResponse.ts b/src/typings/checkout/paymentResponse.ts index 956195524..77d6eb839 100644 --- a/src/typings/checkout/paymentResponse.ts +++ b/src/typings/checkout/paymentResponse.ts @@ -32,18 +32,18 @@ export class PaymentResponse { * Contains additional information about the payment. Some data fields are included only if you select them first: Go to **Customer Area** > **Developers** > **Additional data**. */ 'additionalData'?: { [key: string]: string; }; - 'amount'?: Amount; + 'amount'?: Amount | null; /** * Donation Token containing payment details for Adyen Giving. */ 'donationToken'?: string; - 'fraudResult'?: FraudResult; + 'fraudResult'?: FraudResult | null; /** * The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. */ 'merchantReference'?: string; - 'order'?: CheckoutOrderResponse; - 'paymentMethod'?: ResponsePaymentMethod; + 'order'?: CheckoutOrderResponse | null; + 'paymentMethod'?: ResponsePaymentMethod | null; /** * Adyen\'s 16-character string reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. > For payment methods that require a redirect or additional action, you will get this value in the `/payments/details` response. */ @@ -60,8 +60,8 @@ export class PaymentResponse { * The result of the payment. For more information, see [Result codes](https://docs.adyen.com/online-payments/payment-result-codes). Possible values: * **AuthenticationFinished** – The payment has been successfully authenticated with 3D Secure 2. Returned for 3D Secure 2 authentication-only transactions. * **AuthenticationNotRequired** – The transaction does not require 3D Secure authentication. Returned for [standalone authentication-only integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). * **Authorised** – The payment was successfully authorised. This state serves as an indicator to proceed with the delivery of goods and services. This is a final state. * **Cancelled** – Indicates the payment has been cancelled (either by the shopper or the merchant) before processing was completed. This is a final state. * **ChallengeShopper** – The issuer requires further shopper interaction before the payment can be authenticated. Returned for 3D Secure 2 transactions. * **Error** – There was an error when the payment was being processed. The reason is given in the `refusalReason` field. This is a final state. * **IdentifyShopper** – The issuer requires the shopper\'s device fingerprint before the payment can be authenticated. Returned for 3D Secure 2 transactions. * **PartiallyAuthorised** – The payment has been authorised for a partial amount. This happens for card payments when the merchant supports Partial Authorisations and the cardholder has insufficient funds. * **Pending** – Indicates that it is not possible to obtain the final status of the payment. This can happen if the systems providing final status information for the payment are unavailable, or if the shopper needs to take further action to complete the payment. * **PresentToShopper** – Indicates that the response contains additional information that you need to present to a shopper, so that they can use it to complete a payment. * **Received** – Indicates the payment has successfully been received by Adyen, and will be processed. This is the initial state for all payments. * **RedirectShopper** – Indicates the shopper should be redirected to an external web page or app to complete the authorisation. * **Refused** – Indicates the payment was refused. The reason is given in the `refusalReason` field. This is a final state. */ 'resultCode'?: PaymentResponse.ResultCodeEnum; - 'threeDS2ResponseData'?: ThreeDS2ResponseData; - 'threeDS2Result'?: ThreeDS2Result; + 'threeDS2ResponseData'?: ThreeDS2ResponseData | null; + 'threeDS2Result'?: ThreeDS2Result | null; /** * When non-empty, contains a value that you must submit to the `/payments/details` endpoint as `paymentData`. */ @@ -83,7 +83,7 @@ export class PaymentResponse { { "name": "amount", "baseName": "amount", - "type": "Amount" + "type": "Amount | null" }, { "name": "donationToken", @@ -93,7 +93,7 @@ export class PaymentResponse { { "name": "fraudResult", "baseName": "fraudResult", - "type": "FraudResult" + "type": "FraudResult | null" }, { "name": "merchantReference", @@ -103,12 +103,12 @@ export class PaymentResponse { { "name": "order", "baseName": "order", - "type": "CheckoutOrderResponse" + "type": "CheckoutOrderResponse | null" }, { "name": "paymentMethod", "baseName": "paymentMethod", - "type": "ResponsePaymentMethod" + "type": "ResponsePaymentMethod | null" }, { "name": "pspReference", @@ -133,12 +133,12 @@ export class PaymentResponse { { "name": "threeDS2ResponseData", "baseName": "threeDS2ResponseData", - "type": "ThreeDS2ResponseData" + "type": "ThreeDS2ResponseData | null" }, { "name": "threeDS2Result", "baseName": "threeDS2Result", - "type": "ThreeDS2Result" + "type": "ThreeDS2Result | null" }, { "name": "threeDSPaymentData", diff --git a/src/typings/checkout/paymentReversalRequest.ts b/src/typings/checkout/paymentReversalRequest.ts index 828f2ec17..569a5c3d2 100644 --- a/src/typings/checkout/paymentReversalRequest.ts +++ b/src/typings/checkout/paymentReversalRequest.ts @@ -10,7 +10,7 @@ import { ApplicationInfo } from './applicationInfo'; export class PaymentReversalRequest { - 'applicationInfo'?: ApplicationInfo; + 'applicationInfo'?: ApplicationInfo | null; /** * The merchant account that is used to process the payment. */ @@ -26,7 +26,7 @@ export class PaymentReversalRequest { { "name": "applicationInfo", "baseName": "applicationInfo", - "type": "ApplicationInfo" + "type": "ApplicationInfo | null" }, { "name": "merchantAccount", diff --git a/src/typings/checkout/paypalUpdateOrderRequest.ts b/src/typings/checkout/paypalUpdateOrderRequest.ts index bd381de34..494b1d908 100644 --- a/src/typings/checkout/paypalUpdateOrderRequest.ts +++ b/src/typings/checkout/paypalUpdateOrderRequest.ts @@ -12,7 +12,7 @@ import { DeliveryMethod } from './deliveryMethod'; import { TaxTotal } from './taxTotal'; export class PaypalUpdateOrderRequest { - 'amount'?: Amount; + 'amount'?: Amount | null; /** * The list of new delivery methods and the cost of each. */ @@ -29,7 +29,7 @@ export class PaypalUpdateOrderRequest { * The original `sessionId` from the `/sessions` response. */ 'sessionId'?: string; - 'taxTotal'?: TaxTotal; + 'taxTotal'?: TaxTotal | null; static discriminator: string | undefined = undefined; @@ -37,7 +37,7 @@ export class PaypalUpdateOrderRequest { { "name": "amount", "baseName": "amount", - "type": "Amount" + "type": "Amount | null" }, { "name": "deliveryMethods", @@ -62,7 +62,7 @@ export class PaypalUpdateOrderRequest { { "name": "taxTotal", "baseName": "taxTotal", - "type": "TaxTotal" + "type": "TaxTotal | null" } ]; static getAttributeTypeMap() { diff --git a/src/typings/checkout/split.ts b/src/typings/checkout/split.ts index 13a264a69..d8575e15a 100644 --- a/src/typings/checkout/split.ts +++ b/src/typings/checkout/split.ts @@ -14,7 +14,7 @@ export class Split { * The unique identifier of the account to which the split amount is booked. Required if `type` is **MarketPlace** or **BalanceAccount**. * [Classic Platforms integration](https://docs.adyen.com/classic-platforms): The [`accountCode`](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccount#request-accountCode) of the account to which the split amount is booked. * [Balance Platform](https://docs.adyen.com/adyen-for-platforms-model): The [`balanceAccountId`](https://docs.adyen.com/api-explorer/balanceplatform/latest/get/balanceAccounts/_id_#path-id) of the account to which the split amount is booked. */ 'account'?: string; - 'amount'?: SplitAmount; + 'amount'?: SplitAmount | null; /** * Your description for the split item. */ @@ -39,7 +39,7 @@ export class Split { { "name": "amount", "baseName": "amount", - "type": "SplitAmount" + "type": "SplitAmount | null" }, { "name": "description", diff --git a/src/typings/checkout/standalonePaymentCancelRequest.ts b/src/typings/checkout/standalonePaymentCancelRequest.ts index e06245626..e27dd56c8 100644 --- a/src/typings/checkout/standalonePaymentCancelRequest.ts +++ b/src/typings/checkout/standalonePaymentCancelRequest.ts @@ -10,7 +10,7 @@ import { ApplicationInfo } from './applicationInfo'; export class StandalonePaymentCancelRequest { - 'applicationInfo'?: ApplicationInfo; + 'applicationInfo'?: ApplicationInfo | null; /** * The merchant account that is used to process the payment. */ @@ -30,7 +30,7 @@ export class StandalonePaymentCancelRequest { { "name": "applicationInfo", "baseName": "applicationInfo", - "type": "ApplicationInfo" + "type": "ApplicationInfo | null" }, { "name": "merchantAccount", diff --git a/src/typings/checkout/subMerchantInfo.ts b/src/typings/checkout/subMerchantInfo.ts index e60dc7339..1c34670b6 100644 --- a/src/typings/checkout/subMerchantInfo.ts +++ b/src/typings/checkout/subMerchantInfo.ts @@ -11,8 +11,8 @@ import { Amount } from './amount'; import { BillingAddress } from './billingAddress'; export class SubMerchantInfo { - 'address'?: BillingAddress; - 'amount'?: Amount; + 'address'?: BillingAddress | null; + 'amount'?: Amount | null; /** * Required for transactions performed by registered payment facilitators. The email associated with the sub-merchant\'s account. */ @@ -49,12 +49,12 @@ export class SubMerchantInfo { { "name": "address", "baseName": "address", - "type": "BillingAddress" + "type": "BillingAddress | null" }, { "name": "amount", "baseName": "amount", - "type": "Amount" + "type": "Amount | null" }, { "name": "email", diff --git a/src/typings/checkout/taxTotal.ts b/src/typings/checkout/taxTotal.ts index befb398ea..4c21fb737 100644 --- a/src/typings/checkout/taxTotal.ts +++ b/src/typings/checkout/taxTotal.ts @@ -10,7 +10,7 @@ import { Amount } from './amount'; export class TaxTotal { - 'amount'?: Amount; + 'amount'?: Amount | null; static discriminator: string | undefined = undefined; @@ -18,7 +18,7 @@ export class TaxTotal { { "name": "amount", "baseName": "amount", - "type": "Amount" + "type": "Amount | null" } ]; static getAttributeTypeMap() { diff --git a/src/typings/checkout/threeDS2RequestData.ts b/src/typings/checkout/threeDS2RequestData.ts index 9c136b9f4..7aea75458 100644 --- a/src/typings/checkout/threeDS2RequestData.ts +++ b/src/typings/checkout/threeDS2RequestData.ts @@ -15,7 +15,7 @@ import { ThreeDSRequestorAuthenticationInfo } from './threeDSRequestorAuthentica import { ThreeDSRequestorPriorAuthenticationInfo } from './threeDSRequestorPriorAuthenticationInfo'; export class ThreeDS2RequestData { - 'acctInfo'?: AcctInfo; + 'acctInfo'?: AcctInfo | null; /** * Indicates the type of account. For example, for a multi-account card product. Length: 2 characters. Allowed values: * **01** — Not applicable * **02** — Credit * **03** — Debit */ @@ -50,8 +50,8 @@ export class ThreeDS2RequestData { * The environment of the shopper. Allowed values: * `app` * `browser` */ 'deviceChannel': string; - 'deviceRenderOptions'?: DeviceRenderOptions; - 'homePhone'?: Phone; + 'deviceRenderOptions'?: DeviceRenderOptions | null; + 'homePhone'?: Phone | null; /** * Required for merchants that have been enrolled for 3D Secure 2 by another party than Adyen, mostly [authentication-only integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). The `mcc` is a four-digit code with which the previously given `acquirerMerchantID` is registered at the scheme. */ @@ -64,7 +64,7 @@ export class ThreeDS2RequestData { * The `messageVersion` value indicating the 3D Secure 2 protocol version. */ 'messageVersion'?: string; - 'mobilePhone'?: Phone; + 'mobilePhone'?: Phone | null; /** * URL to where the issuer should send the `CRes`. Required if you are not using components for `channel` **Web** or if you are using classic integration `deviceChannel` **browser**. */ @@ -97,7 +97,7 @@ export class ThreeDS2RequestData { * The `sdkEncData` value as received from the 3D Secure 2 SDK. Required for `deviceChannel` set to **app**. */ 'sdkEncData'?: string; - 'sdkEphemPubKey'?: SDKEphemPubKey; + 'sdkEphemPubKey'?: SDKEphemPubKey | null; /** * The maximum amount of time in minutes for the 3D Secure 2 authentication process. Optional and only for `deviceChannel` set to **app**. Defaults to **60** minutes. */ @@ -122,7 +122,7 @@ export class ThreeDS2RequestData { * Indicates the type of Authentication request. */ 'threeDSRequestorAuthenticationInd'?: string; - 'threeDSRequestorAuthenticationInfo'?: ThreeDSRequestorAuthenticationInfo; + 'threeDSRequestorAuthenticationInfo'?: ThreeDSRequestorAuthenticationInfo | null; /** * Indicates whether a challenge is requested for this transaction. Possible values: * **01** — No preference * **02** — No challenge requested * **03** — Challenge requested (3DS Requestor preference) * **04** — Challenge requested (Mandate) * **05** — No challenge (transactional risk analysis is already performed) * **06** — Data Only */ @@ -135,7 +135,7 @@ export class ThreeDS2RequestData { * Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only) for Visa. Unique 3D Secure requestor name assigned by the Directory Server when you enrol for 3D Secure 2. */ 'threeDSRequestorName'?: string; - 'threeDSRequestorPriorAuthenticationInfo'?: ThreeDSRequestorPriorAuthenticationInfo; + 'threeDSRequestorPriorAuthenticationInfo'?: ThreeDSRequestorPriorAuthenticationInfo | null; /** * URL of the (customer service) website that will be shown to the shopper in case of technical errors during the 3D Secure 2 process. */ @@ -152,7 +152,7 @@ export class ThreeDS2RequestData { * The `whiteListStatus` value returned from a previous 3D Secure 2 transaction, only applicable for 3D Secure 2 protocol version 2.2.0. */ 'whiteListStatus'?: string; - 'workPhone'?: Phone; + 'workPhone'?: Phone | null; static discriminator: string | undefined = undefined; @@ -160,7 +160,7 @@ export class ThreeDS2RequestData { { "name": "acctInfo", "baseName": "acctInfo", - "type": "AcctInfo" + "type": "AcctInfo | null" }, { "name": "acctType", @@ -200,12 +200,12 @@ export class ThreeDS2RequestData { { "name": "deviceRenderOptions", "baseName": "deviceRenderOptions", - "type": "DeviceRenderOptions" + "type": "DeviceRenderOptions | null" }, { "name": "homePhone", "baseName": "homePhone", - "type": "Phone" + "type": "Phone | null" }, { "name": "mcc", @@ -225,7 +225,7 @@ export class ThreeDS2RequestData { { "name": "mobilePhone", "baseName": "mobilePhone", - "type": "Phone" + "type": "Phone | null" }, { "name": "notificationURL", @@ -270,7 +270,7 @@ export class ThreeDS2RequestData { { "name": "sdkEphemPubKey", "baseName": "sdkEphemPubKey", - "type": "SDKEphemPubKey" + "type": "SDKEphemPubKey | null" }, { "name": "sdkMaxTimeout", @@ -305,7 +305,7 @@ export class ThreeDS2RequestData { { "name": "threeDSRequestorAuthenticationInfo", "baseName": "threeDSRequestorAuthenticationInfo", - "type": "ThreeDSRequestorAuthenticationInfo" + "type": "ThreeDSRequestorAuthenticationInfo | null" }, { "name": "threeDSRequestorChallengeInd", @@ -325,7 +325,7 @@ export class ThreeDS2RequestData { { "name": "threeDSRequestorPriorAuthenticationInfo", "baseName": "threeDSRequestorPriorAuthenticationInfo", - "type": "ThreeDSRequestorPriorAuthenticationInfo" + "type": "ThreeDSRequestorPriorAuthenticationInfo | null" }, { "name": "threeDSRequestorURL", @@ -350,7 +350,7 @@ export class ThreeDS2RequestData { { "name": "workPhone", "baseName": "workPhone", - "type": "Phone" + "type": "Phone | null" } ]; static getAttributeTypeMap() { diff --git a/src/typings/checkout/threeDS2RequestFields.ts b/src/typings/checkout/threeDS2RequestFields.ts index 90c2ba260..7c9603dcc 100644 --- a/src/typings/checkout/threeDS2RequestFields.ts +++ b/src/typings/checkout/threeDS2RequestFields.ts @@ -15,7 +15,7 @@ import { ThreeDSRequestorAuthenticationInfo } from './threeDSRequestorAuthentica import { ThreeDSRequestorPriorAuthenticationInfo } from './threeDSRequestorPriorAuthenticationInfo'; export class ThreeDS2RequestFields { - 'acctInfo'?: AcctInfo; + 'acctInfo'?: AcctInfo | null; /** * Indicates the type of account. For example, for a multi-account card product. Length: 2 characters. Allowed values: * **01** — Not applicable * **02** — Credit * **03** — Debit */ @@ -46,8 +46,8 @@ export class ThreeDS2RequestFields { * Use `threeDSRequestorChallengeInd` instead. */ 'challengeIndicator'?: ThreeDS2RequestFields.ChallengeIndicatorEnum; - 'deviceRenderOptions'?: DeviceRenderOptions; - 'homePhone'?: Phone; + 'deviceRenderOptions'?: DeviceRenderOptions | null; + 'homePhone'?: Phone | null; /** * Required for merchants that have been enrolled for 3D Secure 2 by another party than Adyen, mostly [authentication-only integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). The `mcc` is a four-digit code with which the previously given `acquirerMerchantID` is registered at the scheme. */ @@ -60,7 +60,7 @@ export class ThreeDS2RequestFields { * The `messageVersion` value indicating the 3D Secure 2 protocol version. */ 'messageVersion'?: string; - 'mobilePhone'?: Phone; + 'mobilePhone'?: Phone | null; /** * URL to where the issuer should send the `CRes`. Required if you are not using components for `channel` **Web** or if you are using classic integration `deviceChannel` **browser**. */ @@ -89,7 +89,7 @@ export class ThreeDS2RequestFields { * The `sdkAppID` value as received from the 3D Secure 2 SDK. */ 'sdkAppID'?: string; - 'sdkEphemPubKey'?: SDKEphemPubKey; + 'sdkEphemPubKey'?: SDKEphemPubKey | null; /** * The maximum amount of time in minutes for the 3D Secure 2 authentication process. Optional and only for `deviceChannel` set to **app**. Defaults to **60** minutes. */ @@ -110,7 +110,7 @@ export class ThreeDS2RequestFields { * Indicates the type of Authentication request. */ 'threeDSRequestorAuthenticationInd'?: string; - 'threeDSRequestorAuthenticationInfo'?: ThreeDSRequestorAuthenticationInfo; + 'threeDSRequestorAuthenticationInfo'?: ThreeDSRequestorAuthenticationInfo | null; /** * Indicates whether a challenge is requested for this transaction. Possible values: * **01** — No preference * **02** — No challenge requested * **03** — Challenge requested (3DS Requestor preference) * **04** — Challenge requested (Mandate) * **05** — No challenge (transactional risk analysis is already performed) * **06** — Data Only */ @@ -123,7 +123,7 @@ export class ThreeDS2RequestFields { * Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only) for Visa. Unique 3D Secure requestor name assigned by the Directory Server when you enrol for 3D Secure 2. */ 'threeDSRequestorName'?: string; - 'threeDSRequestorPriorAuthenticationInfo'?: ThreeDSRequestorPriorAuthenticationInfo; + 'threeDSRequestorPriorAuthenticationInfo'?: ThreeDSRequestorPriorAuthenticationInfo | null; /** * URL of the (customer service) website that will be shown to the shopper in case of technical errors during the 3D Secure 2 process. */ @@ -140,7 +140,7 @@ export class ThreeDS2RequestFields { * The `whiteListStatus` value returned from a previous 3D Secure 2 transaction, only applicable for 3D Secure 2 protocol version 2.2.0. */ 'whiteListStatus'?: string; - 'workPhone'?: Phone; + 'workPhone'?: Phone | null; static discriminator: string | undefined = undefined; @@ -148,7 +148,7 @@ export class ThreeDS2RequestFields { { "name": "acctInfo", "baseName": "acctInfo", - "type": "AcctInfo" + "type": "AcctInfo | null" }, { "name": "acctType", @@ -183,12 +183,12 @@ export class ThreeDS2RequestFields { { "name": "deviceRenderOptions", "baseName": "deviceRenderOptions", - "type": "DeviceRenderOptions" + "type": "DeviceRenderOptions | null" }, { "name": "homePhone", "baseName": "homePhone", - "type": "Phone" + "type": "Phone | null" }, { "name": "mcc", @@ -208,7 +208,7 @@ export class ThreeDS2RequestFields { { "name": "mobilePhone", "baseName": "mobilePhone", - "type": "Phone" + "type": "Phone | null" }, { "name": "notificationURL", @@ -248,7 +248,7 @@ export class ThreeDS2RequestFields { { "name": "sdkEphemPubKey", "baseName": "sdkEphemPubKey", - "type": "SDKEphemPubKey" + "type": "SDKEphemPubKey | null" }, { "name": "sdkMaxTimeout", @@ -278,7 +278,7 @@ export class ThreeDS2RequestFields { { "name": "threeDSRequestorAuthenticationInfo", "baseName": "threeDSRequestorAuthenticationInfo", - "type": "ThreeDSRequestorAuthenticationInfo" + "type": "ThreeDSRequestorAuthenticationInfo | null" }, { "name": "threeDSRequestorChallengeInd", @@ -298,7 +298,7 @@ export class ThreeDS2RequestFields { { "name": "threeDSRequestorPriorAuthenticationInfo", "baseName": "threeDSRequestorPriorAuthenticationInfo", - "type": "ThreeDSRequestorPriorAuthenticationInfo" + "type": "ThreeDSRequestorPriorAuthenticationInfo | null" }, { "name": "threeDSRequestorURL", @@ -323,7 +323,7 @@ export class ThreeDS2RequestFields { { "name": "workPhone", "baseName": "workPhone", - "type": "Phone" + "type": "Phone | null" } ]; static getAttributeTypeMap() { diff --git a/src/typings/configurationWebhooks/accountHolder.ts b/src/typings/configurationWebhooks/accountHolder.ts index 7f08f216c..451bdd371 100644 --- a/src/typings/configurationWebhooks/accountHolder.ts +++ b/src/typings/configurationWebhooks/accountHolder.ts @@ -23,7 +23,7 @@ export class AccountHolder { /** * @deprecated */ - 'contactDetails'?: ContactDetails; + 'contactDetails'?: ContactDetails | null; /** * Your description for the account holder. */ @@ -81,7 +81,7 @@ export class AccountHolder { { "name": "contactDetails", "baseName": "contactDetails", - "type": "ContactDetails" + "type": "ContactDetails | null" }, { "name": "description", diff --git a/src/typings/configurationWebhooks/accountHolderCapability.ts b/src/typings/configurationWebhooks/accountHolderCapability.ts index 9da4d41af..eaccb94ae 100644 --- a/src/typings/configurationWebhooks/accountHolderCapability.ts +++ b/src/typings/configurationWebhooks/accountHolderCapability.ts @@ -20,7 +20,7 @@ export class AccountHolderCapability { * The capability level that is allowed for the account holder. Possible values: **notApplicable**, **low**, **medium**, **high**. */ 'allowedLevel'?: AccountHolderCapability.AllowedLevelEnum; - 'allowedSettings'?: CapabilitySettings; + 'allowedSettings'?: CapabilitySettings | null; /** * Indicates whether the capability is enabled. If **false**, the capability is temporarily disabled for the account holder. */ @@ -37,7 +37,7 @@ export class AccountHolderCapability { * The requested level of the capability. Some capabilities, such as those used in [card issuing](https://docs.adyen.com/issuing/add-capabilities#capability-levels), have different levels. Levels increase the capability, but also require additional checks and increased monitoring. Possible values: **notApplicable**, **low**, **medium**, **high**. */ 'requestedLevel'?: AccountHolderCapability.RequestedLevelEnum; - 'requestedSettings'?: CapabilitySettings; + 'requestedSettings'?: CapabilitySettings | null; /** * Contains the status of the transfer instruments associated with this capability. */ @@ -63,7 +63,7 @@ export class AccountHolderCapability { { "name": "allowedSettings", "baseName": "allowedSettings", - "type": "CapabilitySettings" + "type": "CapabilitySettings | null" }, { "name": "enabled", @@ -88,7 +88,7 @@ export class AccountHolderCapability { { "name": "requestedSettings", "baseName": "requestedSettings", - "type": "CapabilitySettings" + "type": "CapabilitySettings | null" }, { "name": "transferInstruments", diff --git a/src/typings/configurationWebhooks/accountHolderNotificationData.ts b/src/typings/configurationWebhooks/accountHolderNotificationData.ts index d1691173e..b2146fa35 100644 --- a/src/typings/configurationWebhooks/accountHolderNotificationData.ts +++ b/src/typings/configurationWebhooks/accountHolderNotificationData.ts @@ -10,7 +10,7 @@ import { AccountHolder } from './accountHolder'; export class AccountHolderNotificationData { - 'accountHolder'?: AccountHolder; + 'accountHolder'?: AccountHolder | null; /** * The unique identifier of the balance platform. */ @@ -22,7 +22,7 @@ export class AccountHolderNotificationData { { "name": "accountHolder", "baseName": "accountHolder", - "type": "AccountHolder" + "type": "AccountHolder | null" }, { "name": "balancePlatform", diff --git a/src/typings/configurationWebhooks/authentication.ts b/src/typings/configurationWebhooks/authentication.ts index 0a6a62203..843cf933c 100644 --- a/src/typings/configurationWebhooks/authentication.ts +++ b/src/typings/configurationWebhooks/authentication.ts @@ -18,7 +18,7 @@ export class Authentication { * The password used for 3D Secure password-based authentication. The value must be between 1 to 30 characters and must only contain the following supported characters. * Characters between **a-z**, **A-Z**, and **0-9** * Special characters: **äöüßÄÖÜ+-*_/ç%()=?!~#\'\",;:$&àùòâôûáúó** */ 'password'?: string; - 'phone'?: Phone; + 'phone'?: Phone | null; static discriminator: string | undefined = undefined; @@ -36,7 +36,7 @@ export class Authentication { { "name": "phone", "baseName": "phone", - "type": "Phone" + "type": "Phone | null" } ]; static getAttributeTypeMap() { diff --git a/src/typings/configurationWebhooks/balanceAccount.ts b/src/typings/configurationWebhooks/balanceAccount.ts index 0ca96a1f7..6fcb17368 100644 --- a/src/typings/configurationWebhooks/balanceAccount.ts +++ b/src/typings/configurationWebhooks/balanceAccount.ts @@ -39,7 +39,7 @@ export class BalanceAccount { * The unique identifier of the account of the migrated account holder in the classic integration. */ 'migratedAccountCode'?: string; - 'platformPaymentConfiguration'?: PlatformPaymentConfiguration; + 'platformPaymentConfiguration'?: PlatformPaymentConfiguration | null; /** * Your reference for the balance account, maximum 150 characters. */ @@ -94,7 +94,7 @@ export class BalanceAccount { { "name": "platformPaymentConfiguration", "baseName": "platformPaymentConfiguration", - "type": "PlatformPaymentConfiguration" + "type": "PlatformPaymentConfiguration | null" }, { "name": "reference", diff --git a/src/typings/configurationWebhooks/balanceAccountNotificationData.ts b/src/typings/configurationWebhooks/balanceAccountNotificationData.ts index 2856c0c65..824ed6abb 100644 --- a/src/typings/configurationWebhooks/balanceAccountNotificationData.ts +++ b/src/typings/configurationWebhooks/balanceAccountNotificationData.ts @@ -10,7 +10,7 @@ import { BalanceAccount } from './balanceAccount'; export class BalanceAccountNotificationData { - 'balanceAccount'?: BalanceAccount; + 'balanceAccount'?: BalanceAccount | null; /** * The unique identifier of the balance platform. */ @@ -22,7 +22,7 @@ export class BalanceAccountNotificationData { { "name": "balanceAccount", "baseName": "balanceAccount", - "type": "BalanceAccount" + "type": "BalanceAccount | null" }, { "name": "balancePlatform", diff --git a/src/typings/configurationWebhooks/capabilityProblem.ts b/src/typings/configurationWebhooks/capabilityProblem.ts index 539cda4dc..41cd5fe6c 100644 --- a/src/typings/configurationWebhooks/capabilityProblem.ts +++ b/src/typings/configurationWebhooks/capabilityProblem.ts @@ -11,7 +11,7 @@ import { CapabilityProblemEntity } from './capabilityProblemEntity'; import { VerificationError } from './verificationError'; export class CapabilityProblem { - 'entity'?: CapabilityProblemEntity; + 'entity'?: CapabilityProblemEntity | null; /** * Contains information about the verification error. */ @@ -23,7 +23,7 @@ export class CapabilityProblem { { "name": "entity", "baseName": "entity", - "type": "CapabilityProblemEntity" + "type": "CapabilityProblemEntity | null" }, { "name": "verificationErrors", diff --git a/src/typings/configurationWebhooks/capabilityProblemEntity.ts b/src/typings/configurationWebhooks/capabilityProblemEntity.ts index 9b4f1e324..b022a757f 100644 --- a/src/typings/configurationWebhooks/capabilityProblemEntity.ts +++ b/src/typings/configurationWebhooks/capabilityProblemEntity.ts @@ -18,7 +18,7 @@ export class CapabilityProblemEntity { * The ID of the entity. */ 'id'?: string; - 'owner'?: CapabilityProblemEntityRecursive; + 'owner'?: CapabilityProblemEntityRecursive | null; /** * Type of entity. Possible values: **LegalEntity**, **BankAccount**, **Document**. */ @@ -40,7 +40,7 @@ export class CapabilityProblemEntity { { "name": "owner", "baseName": "owner", - "type": "CapabilityProblemEntityRecursive" + "type": "CapabilityProblemEntityRecursive | null" }, { "name": "type", diff --git a/src/typings/configurationWebhooks/capabilitySettings.ts b/src/typings/configurationWebhooks/capabilitySettings.ts index a6b9ea2bd..4a1bd904a 100644 --- a/src/typings/configurationWebhooks/capabilitySettings.ts +++ b/src/typings/configurationWebhooks/capabilitySettings.ts @@ -14,7 +14,7 @@ export class CapabilitySettings { 'authorizedCardUsers'?: boolean; 'fundingSource'?: Array; 'interval'?: CapabilitySettings.IntervalEnum; - 'maxAmount'?: Amount; + 'maxAmount'?: Amount | null; static discriminator: string | undefined = undefined; @@ -42,7 +42,7 @@ export class CapabilitySettings { { "name": "maxAmount", "baseName": "maxAmount", - "type": "Amount" + "type": "Amount | null" } ]; static getAttributeTypeMap() { diff --git a/src/typings/configurationWebhooks/card.ts b/src/typings/configurationWebhooks/card.ts index 53b0cde7c..2d386cbda 100644 --- a/src/typings/configurationWebhooks/card.ts +++ b/src/typings/configurationWebhooks/card.ts @@ -13,7 +13,7 @@ import { DeliveryContact } from './deliveryContact'; import { Expiry } from './expiry'; export class Card { - 'authentication'?: Authentication; + 'authentication'?: Authentication | null; /** * The bank identification number (BIN) of the card number. */ @@ -30,13 +30,13 @@ export class Card { * The name of the cardholder. Maximum length: 26 characters. */ 'cardholderName': string; - 'configuration'?: CardConfiguration; + 'configuration'?: CardConfiguration | null; /** * The CVC2 value of the card. > The CVC2 is not sent by default. This is only returned in the `POST` response for single-use virtual cards. */ 'cvc'?: string; - 'deliveryContact'?: DeliveryContact; - 'expiration'?: Expiry; + 'deliveryContact'?: DeliveryContact | null; + 'expiration'?: Expiry | null; /** * The form factor of the card. Possible values: **virtual**, **physical**. */ @@ -60,7 +60,7 @@ export class Card { { "name": "authentication", "baseName": "authentication", - "type": "Authentication" + "type": "Authentication | null" }, { "name": "bin", @@ -85,7 +85,7 @@ export class Card { { "name": "configuration", "baseName": "configuration", - "type": "CardConfiguration" + "type": "CardConfiguration | null" }, { "name": "cvc", @@ -95,12 +95,12 @@ export class Card { { "name": "deliveryContact", "baseName": "deliveryContact", - "type": "DeliveryContact" + "type": "DeliveryContact | null" }, { "name": "expiration", "baseName": "expiration", - "type": "Expiry" + "type": "Expiry | null" }, { "name": "formFactor", diff --git a/src/typings/configurationWebhooks/cardConfiguration.ts b/src/typings/configurationWebhooks/cardConfiguration.ts index 833894ecf..79d7502dd 100644 --- a/src/typings/configurationWebhooks/cardConfiguration.ts +++ b/src/typings/configurationWebhooks/cardConfiguration.ts @@ -18,7 +18,7 @@ export class CardConfiguration { * Your app\'s URL, if you want to activate cards through your app. For example, **my-app://ref1236a7d**. A QR code is created based on this URL, and is included in the carrier. Before you use this field, reach out to your Adyen contact to set up the QR code process. Maximum length: 255 characters. */ 'activationUrl'?: string; - 'bulkAddress'?: BulkAddress; + 'bulkAddress'?: BulkAddress | null; /** * The ID of the card image. This is the image that will be printed on the full front of the card. */ @@ -80,7 +80,7 @@ export class CardConfiguration { { "name": "bulkAddress", "baseName": "bulkAddress", - "type": "BulkAddress" + "type": "BulkAddress | null" }, { "name": "cardImageId", diff --git a/src/typings/configurationWebhooks/cardOrderItem.ts b/src/typings/configurationWebhooks/cardOrderItem.ts index 0cafa4c38..2d6cd1223 100644 --- a/src/typings/configurationWebhooks/cardOrderItem.ts +++ b/src/typings/configurationWebhooks/cardOrderItem.ts @@ -14,7 +14,7 @@ export class CardOrderItem { * The unique identifier of the balance platform. */ 'balancePlatform'?: string; - 'card'?: CardOrderItemDeliveryStatus; + 'card'?: CardOrderItemDeliveryStatus | null; /** * The unique identifier of the card order item. */ @@ -31,7 +31,7 @@ export class CardOrderItem { * The unique identifier of the payment instrument related to the card order item. */ 'paymentInstrumentId'?: string; - 'pin'?: CardOrderItemDeliveryStatus; + 'pin'?: CardOrderItemDeliveryStatus | null; /** * The shipping method used to deliver the card or the PIN. */ @@ -48,7 +48,7 @@ export class CardOrderItem { { "name": "card", "baseName": "card", - "type": "CardOrderItemDeliveryStatus" + "type": "CardOrderItemDeliveryStatus | null" }, { "name": "cardOrderItemId", @@ -73,7 +73,7 @@ export class CardOrderItem { { "name": "pin", "baseName": "pin", - "type": "CardOrderItemDeliveryStatus" + "type": "CardOrderItemDeliveryStatus | null" }, { "name": "shippingMethod", diff --git a/src/typings/configurationWebhooks/deliveryContact.ts b/src/typings/configurationWebhooks/deliveryContact.ts index c01f2b4a0..f60009f14 100644 --- a/src/typings/configurationWebhooks/deliveryContact.ts +++ b/src/typings/configurationWebhooks/deliveryContact.ts @@ -26,7 +26,7 @@ export class DeliveryContact { */ 'fullPhoneNumber'?: string; 'name': Name; - 'phoneNumber'?: PhoneNumber; + 'phoneNumber'?: PhoneNumber | null; /** * The URL of the contact\'s website. */ @@ -63,7 +63,7 @@ export class DeliveryContact { { "name": "phoneNumber", "baseName": "phoneNumber", - "type": "PhoneNumber" + "type": "PhoneNumber | null" }, { "name": "webAddress", diff --git a/src/typings/configurationWebhooks/paymentInstrument.ts b/src/typings/configurationWebhooks/paymentInstrument.ts index 50a221fa5..1852b1710 100644 --- a/src/typings/configurationWebhooks/paymentInstrument.ts +++ b/src/typings/configurationWebhooks/paymentInstrument.ts @@ -23,8 +23,8 @@ export class PaymentInstrument { * The unique identifier of the [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/v1/post/balanceAccounts__resParam_id) associated with the payment instrument. */ 'balanceAccountId': string; - 'bankAccount'?: BankAccountDetails; - 'card'?: Card; + 'bankAccount'?: BankAccountDetails | null; + 'card'?: Card | null; /** * Your description for the payment instrument, maximum 300 characters. */ @@ -78,12 +78,12 @@ export class PaymentInstrument { { "name": "bankAccount", "baseName": "bankAccount", - "type": "BankAccountDetails" + "type": "BankAccountDetails | null" }, { "name": "card", "baseName": "card", - "type": "Card" + "type": "Card | null" }, { "name": "description", diff --git a/src/typings/configurationWebhooks/paymentInstrumentNotificationData.ts b/src/typings/configurationWebhooks/paymentInstrumentNotificationData.ts index 636498e05..7f05d54e6 100644 --- a/src/typings/configurationWebhooks/paymentInstrumentNotificationData.ts +++ b/src/typings/configurationWebhooks/paymentInstrumentNotificationData.ts @@ -14,7 +14,7 @@ export class PaymentInstrumentNotificationData { * The unique identifier of the balance platform. */ 'balancePlatform'?: string; - 'paymentInstrument'?: PaymentInstrument; + 'paymentInstrument'?: PaymentInstrument | null; static discriminator: string | undefined = undefined; @@ -27,7 +27,7 @@ export class PaymentInstrumentNotificationData { { "name": "paymentInstrument", "baseName": "paymentInstrument", - "type": "PaymentInstrument" + "type": "PaymentInstrument | null" } ]; static getAttributeTypeMap() { diff --git a/src/typings/configurationWebhooks/sweepConfigurationNotificationData.ts b/src/typings/configurationWebhooks/sweepConfigurationNotificationData.ts index 28e11e24b..32c6d0ceb 100644 --- a/src/typings/configurationWebhooks/sweepConfigurationNotificationData.ts +++ b/src/typings/configurationWebhooks/sweepConfigurationNotificationData.ts @@ -18,7 +18,7 @@ export class SweepConfigurationNotificationData { * The unique identifier of the balance platform. */ 'balancePlatform'?: string; - 'sweep'?: SweepConfigurationV2; + 'sweep'?: SweepConfigurationV2 | null; static discriminator: string | undefined = undefined; @@ -36,7 +36,7 @@ export class SweepConfigurationNotificationData { { "name": "sweep", "baseName": "sweep", - "type": "SweepConfigurationV2" + "type": "SweepConfigurationV2 | null" } ]; static getAttributeTypeMap() { diff --git a/src/typings/configurationWebhooks/sweepConfigurationV2.ts b/src/typings/configurationWebhooks/sweepConfigurationV2.ts index a6dbeae2a..3bd2d7584 100644 --- a/src/typings/configurationWebhooks/sweepConfigurationV2.ts +++ b/src/typings/configurationWebhooks/sweepConfigurationV2.ts @@ -54,9 +54,9 @@ export class SweepConfigurationV2 { * The status of the sweep. If not provided, by default, this is set to **active**. Possible values: * **active**: the sweep is enabled and funds will be pulled in or pushed out based on the defined configuration. * **inactive**: the sweep is disabled and cannot be triggered. */ 'status'?: SweepConfigurationV2.StatusEnum; - 'sweepAmount'?: Amount; - 'targetAmount'?: Amount; - 'triggerAmount'?: Amount; + 'sweepAmount'?: Amount | null; + 'targetAmount'?: Amount | null; + 'triggerAmount'?: Amount | null; /** * The direction of sweep, whether pushing out or pulling in funds to the balance account. If not provided, by default, this is set to **push**. Possible values: * **push**: _push out funds_ to a destination balance account or transfer instrument. * **pull**: _pull in funds_ from a source merchant account, transfer instrument, or balance account. */ @@ -128,17 +128,17 @@ export class SweepConfigurationV2 { { "name": "sweepAmount", "baseName": "sweepAmount", - "type": "Amount" + "type": "Amount | null" }, { "name": "targetAmount", "baseName": "targetAmount", - "type": "Amount" + "type": "Amount | null" }, { "name": "triggerAmount", "baseName": "triggerAmount", - "type": "Amount" + "type": "Amount | null" }, { "name": "type", diff --git a/src/typings/disputeWebhooks/disputeEventNotification.ts b/src/typings/disputeWebhooks/disputeEventNotification.ts index 912fba70e..dc83ab604 100644 --- a/src/typings/disputeWebhooks/disputeEventNotification.ts +++ b/src/typings/disputeWebhooks/disputeEventNotification.ts @@ -26,7 +26,7 @@ export class DisputeEventNotification { * Contains information about the dispute. */ 'description'?: string; - 'disputedAmount'?: Amount; + 'disputedAmount'?: Amount | null; /** * The ID of the resource. */ @@ -74,7 +74,7 @@ export class DisputeEventNotification { { "name": "disputedAmount", "baseName": "disputedAmount", - "type": "Amount" + "type": "Amount | null" }, { "name": "id", diff --git a/src/typings/legalEntityManagement/businessLine.ts b/src/typings/legalEntityManagement/businessLine.ts index ef27b44d5..59e884094 100644 --- a/src/typings/legalEntityManagement/businessLine.ts +++ b/src/typings/legalEntityManagement/businessLine.ts @@ -44,12 +44,12 @@ export class BusinessLine { * The service for which you are creating the business line. Possible values: * **paymentProcessing** * **banking** */ 'service': BusinessLine.ServiceEnum; - 'sourceOfFunds'?: SourceOfFunds; + 'sourceOfFunds'?: SourceOfFunds | null; /** * List of website URLs where your user\'s goods or services are sold. When this is required for a service but your user does not have an online presence, provide the reason in the `webDataExemption` object. */ 'webData'?: Array; - 'webDataExemption'?: WebDataExemption; + 'webDataExemption'?: WebDataExemption | null; static discriminator: string | undefined = undefined; @@ -92,7 +92,7 @@ export class BusinessLine { { "name": "sourceOfFunds", "baseName": "sourceOfFunds", - "type": "SourceOfFunds" + "type": "SourceOfFunds | null" }, { "name": "webData", @@ -102,7 +102,7 @@ export class BusinessLine { { "name": "webDataExemption", "baseName": "webDataExemption", - "type": "WebDataExemption" + "type": "WebDataExemption | null" } ]; static getAttributeTypeMap() { diff --git a/src/typings/legalEntityManagement/businessLineInfo.ts b/src/typings/legalEntityManagement/businessLineInfo.ts index 97d73960a..ebe9ca74a 100644 --- a/src/typings/legalEntityManagement/businessLineInfo.ts +++ b/src/typings/legalEntityManagement/businessLineInfo.ts @@ -35,12 +35,12 @@ export class BusinessLineInfo { * The service for which you are creating the business line. Possible values: * **paymentProcessing** * **banking** */ 'service': BusinessLineInfo.ServiceEnum; - 'sourceOfFunds'?: SourceOfFunds; + 'sourceOfFunds'?: SourceOfFunds | null; /** * List of website URLs where your user\'s goods or services are sold. When this is required for a service but your user does not have an online presence, provide the reason in the `webDataExemption` object. */ 'webData'?: Array; - 'webDataExemption'?: WebDataExemption; + 'webDataExemption'?: WebDataExemption | null; static discriminator: string | undefined = undefined; @@ -73,7 +73,7 @@ export class BusinessLineInfo { { "name": "sourceOfFunds", "baseName": "sourceOfFunds", - "type": "SourceOfFunds" + "type": "SourceOfFunds | null" }, { "name": "webData", @@ -83,7 +83,7 @@ export class BusinessLineInfo { { "name": "webDataExemption", "baseName": "webDataExemption", - "type": "WebDataExemption" + "type": "WebDataExemption | null" } ]; static getAttributeTypeMap() { diff --git a/src/typings/legalEntityManagement/businessLineInfoUpdate.ts b/src/typings/legalEntityManagement/businessLineInfoUpdate.ts index b5b05cf0f..c9e76e509 100644 --- a/src/typings/legalEntityManagement/businessLineInfoUpdate.ts +++ b/src/typings/legalEntityManagement/businessLineInfoUpdate.ts @@ -20,12 +20,12 @@ export class BusinessLineInfoUpdate { * A list of channels where goods or services are sold. Possible values: **pos**, **posMoto**, **eCommerce**, **ecomMoto**, **payByLink**. Required only in combination with the `service` **paymentProcessing**. */ 'salesChannels'?: Array; - 'sourceOfFunds'?: SourceOfFunds; + 'sourceOfFunds'?: SourceOfFunds | null; /** * List of website URLs where your user\'s goods or services are sold. When this is required for a service but your user does not have an online presence, provide the reason in the `webDataExemption` object. */ 'webData'?: Array; - 'webDataExemption'?: WebDataExemption; + 'webDataExemption'?: WebDataExemption | null; static discriminator: string | undefined = undefined; @@ -43,7 +43,7 @@ export class BusinessLineInfoUpdate { { "name": "sourceOfFunds", "baseName": "sourceOfFunds", - "type": "SourceOfFunds" + "type": "SourceOfFunds | null" }, { "name": "webData", @@ -53,7 +53,7 @@ export class BusinessLineInfoUpdate { { "name": "webDataExemption", "baseName": "webDataExemption", - "type": "WebDataExemption" + "type": "WebDataExemption | null" } ]; static getAttributeTypeMap() { diff --git a/src/typings/legalEntityManagement/capabilityProblem.ts b/src/typings/legalEntityManagement/capabilityProblem.ts index 1b98be094..97e80c57d 100644 --- a/src/typings/legalEntityManagement/capabilityProblem.ts +++ b/src/typings/legalEntityManagement/capabilityProblem.ts @@ -11,7 +11,7 @@ import { CapabilityProblemEntity } from './capabilityProblemEntity'; import { VerificationError } from './verificationError'; export class CapabilityProblem { - 'entity'?: CapabilityProblemEntity; + 'entity'?: CapabilityProblemEntity | null; 'verificationErrors'?: Array; static discriminator: string | undefined = undefined; @@ -20,7 +20,7 @@ export class CapabilityProblem { { "name": "entity", "baseName": "entity", - "type": "CapabilityProblemEntity" + "type": "CapabilityProblemEntity | null" }, { "name": "verificationErrors", diff --git a/src/typings/legalEntityManagement/capabilityProblemEntity.ts b/src/typings/legalEntityManagement/capabilityProblemEntity.ts index 6f0261b69..5aec97041 100644 --- a/src/typings/legalEntityManagement/capabilityProblemEntity.ts +++ b/src/typings/legalEntityManagement/capabilityProblemEntity.ts @@ -15,7 +15,7 @@ export class CapabilityProblemEntity { */ 'documents'?: Array; 'id'?: string; - 'owner'?: CapabilityProblemEntityRecursive; + 'owner'?: CapabilityProblemEntityRecursive | null; 'type'?: CapabilityProblemEntity.TypeEnum; static discriminator: string | undefined = undefined; @@ -34,7 +34,7 @@ export class CapabilityProblemEntity { { "name": "owner", "baseName": "owner", - "type": "CapabilityProblemEntityRecursive" + "type": "CapabilityProblemEntityRecursive | null" }, { "name": "type", diff --git a/src/typings/legalEntityManagement/capabilitySettings.ts b/src/typings/legalEntityManagement/capabilitySettings.ts index 824259cb5..0a3d31209 100644 --- a/src/typings/legalEntityManagement/capabilitySettings.ts +++ b/src/typings/legalEntityManagement/capabilitySettings.ts @@ -26,7 +26,7 @@ export class CapabilitySettings { * The period when the rule conditions apply. */ 'interval'?: CapabilitySettings.IntervalEnum; - 'maxAmount'?: Amount; + 'maxAmount'?: Amount | null; static discriminator: string | undefined = undefined; @@ -54,7 +54,7 @@ export class CapabilitySettings { { "name": "maxAmount", "baseName": "maxAmount", - "type": "Amount" + "type": "Amount | null" } ]; static getAttributeTypeMap() { diff --git a/src/typings/legalEntityManagement/document.ts b/src/typings/legalEntityManagement/document.ts index d6a463792..e4f09cab8 100644 --- a/src/typings/legalEntityManagement/document.ts +++ b/src/typings/legalEntityManagement/document.ts @@ -11,7 +11,7 @@ import { Attachment } from './attachment'; import { OwnerEntity } from './ownerEntity'; export class Document { - 'attachment'?: Attachment; + 'attachment'?: Attachment | null; /** * Array that contains the document. The array supports multiple attachments for uploading different sides or pages of a document. */ @@ -58,7 +58,7 @@ export class Document { * The number in the document. */ 'number'?: string; - 'owner'?: OwnerEntity; + 'owner'?: OwnerEntity | null; /** * Type of document, used when providing an ID number or uploading a document. The possible values depend on the legal entity type. * For **organization**, the `type` values can be **proofOfAddress**, **registrationDocument**, **vatDocument**, **proofOfOrganizationTaxInfo**, **proofOfOwnership**, **proofOfIndustry**, **proofOfSignatory**, or **proofOfFundingOrWealthSource**. * For **individual**, the `type` values can be **identityCard**, **driversLicense**, **passport**, **liveSelfie**, **proofOfNationalIdNumber**, **proofOfResidency**, **proofOfIndustry**, **proofOfIndividualTaxId**, **proofOfFundingOrWealthSource** or **proofOfRelationship**. * For **soleProprietorship**, the `type` values can be **constitutionalDocument**, **proofOfAddress**, or **proofOfIndustry**. * For **trust**, the `type` value is **constitutionalDocument**. * For **unincorporatedPartnership**, the `type` value is **constitutionalDocument**. * Use **bankStatement** to upload documents for a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). */ @@ -70,7 +70,7 @@ export class Document { { "name": "attachment", "baseName": "attachment", - "type": "Attachment" + "type": "Attachment | null" }, { "name": "attachments", @@ -125,7 +125,7 @@ export class Document { { "name": "owner", "baseName": "owner", - "type": "OwnerEntity" + "type": "OwnerEntity | null" }, { "name": "type", diff --git a/src/typings/legalEntityManagement/individual.ts b/src/typings/legalEntityManagement/individual.ts index fd7e59710..373ebd48f 100644 --- a/src/typings/legalEntityManagement/individual.ts +++ b/src/typings/legalEntityManagement/individual.ts @@ -16,24 +16,24 @@ import { TaxInformation } from './taxInformation'; import { WebData } from './webData'; export class Individual { - 'birthData'?: BirthData; + 'birthData'?: BirthData | null; /** * The email address of the legal entity. */ 'email'?: string; - 'identificationData'?: IdentificationData; + 'identificationData'?: IdentificationData | null; 'name': Name; /** * The individual\'s nationality. */ 'nationality'?: string; - 'phone'?: PhoneNumber; + 'phone'?: PhoneNumber | null; 'residentialAddress': Address; /** * The tax information of the individual. */ 'taxInformation'?: Array; - 'webData'?: WebData; + 'webData'?: WebData | null; static discriminator: string | undefined = undefined; @@ -41,7 +41,7 @@ export class Individual { { "name": "birthData", "baseName": "birthData", - "type": "BirthData" + "type": "BirthData | null" }, { "name": "email", @@ -51,7 +51,7 @@ export class Individual { { "name": "identificationData", "baseName": "identificationData", - "type": "IdentificationData" + "type": "IdentificationData | null" }, { "name": "name", @@ -66,7 +66,7 @@ export class Individual { { "name": "phone", "baseName": "phone", - "type": "PhoneNumber" + "type": "PhoneNumber | null" }, { "name": "residentialAddress", @@ -81,7 +81,7 @@ export class Individual { { "name": "webData", "baseName": "webData", - "type": "WebData" + "type": "WebData | null" } ]; static getAttributeTypeMap() { diff --git a/src/typings/legalEntityManagement/legalEntity.ts b/src/typings/legalEntityManagement/legalEntity.ts index 7149b044d..839d1dbea 100644 --- a/src/typings/legalEntityManagement/legalEntity.ts +++ b/src/typings/legalEntityManagement/legalEntity.ts @@ -44,8 +44,8 @@ export class LegalEntity { * The unique identifier of the legal entity. */ 'id': string; - 'individual'?: Individual; - 'organization'?: Organization; + 'individual'?: Individual | null; + 'organization'?: Organization | null; /** * List of verification errors related to capabilities for the legal entity. */ @@ -54,17 +54,17 @@ export class LegalEntity { * Your reference for the legal entity, maximum 150 characters. */ 'reference'?: string; - 'soleProprietorship'?: SoleProprietorship; + 'soleProprietorship'?: SoleProprietorship | null; /** * List of transfer instruments that the legal entity owns. */ 'transferInstruments'?: Array; - 'trust'?: Trust; + 'trust'?: Trust | null; /** * The type of legal entity. Possible values: **individual**, **organization**, **soleProprietorship**, or **trust**. */ 'type'?: LegalEntity.TypeEnum; - 'unincorporatedPartnership'?: UnincorporatedPartnership; + 'unincorporatedPartnership'?: UnincorporatedPartnership | null; /** * List of verification deadlines and the capabilities that will be disallowed if verification errors are not resolved. */ @@ -105,12 +105,12 @@ export class LegalEntity { { "name": "individual", "baseName": "individual", - "type": "Individual" + "type": "Individual | null" }, { "name": "organization", "baseName": "organization", - "type": "Organization" + "type": "Organization | null" }, { "name": "problems", @@ -125,7 +125,7 @@ export class LegalEntity { { "name": "soleProprietorship", "baseName": "soleProprietorship", - "type": "SoleProprietorship" + "type": "SoleProprietorship | null" }, { "name": "transferInstruments", @@ -135,7 +135,7 @@ export class LegalEntity { { "name": "trust", "baseName": "trust", - "type": "Trust" + "type": "Trust | null" }, { "name": "type", @@ -145,7 +145,7 @@ export class LegalEntity { { "name": "unincorporatedPartnership", "baseName": "unincorporatedPartnership", - "type": "UnincorporatedPartnership" + "type": "UnincorporatedPartnership | null" }, { "name": "verificationDeadlines", diff --git a/src/typings/legalEntityManagement/legalEntityCapability.ts b/src/typings/legalEntityManagement/legalEntityCapability.ts index 23aca8bca..ca818f750 100644 --- a/src/typings/legalEntityManagement/legalEntityCapability.ts +++ b/src/typings/legalEntityManagement/legalEntityCapability.ts @@ -19,7 +19,7 @@ export class LegalEntityCapability { * The capability level that is allowed for the legal entity. Possible values: **notApplicable**, **low**, **medium**, **high**. */ 'allowedLevel'?: LegalEntityCapability.AllowedLevelEnum; - 'allowedSettings'?: CapabilitySettings; + 'allowedSettings'?: CapabilitySettings | null; /** * Indicates whether the capability is requested. To check whether the legal entity is permitted to use the capability, refer to the `allowed` field. */ @@ -28,7 +28,7 @@ export class LegalEntityCapability { * The requested level of the capability. Some capabilities, such as those used in [card issuing](https://docs.adyen.com/issuing/add-capabilities#capability-levels), have different levels. Levels increase the capability, but also require additional checks and increased monitoring. Possible values: **notApplicable**, **low**, **medium**, **high**. */ 'requestedLevel'?: LegalEntityCapability.RequestedLevelEnum; - 'requestedSettings'?: CapabilitySettings; + 'requestedSettings'?: CapabilitySettings | null; /** * The capability status of transfer instruments associated with the legal entity. */ @@ -54,7 +54,7 @@ export class LegalEntityCapability { { "name": "allowedSettings", "baseName": "allowedSettings", - "type": "CapabilitySettings" + "type": "CapabilitySettings | null" }, { "name": "requested", @@ -69,7 +69,7 @@ export class LegalEntityCapability { { "name": "requestedSettings", "baseName": "requestedSettings", - "type": "CapabilitySettings" + "type": "CapabilitySettings | null" }, { "name": "transferInstruments", diff --git a/src/typings/legalEntityManagement/legalEntityInfo.ts b/src/typings/legalEntityManagement/legalEntityInfo.ts index 46b000f8f..86b2066d4 100644 --- a/src/typings/legalEntityManagement/legalEntityInfo.ts +++ b/src/typings/legalEntityManagement/legalEntityInfo.ts @@ -24,19 +24,19 @@ export class LegalEntityInfo { * List of legal entities associated with the current legal entity. For example, ultimate beneficial owners associated with an organization through ownership or control, or as signatories. */ 'entityAssociations'?: Array; - 'individual'?: Individual; - 'organization'?: Organization; + 'individual'?: Individual | null; + 'organization'?: Organization | null; /** * Your reference for the legal entity, maximum 150 characters. */ 'reference'?: string; - 'soleProprietorship'?: SoleProprietorship; - 'trust'?: Trust; + 'soleProprietorship'?: SoleProprietorship | null; + 'trust'?: Trust | null; /** * The type of legal entity. Possible values: **individual**, **organization**, **soleProprietorship**, or **trust**. */ 'type'?: LegalEntityInfo.TypeEnum; - 'unincorporatedPartnership'?: UnincorporatedPartnership; + 'unincorporatedPartnership'?: UnincorporatedPartnership | null; /** * A key-value pair that specifies the verification process for a legal entity. Set to **upfront** for upfront verification for [marketplaces](https://docs.adyen.com/marketplaces/verification-overview/verification-types/#upfront-verification). */ @@ -58,12 +58,12 @@ export class LegalEntityInfo { { "name": "individual", "baseName": "individual", - "type": "Individual" + "type": "Individual | null" }, { "name": "organization", "baseName": "organization", - "type": "Organization" + "type": "Organization | null" }, { "name": "reference", @@ -73,12 +73,12 @@ export class LegalEntityInfo { { "name": "soleProprietorship", "baseName": "soleProprietorship", - "type": "SoleProprietorship" + "type": "SoleProprietorship | null" }, { "name": "trust", "baseName": "trust", - "type": "Trust" + "type": "Trust | null" }, { "name": "type", @@ -88,7 +88,7 @@ export class LegalEntityInfo { { "name": "unincorporatedPartnership", "baseName": "unincorporatedPartnership", - "type": "UnincorporatedPartnership" + "type": "UnincorporatedPartnership | null" }, { "name": "verificationPlan", diff --git a/src/typings/legalEntityManagement/legalEntityInfoRequiredType.ts b/src/typings/legalEntityManagement/legalEntityInfoRequiredType.ts index d52a430fb..86b414dca 100644 --- a/src/typings/legalEntityManagement/legalEntityInfoRequiredType.ts +++ b/src/typings/legalEntityManagement/legalEntityInfoRequiredType.ts @@ -24,19 +24,19 @@ export class LegalEntityInfoRequiredType { * List of legal entities associated with the current legal entity. For example, ultimate beneficial owners associated with an organization through ownership or control, or as signatories. */ 'entityAssociations'?: Array; - 'individual'?: Individual; - 'organization'?: Organization; + 'individual'?: Individual | null; + 'organization'?: Organization | null; /** * Your reference for the legal entity, maximum 150 characters. */ 'reference'?: string; - 'soleProprietorship'?: SoleProprietorship; - 'trust'?: Trust; + 'soleProprietorship'?: SoleProprietorship | null; + 'trust'?: Trust | null; /** * The type of legal entity. Possible values: **individual**, **organization**, **soleProprietorship**, or **trust**. */ 'type': LegalEntityInfoRequiredType.TypeEnum; - 'unincorporatedPartnership'?: UnincorporatedPartnership; + 'unincorporatedPartnership'?: UnincorporatedPartnership | null; /** * A key-value pair that specifies the verification process for a legal entity. Set to **upfront** for upfront verification for [marketplaces](https://docs.adyen.com/marketplaces/verification-overview/verification-types/#upfront-verification). */ @@ -58,12 +58,12 @@ export class LegalEntityInfoRequiredType { { "name": "individual", "baseName": "individual", - "type": "Individual" + "type": "Individual | null" }, { "name": "organization", "baseName": "organization", - "type": "Organization" + "type": "Organization | null" }, { "name": "reference", @@ -73,12 +73,12 @@ export class LegalEntityInfoRequiredType { { "name": "soleProprietorship", "baseName": "soleProprietorship", - "type": "SoleProprietorship" + "type": "SoleProprietorship | null" }, { "name": "trust", "baseName": "trust", - "type": "Trust" + "type": "Trust | null" }, { "name": "type", @@ -88,7 +88,7 @@ export class LegalEntityInfoRequiredType { { "name": "unincorporatedPartnership", "baseName": "unincorporatedPartnership", - "type": "UnincorporatedPartnership" + "type": "UnincorporatedPartnership | null" }, { "name": "verificationPlan", diff --git a/src/typings/legalEntityManagement/numberAndBicAccountIdentification.ts b/src/typings/legalEntityManagement/numberAndBicAccountIdentification.ts index bb604a2bb..283424e68 100644 --- a/src/typings/legalEntityManagement/numberAndBicAccountIdentification.ts +++ b/src/typings/legalEntityManagement/numberAndBicAccountIdentification.ts @@ -14,7 +14,7 @@ export class NumberAndBicAccountIdentification { * The bank account number, without separators or whitespace. The length and format depends on the bank or country. */ 'accountNumber': string; - 'additionalBankIdentification'?: AdditionalBankIdentification; + 'additionalBankIdentification'?: AdditionalBankIdentification | null; /** * The bank\'s 8- or 11-character BIC or SWIFT code. */ @@ -35,7 +35,7 @@ export class NumberAndBicAccountIdentification { { "name": "additionalBankIdentification", "baseName": "additionalBankIdentification", - "type": "AdditionalBankIdentification" + "type": "AdditionalBankIdentification | null" }, { "name": "bic", diff --git a/src/typings/legalEntityManagement/onboardingLinkInfo.ts b/src/typings/legalEntityManagement/onboardingLinkInfo.ts index 615c6d8aa..d69bac09b 100644 --- a/src/typings/legalEntityManagement/onboardingLinkInfo.ts +++ b/src/typings/legalEntityManagement/onboardingLinkInfo.ts @@ -18,7 +18,7 @@ export class OnboardingLinkInfo { * The URL where the user is redirected after they complete hosted onboarding. */ 'redirectUrl'?: string; - 'settings'?: OnboardingLinkSettings; + 'settings'?: OnboardingLinkSettings | null; /** * The unique identifier of the hosted onboarding theme. */ @@ -40,7 +40,7 @@ export class OnboardingLinkInfo { { "name": "settings", "baseName": "settings", - "type": "OnboardingLinkSettings" + "type": "OnboardingLinkSettings | null" }, { "name": "themeId", diff --git a/src/typings/legalEntityManagement/organization.ts b/src/typings/legalEntityManagement/organization.ts index e64e4ce9a..75d8f22b2 100644 --- a/src/typings/legalEntityManagement/organization.ts +++ b/src/typings/legalEntityManagement/organization.ts @@ -39,19 +39,19 @@ export class Organization { * The organization\'s legal name. */ 'legalName': string; - 'phone'?: PhoneNumber; - 'principalPlaceOfBusiness'?: Address; + 'phone'?: PhoneNumber | null; + 'principalPlaceOfBusiness'?: Address | null; 'registeredAddress': Address; /** * The organization\'s registration number. */ 'registrationNumber'?: string; - 'stockData'?: StockData; + 'stockData'?: StockData | null; /** * The tax information of the organization. */ 'taxInformation'?: Array; - 'taxReportingClassification'?: TaxReportingClassification; + 'taxReportingClassification'?: TaxReportingClassification | null; /** * Type of organization. Possible values: **associationIncorporated**, **governmentalOrganization**, **listedPublicCompany**, **nonProfit**, **partnershipIncorporated**, **privateCompany**. */ @@ -64,7 +64,7 @@ export class Organization { * The organization\'s VAT number. */ 'vatNumber'?: string; - 'webData'?: WebData; + 'webData'?: WebData | null; static discriminator: string | undefined = undefined; @@ -102,12 +102,12 @@ export class Organization { { "name": "phone", "baseName": "phone", - "type": "PhoneNumber" + "type": "PhoneNumber | null" }, { "name": "principalPlaceOfBusiness", "baseName": "principalPlaceOfBusiness", - "type": "Address" + "type": "Address | null" }, { "name": "registeredAddress", @@ -122,7 +122,7 @@ export class Organization { { "name": "stockData", "baseName": "stockData", - "type": "StockData" + "type": "StockData | null" }, { "name": "taxInformation", @@ -132,7 +132,7 @@ export class Organization { { "name": "taxReportingClassification", "baseName": "taxReportingClassification", - "type": "TaxReportingClassification" + "type": "TaxReportingClassification | null" }, { "name": "type", @@ -152,7 +152,7 @@ export class Organization { { "name": "webData", "baseName": "webData", - "type": "WebData" + "type": "WebData | null" } ]; static getAttributeTypeMap() { diff --git a/src/typings/legalEntityManagement/soleProprietorship.ts b/src/typings/legalEntityManagement/soleProprietorship.ts index 50a8116ca..1b234bd41 100644 --- a/src/typings/legalEntityManagement/soleProprietorship.ts +++ b/src/typings/legalEntityManagement/soleProprietorship.ts @@ -27,7 +27,7 @@ export class SoleProprietorship { * The legal name. */ 'name': string; - 'principalPlaceOfBusiness'?: Address; + 'principalPlaceOfBusiness'?: Address | null; 'registeredAddress': Address; /** * The registration number. @@ -76,7 +76,7 @@ export class SoleProprietorship { { "name": "principalPlaceOfBusiness", "baseName": "principalPlaceOfBusiness", - "type": "Address" + "type": "Address | null" }, { "name": "registeredAddress", diff --git a/src/typings/legalEntityManagement/trust.ts b/src/typings/legalEntityManagement/trust.ts index 5fd791c3a..7043e0568 100644 --- a/src/typings/legalEntityManagement/trust.ts +++ b/src/typings/legalEntityManagement/trust.ts @@ -32,7 +32,7 @@ export class Trust { * The legal name. */ 'name': string; - 'principalPlaceOfBusiness'?: Address; + 'principalPlaceOfBusiness'?: Address | null; 'registeredAddress': Address; /** * The registration number. @@ -90,7 +90,7 @@ export class Trust { { "name": "principalPlaceOfBusiness", "baseName": "principalPlaceOfBusiness", - "type": "Address" + "type": "Address | null" }, { "name": "registeredAddress", diff --git a/src/typings/legalEntityManagement/unincorporatedPartnership.ts b/src/typings/legalEntityManagement/unincorporatedPartnership.ts index e0ae02361..d37061c6f 100644 --- a/src/typings/legalEntityManagement/unincorporatedPartnership.ts +++ b/src/typings/legalEntityManagement/unincorporatedPartnership.ts @@ -31,7 +31,7 @@ export class UnincorporatedPartnership { * The legal name. */ 'name': string; - 'principalPlaceOfBusiness'?: Address; + 'principalPlaceOfBusiness'?: Address | null; 'registeredAddress': Address; /** * The registration number. @@ -85,7 +85,7 @@ export class UnincorporatedPartnership { { "name": "principalPlaceOfBusiness", "baseName": "principalPlaceOfBusiness", - "type": "Address" + "type": "Address | null" }, { "name": "registeredAddress", diff --git a/src/typings/management/accelInfo.ts b/src/typings/management/accelInfo.ts index 5fc9ccc6d..3ddac8149 100644 --- a/src/typings/management/accelInfo.ts +++ b/src/typings/management/accelInfo.ts @@ -14,7 +14,7 @@ export class AccelInfo { * The type of transactions processed over this payment method. Allowed values: - **pos** for in-person payments. - **billpay** for subscription payments, both the initial payment and the later recurring payments. These transactions have `recurringProcessingModel` **Subscription**. - **ecom** for all other card not present transactions. This includes non-recurring transactions and transactions with `recurringProcessingModel` **CardOnFile** or **UnscheduledCardOnFile**. */ 'processingType': AccelInfo.ProcessingTypeEnum; - 'transactionDescription'?: TransactionDescriptionInfo; + 'transactionDescription'?: TransactionDescriptionInfo | null; static discriminator: string | undefined = undefined; @@ -27,7 +27,7 @@ export class AccelInfo { { "name": "transactionDescription", "baseName": "transactionDescription", - "type": "TransactionDescriptionInfo" + "type": "TransactionDescriptionInfo | null" } ]; static getAttributeTypeMap() { diff --git a/src/typings/management/allowedOrigin.ts b/src/typings/management/allowedOrigin.ts index c269b9dad..b16a7f1ba 100644 --- a/src/typings/management/allowedOrigin.ts +++ b/src/typings/management/allowedOrigin.ts @@ -10,7 +10,7 @@ import { Links } from './links'; export class AllowedOrigin { - '_links'?: Links; + '_links'?: Links | null; /** * Domain of the allowed origin. */ @@ -26,7 +26,7 @@ export class AllowedOrigin { { "name": "_links", "baseName": "_links", - "type": "Links" + "type": "Links | null" }, { "name": "domain", diff --git a/src/typings/management/apiCredential.ts b/src/typings/management/apiCredential.ts index 739345d7e..be57a362c 100644 --- a/src/typings/management/apiCredential.ts +++ b/src/typings/management/apiCredential.ts @@ -11,7 +11,7 @@ import { AllowedOrigin } from './allowedOrigin'; import { ApiCredentialLinks } from './apiCredentialLinks'; export class ApiCredential { - '_links'?: ApiCredentialLinks; + '_links'?: ApiCredentialLinks | null; /** * Indicates if the API credential is enabled. Must be set to **true** to use the credential in your integration. */ @@ -51,7 +51,7 @@ export class ApiCredential { { "name": "_links", "baseName": "_links", - "type": "ApiCredentialLinks" + "type": "ApiCredentialLinks | null" }, { "name": "active", diff --git a/src/typings/management/apiCredentialLinks.ts b/src/typings/management/apiCredentialLinks.ts index c4a0dbf20..e45c2b6ea 100644 --- a/src/typings/management/apiCredentialLinks.ts +++ b/src/typings/management/apiCredentialLinks.ts @@ -10,11 +10,11 @@ import { LinksElement } from './linksElement'; export class ApiCredentialLinks { - 'allowedOrigins'?: LinksElement; - 'company'?: LinksElement; - 'generateApiKey'?: LinksElement; - 'generateClientKey'?: LinksElement; - 'merchant'?: LinksElement; + 'allowedOrigins'?: LinksElement | null; + 'company'?: LinksElement | null; + 'generateApiKey'?: LinksElement | null; + 'generateClientKey'?: LinksElement | null; + 'merchant'?: LinksElement | null; 'self': LinksElement; static discriminator: string | undefined = undefined; @@ -23,27 +23,27 @@ export class ApiCredentialLinks { { "name": "allowedOrigins", "baseName": "allowedOrigins", - "type": "LinksElement" + "type": "LinksElement | null" }, { "name": "company", "baseName": "company", - "type": "LinksElement" + "type": "LinksElement | null" }, { "name": "generateApiKey", "baseName": "generateApiKey", - "type": "LinksElement" + "type": "LinksElement | null" }, { "name": "generateClientKey", "baseName": "generateClientKey", - "type": "LinksElement" + "type": "LinksElement | null" }, { "name": "merchant", "baseName": "merchant", - "type": "LinksElement" + "type": "LinksElement | null" }, { "name": "self", diff --git a/src/typings/management/billingEntity.ts b/src/typings/management/billingEntity.ts index 7b2514f31..1f2d1c1b7 100644 --- a/src/typings/management/billingEntity.ts +++ b/src/typings/management/billingEntity.ts @@ -10,7 +10,7 @@ import { Address } from './address'; export class BillingEntity { - 'address'?: Address; + 'address'?: Address | null; /** * The email address of the billing entity. */ @@ -34,7 +34,7 @@ export class BillingEntity { { "name": "address", "baseName": "address", - "type": "Address" + "type": "Address | null" }, { "name": "email", diff --git a/src/typings/management/cartesBancairesInfo.ts b/src/typings/management/cartesBancairesInfo.ts index c56012ba8..800370114 100644 --- a/src/typings/management/cartesBancairesInfo.ts +++ b/src/typings/management/cartesBancairesInfo.ts @@ -14,7 +14,7 @@ export class CartesBancairesInfo { * Cartes Bancaires SIRET. Format: 14 digits. */ 'siret': string; - 'transactionDescription'?: TransactionDescriptionInfo; + 'transactionDescription'?: TransactionDescriptionInfo | null; static discriminator: string | undefined = undefined; @@ -27,7 +27,7 @@ export class CartesBancairesInfo { { "name": "transactionDescription", "baseName": "transactionDescription", - "type": "TransactionDescriptionInfo" + "type": "TransactionDescriptionInfo | null" } ]; static getAttributeTypeMap() { diff --git a/src/typings/management/company.ts b/src/typings/management/company.ts index 500a0abe1..f6e418aec 100644 --- a/src/typings/management/company.ts +++ b/src/typings/management/company.ts @@ -11,7 +11,7 @@ import { CompanyLinks } from './companyLinks'; import { DataCenter } from './dataCenter'; export class Company { - '_links'?: CompanyLinks; + '_links'?: CompanyLinks | null; /** * List of available data centers. Adyen has several data centers around the world.In the URL that you use for making API requests, we recommend you use the live URL prefix from the data center closest to your shoppers. */ @@ -43,7 +43,7 @@ export class Company { { "name": "_links", "baseName": "_links", - "type": "CompanyLinks" + "type": "CompanyLinks | null" }, { "name": "dataCenters", diff --git a/src/typings/management/companyApiCredential.ts b/src/typings/management/companyApiCredential.ts index aa31c699f..c998a3e90 100644 --- a/src/typings/management/companyApiCredential.ts +++ b/src/typings/management/companyApiCredential.ts @@ -11,7 +11,7 @@ import { AllowedOrigin } from './allowedOrigin'; import { ApiCredentialLinks } from './apiCredentialLinks'; export class CompanyApiCredential { - '_links'?: ApiCredentialLinks; + '_links'?: ApiCredentialLinks | null; /** * Indicates if the API credential is enabled. Must be set to **true** to use the credential in your integration. */ @@ -55,7 +55,7 @@ export class CompanyApiCredential { { "name": "_links", "baseName": "_links", - "type": "ApiCredentialLinks" + "type": "ApiCredentialLinks | null" }, { "name": "active", diff --git a/src/typings/management/companyLinks.ts b/src/typings/management/companyLinks.ts index 4160b4223..003248315 100644 --- a/src/typings/management/companyLinks.ts +++ b/src/typings/management/companyLinks.ts @@ -10,10 +10,10 @@ import { LinksElement } from './linksElement'; export class CompanyLinks { - 'apiCredentials'?: LinksElement; + 'apiCredentials'?: LinksElement | null; 'self': LinksElement; - 'users'?: LinksElement; - 'webhooks'?: LinksElement; + 'users'?: LinksElement | null; + 'webhooks'?: LinksElement | null; static discriminator: string | undefined = undefined; @@ -21,7 +21,7 @@ export class CompanyLinks { { "name": "apiCredentials", "baseName": "apiCredentials", - "type": "LinksElement" + "type": "LinksElement | null" }, { "name": "self", @@ -31,12 +31,12 @@ export class CompanyLinks { { "name": "users", "baseName": "users", - "type": "LinksElement" + "type": "LinksElement | null" }, { "name": "webhooks", "baseName": "webhooks", - "type": "LinksElement" + "type": "LinksElement | null" } ]; static getAttributeTypeMap() { diff --git a/src/typings/management/companyUser.ts b/src/typings/management/companyUser.ts index e29ab9630..17b08e23c 100644 --- a/src/typings/management/companyUser.ts +++ b/src/typings/management/companyUser.ts @@ -11,7 +11,7 @@ import { Links } from './links'; import { Name } from './name'; export class CompanyUser { - '_links'?: Links; + '_links'?: Links | null; /** * The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) associated with this user. */ @@ -36,7 +36,7 @@ export class CompanyUser { * The unique identifier of the user. */ 'id': string; - 'name'?: Name; + 'name'?: Name | null; /** * The list of [roles](https://docs.adyen.com/account/user-roles) for this user. */ @@ -56,7 +56,7 @@ export class CompanyUser { { "name": "_links", "baseName": "_links", - "type": "Links" + "type": "Links | null" }, { "name": "accountGroups", @@ -91,7 +91,7 @@ export class CompanyUser { { "name": "name", "baseName": "name", - "type": "Name" + "type": "Name | null" }, { "name": "roles", diff --git a/src/typings/management/connectivity.ts b/src/typings/management/connectivity.ts index 47288cc7c..e172d6d33 100644 --- a/src/typings/management/connectivity.ts +++ b/src/typings/management/connectivity.ts @@ -14,7 +14,7 @@ export class Connectivity { * Indicates the status of the SIM card in the payment terminal. Can be updated and received only at terminal level, and only for models that support cellular connectivity. Possible values: * **ACTIVATED**: the SIM card is activated. Cellular connectivity may still need to be enabled on the terminal itself, in the **Network** settings. * **INVENTORY**: the SIM card is not activated. The terminal can\'t use cellular connectivity. */ 'simcardStatus'?: Connectivity.SimcardStatusEnum; - 'terminalIPAddressURL'?: EventUrl; + 'terminalIPAddressURL'?: EventUrl | null; static discriminator: string | undefined = undefined; @@ -27,7 +27,7 @@ export class Connectivity { { "name": "terminalIPAddressURL", "baseName": "terminalIPAddressURL", - "type": "EventUrl" + "type": "EventUrl | null" } ]; static getAttributeTypeMap() { diff --git a/src/typings/management/createAllowedOriginRequest.ts b/src/typings/management/createAllowedOriginRequest.ts index 6dd2a8a86..2fe0e9b13 100644 --- a/src/typings/management/createAllowedOriginRequest.ts +++ b/src/typings/management/createAllowedOriginRequest.ts @@ -10,7 +10,7 @@ import { Links } from './links'; export class CreateAllowedOriginRequest { - '_links'?: Links; + '_links'?: Links | null; /** * Domain of the allowed origin. */ @@ -26,7 +26,7 @@ export class CreateAllowedOriginRequest { { "name": "_links", "baseName": "_links", - "type": "Links" + "type": "Links | null" }, { "name": "domain", diff --git a/src/typings/management/createApiCredentialResponse.ts b/src/typings/management/createApiCredentialResponse.ts index e26d9dcc8..bbc0927d0 100644 --- a/src/typings/management/createApiCredentialResponse.ts +++ b/src/typings/management/createApiCredentialResponse.ts @@ -11,7 +11,7 @@ import { AllowedOrigin } from './allowedOrigin'; import { ApiCredentialLinks } from './apiCredentialLinks'; export class CreateApiCredentialResponse { - '_links'?: ApiCredentialLinks; + '_links'?: ApiCredentialLinks | null; /** * Indicates if the API credential is enabled. Must be set to **true** to use the credential in your integration. */ @@ -59,7 +59,7 @@ export class CreateApiCredentialResponse { { "name": "_links", "baseName": "_links", - "type": "ApiCredentialLinks" + "type": "ApiCredentialLinks | null" }, { "name": "active", diff --git a/src/typings/management/createCompanyApiCredentialResponse.ts b/src/typings/management/createCompanyApiCredentialResponse.ts index c9e7a2ece..0e9c27df8 100644 --- a/src/typings/management/createCompanyApiCredentialResponse.ts +++ b/src/typings/management/createCompanyApiCredentialResponse.ts @@ -11,7 +11,7 @@ import { AllowedOrigin } from './allowedOrigin'; import { ApiCredentialLinks } from './apiCredentialLinks'; export class CreateCompanyApiCredentialResponse { - '_links'?: ApiCredentialLinks; + '_links'?: ApiCredentialLinks | null; /** * Indicates if the API credential is enabled. Must be set to **true** to use the credential in your integration. */ @@ -63,7 +63,7 @@ export class CreateCompanyApiCredentialResponse { { "name": "_links", "baseName": "_links", - "type": "ApiCredentialLinks" + "type": "ApiCredentialLinks | null" }, { "name": "active", diff --git a/src/typings/management/createCompanyUserResponse.ts b/src/typings/management/createCompanyUserResponse.ts index 2a7b8d460..a6bf37299 100644 --- a/src/typings/management/createCompanyUserResponse.ts +++ b/src/typings/management/createCompanyUserResponse.ts @@ -11,7 +11,7 @@ import { Links } from './links'; import { Name } from './name'; export class CreateCompanyUserResponse { - '_links'?: Links; + '_links'?: Links | null; /** * The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) associated with this user. */ @@ -36,7 +36,7 @@ export class CreateCompanyUserResponse { * The unique identifier of the user. */ 'id': string; - 'name'?: Name; + 'name'?: Name | null; /** * The list of [roles](https://docs.adyen.com/account/user-roles) for this user. */ @@ -56,7 +56,7 @@ export class CreateCompanyUserResponse { { "name": "_links", "baseName": "_links", - "type": "Links" + "type": "Links | null" }, { "name": "accountGroups", @@ -91,7 +91,7 @@ export class CreateCompanyUserResponse { { "name": "name", "baseName": "name", - "type": "Name" + "type": "Name | null" }, { "name": "roles", diff --git a/src/typings/management/createCompanyWebhookRequest.ts b/src/typings/management/createCompanyWebhookRequest.ts index 2cda84c49..37da93706 100644 --- a/src/typings/management/createCompanyWebhookRequest.ts +++ b/src/typings/management/createCompanyWebhookRequest.ts @@ -26,7 +26,7 @@ export class CreateCompanyWebhookRequest { * Indicates if the webhook configuration is active. The field must be **true** for us to send webhooks about events related an account. */ 'active': boolean; - 'additionalSettings'?: AdditionalSettings; + 'additionalSettings'?: AdditionalSettings | null; /** * Format or protocol for receiving webhooks. Possible values: * **soap** * **http** * **json** */ @@ -98,7 +98,7 @@ export class CreateCompanyWebhookRequest { { "name": "additionalSettings", "baseName": "additionalSettings", - "type": "AdditionalSettings" + "type": "AdditionalSettings | null" }, { "name": "communicationFormat", diff --git a/src/typings/management/createMerchantWebhookRequest.ts b/src/typings/management/createMerchantWebhookRequest.ts index 2e918aa2c..ef509f7a6 100644 --- a/src/typings/management/createMerchantWebhookRequest.ts +++ b/src/typings/management/createMerchantWebhookRequest.ts @@ -26,7 +26,7 @@ export class CreateMerchantWebhookRequest { * Indicates if the webhook configuration is active. The field must be **true** for us to send webhooks about events related an account. */ 'active': boolean; - 'additionalSettings'?: AdditionalSettings; + 'additionalSettings'?: AdditionalSettings | null; /** * Format or protocol for receiving webhooks. Possible values: * **soap** * **http** * **json** */ @@ -90,7 +90,7 @@ export class CreateMerchantWebhookRequest { { "name": "additionalSettings", "baseName": "additionalSettings", - "type": "AdditionalSettings" + "type": "AdditionalSettings | null" }, { "name": "communicationFormat", diff --git a/src/typings/management/createUserResponse.ts b/src/typings/management/createUserResponse.ts index 933478a9f..d4c77ca15 100644 --- a/src/typings/management/createUserResponse.ts +++ b/src/typings/management/createUserResponse.ts @@ -11,7 +11,7 @@ import { Links } from './links'; import { Name } from './name'; export class CreateUserResponse { - '_links'?: Links; + '_links'?: Links | null; /** * The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) associated with this user. */ @@ -32,7 +32,7 @@ export class CreateUserResponse { * The unique identifier of the user. */ 'id': string; - 'name'?: Name; + 'name'?: Name | null; /** * The list of [roles](https://docs.adyen.com/account/user-roles) for this user. */ @@ -52,7 +52,7 @@ export class CreateUserResponse { { "name": "_links", "baseName": "_links", - "type": "Links" + "type": "Links | null" }, { "name": "accountGroups", @@ -82,7 +82,7 @@ export class CreateUserResponse { { "name": "name", "baseName": "name", - "type": "Name" + "type": "Name | null" }, { "name": "roles", diff --git a/src/typings/management/customNotification.ts b/src/typings/management/customNotification.ts index af320b46c..478e8af21 100644 --- a/src/typings/management/customNotification.ts +++ b/src/typings/management/customNotification.ts @@ -10,7 +10,7 @@ import { Amount } from './amount'; export class CustomNotification { - 'amount'?: Amount; + 'amount'?: Amount | null; /** * The event that caused the notification to be sent.Currently supported values: * **AUTHORISATION** * **CANCELLATION** * **REFUND** * **CAPTURE** * **REPORT_AVAILABLE** * **CHARGEBACK** * **REQUEST_FOR_INFORMATION** * **NOTIFICATION_OF_CHARGEBACK** * **NOTIFICATIONTEST** * **ORDER_OPENED** * **ORDER_CLOSED** * **CHARGEBACK_REVERSED** * **REFUNDED_REVERSED** * **REFUND_WITH_DATA** */ @@ -42,7 +42,7 @@ export class CustomNotification { { "name": "amount", "baseName": "amount", - "type": "Amount" + "type": "Amount | null" }, { "name": "eventCode", diff --git a/src/typings/management/dinersInfo.ts b/src/typings/management/dinersInfo.ts index 7ee55baa9..6f1557674 100644 --- a/src/typings/management/dinersInfo.ts +++ b/src/typings/management/dinersInfo.ts @@ -22,7 +22,7 @@ export class DinersInfo { * Specifies the service level (settlement type) of this payment method. Required for merchants operating in Japan. Possible values: * **noContract**: Adyen holds the contract with JCB. * **gatewayContract**: JCB receives the settlement and handles disputes, then pays out to you or your sub-merchant directly. */ 'serviceLevel'?: DinersInfo.ServiceLevelEnum; - 'transactionDescription'?: TransactionDescriptionInfo; + 'transactionDescription'?: TransactionDescriptionInfo | null; static discriminator: string | undefined = undefined; @@ -45,7 +45,7 @@ export class DinersInfo { { "name": "transactionDescription", "baseName": "transactionDescription", - "type": "TransactionDescriptionInfo" + "type": "TransactionDescriptionInfo | null" } ]; static getAttributeTypeMap() { diff --git a/src/typings/management/genericPmWithTdiInfo.ts b/src/typings/management/genericPmWithTdiInfo.ts index 5498b7f9a..6f7740b15 100644 --- a/src/typings/management/genericPmWithTdiInfo.ts +++ b/src/typings/management/genericPmWithTdiInfo.ts @@ -10,7 +10,7 @@ import { TransactionDescriptionInfo } from './transactionDescriptionInfo'; export class GenericPmWithTdiInfo { - 'transactionDescription'?: TransactionDescriptionInfo; + 'transactionDescription'?: TransactionDescriptionInfo | null; static discriminator: string | undefined = undefined; @@ -18,7 +18,7 @@ export class GenericPmWithTdiInfo { { "name": "transactionDescription", "baseName": "transactionDescription", - "type": "TransactionDescriptionInfo" + "type": "TransactionDescriptionInfo | null" } ]; static getAttributeTypeMap() { diff --git a/src/typings/management/jCBInfo.ts b/src/typings/management/jCBInfo.ts index 4c6149799..3bed28b53 100644 --- a/src/typings/management/jCBInfo.ts +++ b/src/typings/management/jCBInfo.ts @@ -22,7 +22,7 @@ export class JCBInfo { * Specifies the service level (settlement type) of this payment method. Required for merchants operating in Japan. Possible values: * **noContract**: Adyen holds the contract with JCB. * **gatewayContract**: JCB receives the settlement and handles disputes, then pays out to you or your sub-merchant directly. */ 'serviceLevel'?: JCBInfo.ServiceLevelEnum; - 'transactionDescription'?: TransactionDescriptionInfo; + 'transactionDescription'?: TransactionDescriptionInfo | null; static discriminator: string | undefined = undefined; @@ -45,7 +45,7 @@ export class JCBInfo { { "name": "transactionDescription", "baseName": "transactionDescription", - "type": "TransactionDescriptionInfo" + "type": "TransactionDescriptionInfo | null" } ]; static getAttributeTypeMap() { diff --git a/src/typings/management/listCompanyApiCredentialsResponse.ts b/src/typings/management/listCompanyApiCredentialsResponse.ts index ef56c7ef9..a8562ccde 100644 --- a/src/typings/management/listCompanyApiCredentialsResponse.ts +++ b/src/typings/management/listCompanyApiCredentialsResponse.ts @@ -11,7 +11,7 @@ import { CompanyApiCredential } from './companyApiCredential'; import { PaginationLinks } from './paginationLinks'; export class ListCompanyApiCredentialsResponse { - '_links'?: PaginationLinks; + '_links'?: PaginationLinks | null; /** * The list of API credentials. */ @@ -31,7 +31,7 @@ export class ListCompanyApiCredentialsResponse { { "name": "_links", "baseName": "_links", - "type": "PaginationLinks" + "type": "PaginationLinks | null" }, { "name": "data", diff --git a/src/typings/management/listCompanyResponse.ts b/src/typings/management/listCompanyResponse.ts index 7c5a2dea0..fe147ba47 100644 --- a/src/typings/management/listCompanyResponse.ts +++ b/src/typings/management/listCompanyResponse.ts @@ -11,7 +11,7 @@ import { Company } from './company'; import { PaginationLinks } from './paginationLinks'; export class ListCompanyResponse { - '_links'?: PaginationLinks; + '_links'?: PaginationLinks | null; /** * The list of companies. */ @@ -31,7 +31,7 @@ export class ListCompanyResponse { { "name": "_links", "baseName": "_links", - "type": "PaginationLinks" + "type": "PaginationLinks | null" }, { "name": "data", diff --git a/src/typings/management/listCompanyUsersResponse.ts b/src/typings/management/listCompanyUsersResponse.ts index bf5549c46..fed47c694 100644 --- a/src/typings/management/listCompanyUsersResponse.ts +++ b/src/typings/management/listCompanyUsersResponse.ts @@ -11,7 +11,7 @@ import { CompanyUser } from './companyUser'; import { PaginationLinks } from './paginationLinks'; export class ListCompanyUsersResponse { - '_links'?: PaginationLinks; + '_links'?: PaginationLinks | null; /** * The list of users. */ @@ -31,7 +31,7 @@ export class ListCompanyUsersResponse { { "name": "_links", "baseName": "_links", - "type": "PaginationLinks" + "type": "PaginationLinks | null" }, { "name": "data", diff --git a/src/typings/management/listMerchantApiCredentialsResponse.ts b/src/typings/management/listMerchantApiCredentialsResponse.ts index 60a7161a8..63d680a61 100644 --- a/src/typings/management/listMerchantApiCredentialsResponse.ts +++ b/src/typings/management/listMerchantApiCredentialsResponse.ts @@ -11,7 +11,7 @@ import { ApiCredential } from './apiCredential'; import { PaginationLinks } from './paginationLinks'; export class ListMerchantApiCredentialsResponse { - '_links'?: PaginationLinks; + '_links'?: PaginationLinks | null; /** * The list of API credentials. */ @@ -31,7 +31,7 @@ export class ListMerchantApiCredentialsResponse { { "name": "_links", "baseName": "_links", - "type": "PaginationLinks" + "type": "PaginationLinks | null" }, { "name": "data", diff --git a/src/typings/management/listMerchantResponse.ts b/src/typings/management/listMerchantResponse.ts index edbc26dc2..4ba57815e 100644 --- a/src/typings/management/listMerchantResponse.ts +++ b/src/typings/management/listMerchantResponse.ts @@ -11,7 +11,7 @@ import { Merchant } from './merchant'; import { PaginationLinks } from './paginationLinks'; export class ListMerchantResponse { - '_links'?: PaginationLinks; + '_links'?: PaginationLinks | null; /** * The list of merchant accounts. */ @@ -31,7 +31,7 @@ export class ListMerchantResponse { { "name": "_links", "baseName": "_links", - "type": "PaginationLinks" + "type": "PaginationLinks | null" }, { "name": "data", diff --git a/src/typings/management/listMerchantUsersResponse.ts b/src/typings/management/listMerchantUsersResponse.ts index 910932136..ca66e7c28 100644 --- a/src/typings/management/listMerchantUsersResponse.ts +++ b/src/typings/management/listMerchantUsersResponse.ts @@ -11,7 +11,7 @@ import { PaginationLinks } from './paginationLinks'; import { User } from './user'; export class ListMerchantUsersResponse { - '_links'?: PaginationLinks; + '_links'?: PaginationLinks | null; /** * The list of users. */ @@ -31,7 +31,7 @@ export class ListMerchantUsersResponse { { "name": "_links", "baseName": "_links", - "type": "PaginationLinks" + "type": "PaginationLinks | null" }, { "name": "data", diff --git a/src/typings/management/listStoresResponse.ts b/src/typings/management/listStoresResponse.ts index c192a427d..6032b593c 100644 --- a/src/typings/management/listStoresResponse.ts +++ b/src/typings/management/listStoresResponse.ts @@ -11,7 +11,7 @@ import { PaginationLinks } from './paginationLinks'; import { Store } from './store'; export class ListStoresResponse { - '_links'?: PaginationLinks; + '_links'?: PaginationLinks | null; /** * List of stores */ @@ -31,7 +31,7 @@ export class ListStoresResponse { { "name": "_links", "baseName": "_links", - "type": "PaginationLinks" + "type": "PaginationLinks | null" }, { "name": "data", diff --git a/src/typings/management/listTerminalsResponse.ts b/src/typings/management/listTerminalsResponse.ts index 396c30be9..7b6891962 100644 --- a/src/typings/management/listTerminalsResponse.ts +++ b/src/typings/management/listTerminalsResponse.ts @@ -11,7 +11,7 @@ import { PaginationLinks } from './paginationLinks'; import { Terminal } from './terminal'; export class ListTerminalsResponse { - '_links'?: PaginationLinks; + '_links'?: PaginationLinks | null; /** * The list of terminals and their details. */ @@ -31,7 +31,7 @@ export class ListTerminalsResponse { { "name": "_links", "baseName": "_links", - "type": "PaginationLinks" + "type": "PaginationLinks | null" }, { "name": "data", diff --git a/src/typings/management/listWebhooksResponse.ts b/src/typings/management/listWebhooksResponse.ts index 02701a1ed..a97480bb9 100644 --- a/src/typings/management/listWebhooksResponse.ts +++ b/src/typings/management/listWebhooksResponse.ts @@ -11,7 +11,7 @@ import { PaginationLinks } from './paginationLinks'; import { Webhook } from './webhook'; export class ListWebhooksResponse { - '_links'?: PaginationLinks; + '_links'?: PaginationLinks | null; /** * Reference to the account. */ @@ -35,7 +35,7 @@ export class ListWebhooksResponse { { "name": "_links", "baseName": "_links", - "type": "PaginationLinks" + "type": "PaginationLinks | null" }, { "name": "accountReference", diff --git a/src/typings/management/meApiCredential.ts b/src/typings/management/meApiCredential.ts index 652aa9b16..4fddb9d6b 100644 --- a/src/typings/management/meApiCredential.ts +++ b/src/typings/management/meApiCredential.ts @@ -11,7 +11,7 @@ import { AllowedOrigin } from './allowedOrigin'; import { ApiCredentialLinks } from './apiCredentialLinks'; export class MeApiCredential { - '_links'?: ApiCredentialLinks; + '_links'?: ApiCredentialLinks | null; /** * Indicates if the API credential is enabled. Must be set to **true** to use the credential in your integration. */ @@ -59,7 +59,7 @@ export class MeApiCredential { { "name": "_links", "baseName": "_links", - "type": "ApiCredentialLinks" + "type": "ApiCredentialLinks | null" }, { "name": "active", diff --git a/src/typings/management/merchant.ts b/src/typings/management/merchant.ts index 8466f121b..c4f13423c 100644 --- a/src/typings/management/merchant.ts +++ b/src/typings/management/merchant.ts @@ -11,7 +11,7 @@ import { DataCenter } from './dataCenter'; import { MerchantLinks } from './merchantLinks'; export class Merchant { - '_links'?: MerchantLinks; + '_links'?: MerchantLinks | null; /** * The [capture delay](https://docs.adyen.com/online-payments/capture#capture-delay) set for the merchant account. Possible values: * **Immediate** * **Manual** * Number of days from **1** to **29** */ @@ -71,7 +71,7 @@ export class Merchant { { "name": "_links", "baseName": "_links", - "type": "MerchantLinks" + "type": "MerchantLinks | null" }, { "name": "captureDelay", diff --git a/src/typings/management/merchantLinks.ts b/src/typings/management/merchantLinks.ts index dbb86fdf8..1ada791e1 100644 --- a/src/typings/management/merchantLinks.ts +++ b/src/typings/management/merchantLinks.ts @@ -10,10 +10,10 @@ import { LinksElement } from './linksElement'; export class MerchantLinks { - 'apiCredentials'?: LinksElement; + 'apiCredentials'?: LinksElement | null; 'self': LinksElement; - 'users'?: LinksElement; - 'webhooks'?: LinksElement; + 'users'?: LinksElement | null; + 'webhooks'?: LinksElement | null; static discriminator: string | undefined = undefined; @@ -21,7 +21,7 @@ export class MerchantLinks { { "name": "apiCredentials", "baseName": "apiCredentials", - "type": "LinksElement" + "type": "LinksElement | null" }, { "name": "self", @@ -31,12 +31,12 @@ export class MerchantLinks { { "name": "users", "baseName": "users", - "type": "LinksElement" + "type": "LinksElement | null" }, { "name": "webhooks", "baseName": "webhooks", - "type": "LinksElement" + "type": "LinksElement | null" } ]; static getAttributeTypeMap() { diff --git a/src/typings/management/nexo.ts b/src/typings/management/nexo.ts index 0dc4dd081..c9864f38e 100644 --- a/src/typings/management/nexo.ts +++ b/src/typings/management/nexo.ts @@ -13,9 +13,9 @@ import { Notification } from './notification'; import { NotificationUrl } from './notificationUrl'; export class Nexo { - 'displayUrls'?: NotificationUrl; - 'encryptionKey'?: Key; - 'eventUrls'?: EventUrl; + 'displayUrls'?: NotificationUrl | null; + 'encryptionKey'?: Key | null; + 'eventUrls'?: EventUrl | null; /** * One or more URLs to send event messages to when using Terminal API. * @@ -23,7 +23,7 @@ export class Nexo { * Use `eventUrls` instead. */ 'nexoEventUrls'?: Array; - 'notification'?: Notification; + 'notification'?: Notification | null; static discriminator: string | undefined = undefined; @@ -31,17 +31,17 @@ export class Nexo { { "name": "displayUrls", "baseName": "displayUrls", - "type": "NotificationUrl" + "type": "NotificationUrl | null" }, { "name": "encryptionKey", "baseName": "encryptionKey", - "type": "Key" + "type": "Key | null" }, { "name": "eventUrls", "baseName": "eventUrls", - "type": "EventUrl" + "type": "EventUrl | null" }, { "name": "nexoEventUrls", @@ -51,7 +51,7 @@ export class Nexo { { "name": "notification", "baseName": "notification", - "type": "Notification" + "type": "Notification | null" } ]; static getAttributeTypeMap() { diff --git a/src/typings/management/nyceInfo.ts b/src/typings/management/nyceInfo.ts index e3e9dfcdf..72bcd1f1e 100644 --- a/src/typings/management/nyceInfo.ts +++ b/src/typings/management/nyceInfo.ts @@ -14,7 +14,7 @@ export class NyceInfo { * The type of transactions processed over this payment method. Allowed values: - **pos** for in-person payments. - **billpay** for subscription payments, both the initial payment and the later recurring payments. These transactions have `recurringProcessingModel` **Subscription**. - **ecom** for all other card not present transactions. This includes non-recurring transactions and transactions with `recurringProcessingModel` **CardOnFile** or **UnscheduledCardOnFile**. */ 'processingType': NyceInfo.ProcessingTypeEnum; - 'transactionDescription'?: TransactionDescriptionInfo; + 'transactionDescription'?: TransactionDescriptionInfo | null; static discriminator: string | undefined = undefined; @@ -27,7 +27,7 @@ export class NyceInfo { { "name": "transactionDescription", "baseName": "transactionDescription", - "type": "TransactionDescriptionInfo" + "type": "TransactionDescriptionInfo | null" } ]; static getAttributeTypeMap() { diff --git a/src/typings/management/paginationLinks.ts b/src/typings/management/paginationLinks.ts index 055d535a4..e03974928 100644 --- a/src/typings/management/paginationLinks.ts +++ b/src/typings/management/paginationLinks.ts @@ -12,8 +12,8 @@ import { LinksElement } from './linksElement'; export class PaginationLinks { 'first': LinksElement; 'last': LinksElement; - 'next'?: LinksElement; - 'prev'?: LinksElement; + 'next'?: LinksElement | null; + 'prev'?: LinksElement | null; 'self': LinksElement; static discriminator: string | undefined = undefined; @@ -32,12 +32,12 @@ export class PaginationLinks { { "name": "next", "baseName": "next", - "type": "LinksElement" + "type": "LinksElement | null" }, { "name": "prev", "baseName": "prev", - "type": "LinksElement" + "type": "LinksElement | null" }, { "name": "self", diff --git a/src/typings/management/paymentMethod.ts b/src/typings/management/paymentMethod.ts index f22f4e05c..e7a65f0b2 100644 --- a/src/typings/management/paymentMethod.ts +++ b/src/typings/management/paymentMethod.ts @@ -36,26 +36,26 @@ import { WeChatPayInfo } from './weChatPayInfo'; import { WeChatPayPosInfo } from './weChatPayPosInfo'; export class PaymentMethod { - 'accel'?: AccelInfo; - 'afterpayTouch'?: AfterpayTouchInfo; + 'accel'?: AccelInfo | null; + 'afterpayTouch'?: AfterpayTouchInfo | null; /** * Indicates whether receiving payments is allowed. This value is set to **true** by Adyen after screening your merchant account. */ 'allowed'?: boolean; - 'amex'?: AmexInfo; - 'applePay'?: ApplePayInfo; - 'bcmc'?: BcmcInfo; + 'amex'?: AmexInfo | null; + 'applePay'?: ApplePayInfo | null; + 'bcmc'?: BcmcInfo | null; /** * The unique identifier of the business line. Required if you are a [platform model](https://docs.adyen.com/platforms). */ 'businessLineId'?: string; - 'cartesBancaires'?: CartesBancairesInfo; - 'clearpay'?: ClearpayInfo; + 'cartesBancaires'?: CartesBancairesInfo | null; + 'clearpay'?: ClearpayInfo | null; /** * The list of countries where a payment method is available. By default, all countries supported by the payment method. */ 'countries'?: Array; - 'cup'?: GenericPmWithTdiInfo; + 'cup'?: GenericPmWithTdiInfo | null; /** * The list of currencies that a payment method supports. By default, all currencies supported by the payment method. */ @@ -64,31 +64,31 @@ export class PaymentMethod { * The list of custom routing flags to route payment to the intended acquirer. */ 'customRoutingFlags'?: Array; - 'diners'?: DinersInfo; - 'discover'?: GenericPmWithTdiInfo; - 'eftpos_australia'?: GenericPmWithTdiInfo; + 'diners'?: DinersInfo | null; + 'discover'?: GenericPmWithTdiInfo | null; + 'eftpos_australia'?: GenericPmWithTdiInfo | null; /** * Indicates whether the payment method is enabled (**true**) or disabled (**false**). */ 'enabled'?: boolean; - 'giroPay'?: GiroPayInfo; - 'girocard'?: GenericPmWithTdiInfo; - 'googlePay'?: GooglePayInfo; + 'giroPay'?: GiroPayInfo | null; + 'girocard'?: GenericPmWithTdiInfo | null; + 'googlePay'?: GooglePayInfo | null; /** * The identifier of the resource. */ 'id': string; - 'ideal'?: GenericPmWithTdiInfo; - 'interac_card'?: GenericPmWithTdiInfo; - 'jcb'?: JCBInfo; - 'klarna'?: KlarnaInfo; - 'maestro'?: GenericPmWithTdiInfo; - 'mc'?: GenericPmWithTdiInfo; - 'mealVoucher_FR'?: MealVoucherFRInfo; - 'nyce'?: NyceInfo; - 'payme'?: PayMeInfo; - 'paypal'?: PayPalInfo; - 'pulse'?: PulseInfo; + 'ideal'?: GenericPmWithTdiInfo | null; + 'interac_card'?: GenericPmWithTdiInfo | null; + 'jcb'?: JCBInfo | null; + 'klarna'?: KlarnaInfo | null; + 'maestro'?: GenericPmWithTdiInfo | null; + 'mc'?: GenericPmWithTdiInfo | null; + 'mealVoucher_FR'?: MealVoucherFRInfo | null; + 'nyce'?: NyceInfo | null; + 'payme'?: PayMeInfo | null; + 'paypal'?: PayPalInfo | null; + 'pulse'?: PulseInfo | null; /** * Your reference for the payment method. Supported characters a-z, A-Z, 0-9. */ @@ -97,16 +97,16 @@ export class PaymentMethod { * The sales channel. */ 'shopperInteraction'?: string; - 'sodexo'?: SodexoInfo; - 'sofort'?: SofortInfo; - 'star'?: StarInfo; + 'sodexo'?: SodexoInfo | null; + 'sofort'?: SofortInfo | null; + 'star'?: StarInfo | null; /** * The unique identifier of the store for which to configure the payment method, if any. */ 'storeIds'?: Array; - 'swish'?: SwishInfo; - 'ticket'?: TicketInfo; - 'twint'?: TwintInfo; + 'swish'?: SwishInfo | null; + 'ticket'?: TicketInfo | null; + 'twint'?: TwintInfo | null; /** * Payment method [variant](https://docs.adyen.com/development-resources/paymentmethodvariant#management-api). */ @@ -115,10 +115,10 @@ export class PaymentMethod { * Payment method status. Possible values: * **valid** * **pending** * **invalid** * **rejected** */ 'verificationStatus'?: PaymentMethod.VerificationStatusEnum; - 'vipps'?: VippsInfo; - 'visa'?: GenericPmWithTdiInfo; - 'wechatpay'?: WeChatPayInfo; - 'wechatpay_pos'?: WeChatPayPosInfo; + 'vipps'?: VippsInfo | null; + 'visa'?: GenericPmWithTdiInfo | null; + 'wechatpay'?: WeChatPayInfo | null; + 'wechatpay_pos'?: WeChatPayPosInfo | null; static discriminator: string | undefined = undefined; @@ -126,12 +126,12 @@ export class PaymentMethod { { "name": "accel", "baseName": "accel", - "type": "AccelInfo" + "type": "AccelInfo | null" }, { "name": "afterpayTouch", "baseName": "afterpayTouch", - "type": "AfterpayTouchInfo" + "type": "AfterpayTouchInfo | null" }, { "name": "allowed", @@ -141,17 +141,17 @@ export class PaymentMethod { { "name": "amex", "baseName": "amex", - "type": "AmexInfo" + "type": "AmexInfo | null" }, { "name": "applePay", "baseName": "applePay", - "type": "ApplePayInfo" + "type": "ApplePayInfo | null" }, { "name": "bcmc", "baseName": "bcmc", - "type": "BcmcInfo" + "type": "BcmcInfo | null" }, { "name": "businessLineId", @@ -161,12 +161,12 @@ export class PaymentMethod { { "name": "cartesBancaires", "baseName": "cartesBancaires", - "type": "CartesBancairesInfo" + "type": "CartesBancairesInfo | null" }, { "name": "clearpay", "baseName": "clearpay", - "type": "ClearpayInfo" + "type": "ClearpayInfo | null" }, { "name": "countries", @@ -176,7 +176,7 @@ export class PaymentMethod { { "name": "cup", "baseName": "cup", - "type": "GenericPmWithTdiInfo" + "type": "GenericPmWithTdiInfo | null" }, { "name": "currencies", @@ -191,17 +191,17 @@ export class PaymentMethod { { "name": "diners", "baseName": "diners", - "type": "DinersInfo" + "type": "DinersInfo | null" }, { "name": "discover", "baseName": "discover", - "type": "GenericPmWithTdiInfo" + "type": "GenericPmWithTdiInfo | null" }, { "name": "eftpos_australia", "baseName": "eftpos_australia", - "type": "GenericPmWithTdiInfo" + "type": "GenericPmWithTdiInfo | null" }, { "name": "enabled", @@ -211,17 +211,17 @@ export class PaymentMethod { { "name": "giroPay", "baseName": "giroPay", - "type": "GiroPayInfo" + "type": "GiroPayInfo | null" }, { "name": "girocard", "baseName": "girocard", - "type": "GenericPmWithTdiInfo" + "type": "GenericPmWithTdiInfo | null" }, { "name": "googlePay", "baseName": "googlePay", - "type": "GooglePayInfo" + "type": "GooglePayInfo | null" }, { "name": "id", @@ -231,57 +231,57 @@ export class PaymentMethod { { "name": "ideal", "baseName": "ideal", - "type": "GenericPmWithTdiInfo" + "type": "GenericPmWithTdiInfo | null" }, { "name": "interac_card", "baseName": "interac_card", - "type": "GenericPmWithTdiInfo" + "type": "GenericPmWithTdiInfo | null" }, { "name": "jcb", "baseName": "jcb", - "type": "JCBInfo" + "type": "JCBInfo | null" }, { "name": "klarna", "baseName": "klarna", - "type": "KlarnaInfo" + "type": "KlarnaInfo | null" }, { "name": "maestro", "baseName": "maestro", - "type": "GenericPmWithTdiInfo" + "type": "GenericPmWithTdiInfo | null" }, { "name": "mc", "baseName": "mc", - "type": "GenericPmWithTdiInfo" + "type": "GenericPmWithTdiInfo | null" }, { "name": "mealVoucher_FR", "baseName": "mealVoucher_FR", - "type": "MealVoucherFRInfo" + "type": "MealVoucherFRInfo | null" }, { "name": "nyce", "baseName": "nyce", - "type": "NyceInfo" + "type": "NyceInfo | null" }, { "name": "payme", "baseName": "payme", - "type": "PayMeInfo" + "type": "PayMeInfo | null" }, { "name": "paypal", "baseName": "paypal", - "type": "PayPalInfo" + "type": "PayPalInfo | null" }, { "name": "pulse", "baseName": "pulse", - "type": "PulseInfo" + "type": "PulseInfo | null" }, { "name": "reference", @@ -296,17 +296,17 @@ export class PaymentMethod { { "name": "sodexo", "baseName": "sodexo", - "type": "SodexoInfo" + "type": "SodexoInfo | null" }, { "name": "sofort", "baseName": "sofort", - "type": "SofortInfo" + "type": "SofortInfo | null" }, { "name": "star", "baseName": "star", - "type": "StarInfo" + "type": "StarInfo | null" }, { "name": "storeIds", @@ -316,17 +316,17 @@ export class PaymentMethod { { "name": "swish", "baseName": "swish", - "type": "SwishInfo" + "type": "SwishInfo | null" }, { "name": "ticket", "baseName": "ticket", - "type": "TicketInfo" + "type": "TicketInfo | null" }, { "name": "twint", "baseName": "twint", - "type": "TwintInfo" + "type": "TwintInfo | null" }, { "name": "type", @@ -341,22 +341,22 @@ export class PaymentMethod { { "name": "vipps", "baseName": "vipps", - "type": "VippsInfo" + "type": "VippsInfo | null" }, { "name": "visa", "baseName": "visa", - "type": "GenericPmWithTdiInfo" + "type": "GenericPmWithTdiInfo | null" }, { "name": "wechatpay", "baseName": "wechatpay", - "type": "WeChatPayInfo" + "type": "WeChatPayInfo | null" }, { "name": "wechatpay_pos", "baseName": "wechatpay_pos", - "type": "WeChatPayPosInfo" + "type": "WeChatPayPosInfo | null" } ]; static getAttributeTypeMap() { diff --git a/src/typings/management/paymentMethodResponse.ts b/src/typings/management/paymentMethodResponse.ts index e6594d4f0..8af9d02e3 100644 --- a/src/typings/management/paymentMethodResponse.ts +++ b/src/typings/management/paymentMethodResponse.ts @@ -11,7 +11,7 @@ import { PaginationLinks } from './paginationLinks'; import { PaymentMethod } from './paymentMethod'; export class PaymentMethodResponse { - '_links'?: PaginationLinks; + '_links'?: PaginationLinks | null; /** * The list of supported payment methods and their details. */ @@ -35,7 +35,7 @@ export class PaymentMethodResponse { { "name": "_links", "baseName": "_links", - "type": "PaginationLinks" + "type": "PaginationLinks | null" }, { "name": "data", diff --git a/src/typings/management/paymentMethodSetupInfo.ts b/src/typings/management/paymentMethodSetupInfo.ts index 53a323fd8..94e48830b 100644 --- a/src/typings/management/paymentMethodSetupInfo.ts +++ b/src/typings/management/paymentMethodSetupInfo.ts @@ -36,22 +36,22 @@ import { WeChatPayInfo } from './weChatPayInfo'; import { WeChatPayPosInfo } from './weChatPayPosInfo'; export class PaymentMethodSetupInfo { - 'accel'?: AccelInfo; - 'afterpayTouch'?: AfterpayTouchInfo; - 'amex'?: AmexInfo; - 'applePay'?: ApplePayInfo; - 'bcmc'?: BcmcInfo; + 'accel'?: AccelInfo | null; + 'afterpayTouch'?: AfterpayTouchInfo | null; + 'amex'?: AmexInfo | null; + 'applePay'?: ApplePayInfo | null; + 'bcmc'?: BcmcInfo | null; /** * The unique identifier of the business line. Required if you are a [platform model](https://docs.adyen.com/platforms). */ 'businessLineId'?: string; - 'cartesBancaires'?: CartesBancairesInfo; - 'clearpay'?: ClearpayInfo; + 'cartesBancaires'?: CartesBancairesInfo | null; + 'clearpay'?: ClearpayInfo | null; /** * The list of countries where a payment method is available. By default, all countries supported by the payment method. */ 'countries'?: Array; - 'cup'?: GenericPmWithTdiInfo; + 'cup'?: GenericPmWithTdiInfo | null; /** * The list of currencies that a payment method supports. By default, all currencies supported by the payment method. */ @@ -60,23 +60,23 @@ export class PaymentMethodSetupInfo { * The list of custom routing flags to route payment to the intended acquirer. */ 'customRoutingFlags'?: Array; - 'diners'?: DinersInfo; - 'discover'?: GenericPmWithTdiInfo; - 'eftpos_australia'?: GenericPmWithTdiInfo; - 'giroPay'?: GiroPayInfo; - 'girocard'?: GenericPmWithTdiInfo; - 'googlePay'?: GooglePayInfo; - 'ideal'?: GenericPmWithTdiInfo; - 'interac_card'?: GenericPmWithTdiInfo; - 'jcb'?: JCBInfo; - 'klarna'?: KlarnaInfo; - 'maestro'?: GenericPmWithTdiInfo; - 'mc'?: GenericPmWithTdiInfo; - 'mealVoucher_FR'?: MealVoucherFRInfo; - 'nyce'?: NyceInfo; - 'payme'?: PayMeInfo; - 'paypal'?: PayPalInfo; - 'pulse'?: PulseInfo; + 'diners'?: DinersInfo | null; + 'discover'?: GenericPmWithTdiInfo | null; + 'eftpos_australia'?: GenericPmWithTdiInfo | null; + 'giroPay'?: GiroPayInfo | null; + 'girocard'?: GenericPmWithTdiInfo | null; + 'googlePay'?: GooglePayInfo | null; + 'ideal'?: GenericPmWithTdiInfo | null; + 'interac_card'?: GenericPmWithTdiInfo | null; + 'jcb'?: JCBInfo | null; + 'klarna'?: KlarnaInfo | null; + 'maestro'?: GenericPmWithTdiInfo | null; + 'mc'?: GenericPmWithTdiInfo | null; + 'mealVoucher_FR'?: MealVoucherFRInfo | null; + 'nyce'?: NyceInfo | null; + 'payme'?: PayMeInfo | null; + 'paypal'?: PayPalInfo | null; + 'pulse'?: PulseInfo | null; /** * Your reference for the payment method. Supported characters a-z, A-Z, 0-9. */ @@ -85,24 +85,24 @@ export class PaymentMethodSetupInfo { * The sales channel. Required if the merchant account does not have a sales channel. When you provide this field, it overrides the default sales channel set on the merchant account. Possible values: **eCommerce**, **pos**, **contAuth**, and **moto**. */ 'shopperInteraction'?: PaymentMethodSetupInfo.ShopperInteractionEnum; - 'sodexo'?: SodexoInfo; - 'sofort'?: SofortInfo; - 'star'?: StarInfo; + 'sodexo'?: SodexoInfo | null; + 'sofort'?: SofortInfo | null; + 'star'?: StarInfo | null; /** * The unique identifier of the store for which to configure the payment method, if any. */ 'storeIds'?: Array; - 'swish'?: SwishInfo; - 'ticket'?: TicketInfo; - 'twint'?: TwintInfo; + 'swish'?: SwishInfo | null; + 'ticket'?: TicketInfo | null; + 'twint'?: TwintInfo | null; /** * Payment method [variant](https://docs.adyen.com/development-resources/paymentmethodvariant#management-api). */ 'type': PaymentMethodSetupInfo.TypeEnum; - 'vipps'?: VippsInfo; - 'visa'?: GenericPmWithTdiInfo; - 'wechatpay'?: WeChatPayInfo; - 'wechatpay_pos'?: WeChatPayPosInfo; + 'vipps'?: VippsInfo | null; + 'visa'?: GenericPmWithTdiInfo | null; + 'wechatpay'?: WeChatPayInfo | null; + 'wechatpay_pos'?: WeChatPayPosInfo | null; static discriminator: string | undefined = undefined; @@ -110,27 +110,27 @@ export class PaymentMethodSetupInfo { { "name": "accel", "baseName": "accel", - "type": "AccelInfo" + "type": "AccelInfo | null" }, { "name": "afterpayTouch", "baseName": "afterpayTouch", - "type": "AfterpayTouchInfo" + "type": "AfterpayTouchInfo | null" }, { "name": "amex", "baseName": "amex", - "type": "AmexInfo" + "type": "AmexInfo | null" }, { "name": "applePay", "baseName": "applePay", - "type": "ApplePayInfo" + "type": "ApplePayInfo | null" }, { "name": "bcmc", "baseName": "bcmc", - "type": "BcmcInfo" + "type": "BcmcInfo | null" }, { "name": "businessLineId", @@ -140,12 +140,12 @@ export class PaymentMethodSetupInfo { { "name": "cartesBancaires", "baseName": "cartesBancaires", - "type": "CartesBancairesInfo" + "type": "CartesBancairesInfo | null" }, { "name": "clearpay", "baseName": "clearpay", - "type": "ClearpayInfo" + "type": "ClearpayInfo | null" }, { "name": "countries", @@ -155,7 +155,7 @@ export class PaymentMethodSetupInfo { { "name": "cup", "baseName": "cup", - "type": "GenericPmWithTdiInfo" + "type": "GenericPmWithTdiInfo | null" }, { "name": "currencies", @@ -170,87 +170,87 @@ export class PaymentMethodSetupInfo { { "name": "diners", "baseName": "diners", - "type": "DinersInfo" + "type": "DinersInfo | null" }, { "name": "discover", "baseName": "discover", - "type": "GenericPmWithTdiInfo" + "type": "GenericPmWithTdiInfo | null" }, { "name": "eftpos_australia", "baseName": "eftpos_australia", - "type": "GenericPmWithTdiInfo" + "type": "GenericPmWithTdiInfo | null" }, { "name": "giroPay", "baseName": "giroPay", - "type": "GiroPayInfo" + "type": "GiroPayInfo | null" }, { "name": "girocard", "baseName": "girocard", - "type": "GenericPmWithTdiInfo" + "type": "GenericPmWithTdiInfo | null" }, { "name": "googlePay", "baseName": "googlePay", - "type": "GooglePayInfo" + "type": "GooglePayInfo | null" }, { "name": "ideal", "baseName": "ideal", - "type": "GenericPmWithTdiInfo" + "type": "GenericPmWithTdiInfo | null" }, { "name": "interac_card", "baseName": "interac_card", - "type": "GenericPmWithTdiInfo" + "type": "GenericPmWithTdiInfo | null" }, { "name": "jcb", "baseName": "jcb", - "type": "JCBInfo" + "type": "JCBInfo | null" }, { "name": "klarna", "baseName": "klarna", - "type": "KlarnaInfo" + "type": "KlarnaInfo | null" }, { "name": "maestro", "baseName": "maestro", - "type": "GenericPmWithTdiInfo" + "type": "GenericPmWithTdiInfo | null" }, { "name": "mc", "baseName": "mc", - "type": "GenericPmWithTdiInfo" + "type": "GenericPmWithTdiInfo | null" }, { "name": "mealVoucher_FR", "baseName": "mealVoucher_FR", - "type": "MealVoucherFRInfo" + "type": "MealVoucherFRInfo | null" }, { "name": "nyce", "baseName": "nyce", - "type": "NyceInfo" + "type": "NyceInfo | null" }, { "name": "payme", "baseName": "payme", - "type": "PayMeInfo" + "type": "PayMeInfo | null" }, { "name": "paypal", "baseName": "paypal", - "type": "PayPalInfo" + "type": "PayPalInfo | null" }, { "name": "pulse", "baseName": "pulse", - "type": "PulseInfo" + "type": "PulseInfo | null" }, { "name": "reference", @@ -265,17 +265,17 @@ export class PaymentMethodSetupInfo { { "name": "sodexo", "baseName": "sodexo", - "type": "SodexoInfo" + "type": "SodexoInfo | null" }, { "name": "sofort", "baseName": "sofort", - "type": "SofortInfo" + "type": "SofortInfo | null" }, { "name": "star", "baseName": "star", - "type": "StarInfo" + "type": "StarInfo | null" }, { "name": "storeIds", @@ -285,17 +285,17 @@ export class PaymentMethodSetupInfo { { "name": "swish", "baseName": "swish", - "type": "SwishInfo" + "type": "SwishInfo | null" }, { "name": "ticket", "baseName": "ticket", - "type": "TicketInfo" + "type": "TicketInfo | null" }, { "name": "twint", "baseName": "twint", - "type": "TwintInfo" + "type": "TwintInfo | null" }, { "name": "type", @@ -305,22 +305,22 @@ export class PaymentMethodSetupInfo { { "name": "vipps", "baseName": "vipps", - "type": "VippsInfo" + "type": "VippsInfo | null" }, { "name": "visa", "baseName": "visa", - "type": "GenericPmWithTdiInfo" + "type": "GenericPmWithTdiInfo | null" }, { "name": "wechatpay", "baseName": "wechatpay", - "type": "WeChatPayInfo" + "type": "WeChatPayInfo | null" }, { "name": "wechatpay_pos", "baseName": "wechatpay_pos", - "type": "WeChatPayPosInfo" + "type": "WeChatPayPosInfo | null" } ]; static getAttributeTypeMap() { diff --git a/src/typings/management/profile.ts b/src/typings/management/profile.ts index c83b834e0..d80199577 100644 --- a/src/typings/management/profile.ts +++ b/src/typings/management/profile.ts @@ -33,9 +33,9 @@ export class Profile { * For `authType` **wpa-eap** or **wpa2-eap**. Possible values: **tls**, **peap**, **leap**, **fast** */ 'eap'?: string; - 'eapCaCert'?: any; - 'eapClientCert'?: any; - 'eapClientKey'?: any; + 'eapCaCert'?: any | null; + 'eapClientCert'?: any | null; + 'eapClientKey'?: any | null; /** * For `eap` **tls**. The password of the RSA key file, if that file is password-protected. */ @@ -44,7 +44,7 @@ export class Profile { * For `authType` **wpa-eap** or **wpa2-eap**. The EAP-PEAP username from your MS-CHAP account. Must match the configuration of your RADIUS server. */ 'eapIdentity'?: string; - 'eapIntermediateCert'?: any; + 'eapIntermediateCert'?: any | null; /** * For `eap` **peap**. The EAP-PEAP password from your MS-CHAP account. Must match the configuration of your RADIUS server. */ @@ -106,17 +106,17 @@ export class Profile { { "name": "eapCaCert", "baseName": "eapCaCert", - "type": "any" + "type": "any | null" }, { "name": "eapClientCert", "baseName": "eapClientCert", - "type": "any" + "type": "any | null" }, { "name": "eapClientKey", "baseName": "eapClientKey", - "type": "any" + "type": "any | null" }, { "name": "eapClientPwd", @@ -131,7 +131,7 @@ export class Profile { { "name": "eapIntermediateCert", "baseName": "eapIntermediateCert", - "type": "any" + "type": "any | null" }, { "name": "eapPwd", diff --git a/src/typings/management/pulseInfo.ts b/src/typings/management/pulseInfo.ts index d1853b1f4..174f19211 100644 --- a/src/typings/management/pulseInfo.ts +++ b/src/typings/management/pulseInfo.ts @@ -14,7 +14,7 @@ export class PulseInfo { * The type of transactions processed over this payment method. Allowed values: - **pos** for in-person payments. - **billpay** for subscription payments, both the initial payment and the later recurring payments. These transactions have `recurringProcessingModel` **Subscription**. - **ecom** for all other card not present transactions. This includes non-recurring transactions and transactions with `recurringProcessingModel` **CardOnFile** or **UnscheduledCardOnFile**. */ 'processingType': PulseInfo.ProcessingTypeEnum; - 'transactionDescription'?: TransactionDescriptionInfo; + 'transactionDescription'?: TransactionDescriptionInfo | null; static discriminator: string | undefined = undefined; @@ -27,7 +27,7 @@ export class PulseInfo { { "name": "transactionDescription", "baseName": "transactionDescription", - "type": "TransactionDescriptionInfo" + "type": "TransactionDescriptionInfo | null" } ]; static getAttributeTypeMap() { diff --git a/src/typings/management/refunds.ts b/src/typings/management/refunds.ts index 6095a9738..f3391271d 100644 --- a/src/typings/management/refunds.ts +++ b/src/typings/management/refunds.ts @@ -10,7 +10,7 @@ import { Referenced } from './referenced'; export class Refunds { - 'referenced'?: Referenced; + 'referenced'?: Referenced | null; static discriminator: string | undefined = undefined; @@ -18,7 +18,7 @@ export class Refunds { { "name": "referenced", "baseName": "referenced", - "type": "Referenced" + "type": "Referenced | null" } ]; static getAttributeTypeMap() { diff --git a/src/typings/management/shippingLocation.ts b/src/typings/management/shippingLocation.ts index e5ee4bca0..909eaf6c9 100644 --- a/src/typings/management/shippingLocation.ts +++ b/src/typings/management/shippingLocation.ts @@ -11,8 +11,8 @@ import { Address } from './address'; import { Contact } from './contact'; export class ShippingLocation { - 'address'?: Address; - 'contact'?: Contact; + 'address'?: Address | null; + 'contact'?: Contact | null; /** * The unique identifier of the shipping location, for use as `shippingLocationId` when creating an order. */ @@ -28,12 +28,12 @@ export class ShippingLocation { { "name": "address", "baseName": "address", - "type": "Address" + "type": "Address | null" }, { "name": "contact", "baseName": "contact", - "type": "Contact" + "type": "Contact | null" }, { "name": "id", diff --git a/src/typings/management/splitConfigurationLogic.ts b/src/typings/management/splitConfigurationLogic.ts index 85726b484..200bfd63f 100644 --- a/src/typings/management/splitConfigurationLogic.ts +++ b/src/typings/management/splitConfigurationLogic.ts @@ -15,7 +15,7 @@ export class SplitConfigurationLogic { * Deducts the acquiring fees (the aggregated amount of interchange and scheme fee) from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. */ 'acquiringFees'?: SplitConfigurationLogic.AcquiringFeesEnum; - 'additionalCommission'?: AdditionalCommission; + 'additionalCommission'?: AdditionalCommission | null; /** * Deducts the transaction fee due to Adyen under [blended rates](https://www.adyen.com/knowledge-hub/guides/payments-training-guide/get-the-best-from-your-card-processing) from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. */ @@ -85,7 +85,7 @@ export class SplitConfigurationLogic { { "name": "additionalCommission", "baseName": "additionalCommission", - "type": "AdditionalCommission" + "type": "AdditionalCommission | null" }, { "name": "adyenCommission", diff --git a/src/typings/management/starInfo.ts b/src/typings/management/starInfo.ts index a5c1e09e9..2478771f2 100644 --- a/src/typings/management/starInfo.ts +++ b/src/typings/management/starInfo.ts @@ -14,7 +14,7 @@ export class StarInfo { * The type of transactions processed over this payment method. Allowed values: - **pos** for in-person payments. - **billpay** for subscription payments, both the initial payment and the later recurring payments. These transactions have `recurringProcessingModel` **Subscription**. - **ecom** for all other card not present transactions. This includes non-recurring transactions and transactions with `recurringProcessingModel` **CardOnFile** or **UnscheduledCardOnFile**. */ 'processingType': StarInfo.ProcessingTypeEnum; - 'transactionDescription'?: TransactionDescriptionInfo; + 'transactionDescription'?: TransactionDescriptionInfo | null; static discriminator: string | undefined = undefined; @@ -27,7 +27,7 @@ export class StarInfo { { "name": "transactionDescription", "baseName": "transactionDescription", - "type": "TransactionDescriptionInfo" + "type": "TransactionDescriptionInfo | null" } ]; static getAttributeTypeMap() { diff --git a/src/typings/management/store.ts b/src/typings/management/store.ts index c0311e2fa..d7fa402ef 100644 --- a/src/typings/management/store.ts +++ b/src/typings/management/store.ts @@ -12,8 +12,8 @@ import { StoreLocation } from './storeLocation'; import { StoreSplitConfiguration } from './storeSplitConfiguration'; export class Store { - '_links'?: Links; - 'address'?: StoreLocation; + '_links'?: Links | null; + 'address'?: StoreLocation | null; /** * The unique identifiers of the [business lines](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/businesslines__resParam_id) that the store is associated with. If not specified, the business line of the merchant account is used. Required when there are multiple business lines under the merchant account. */ @@ -46,7 +46,7 @@ export class Store { * The store name shown on the shopper\'s bank or credit card statement and on the shopper receipt. */ 'shopperStatement'?: string; - 'splitConfiguration'?: StoreSplitConfiguration; + 'splitConfiguration'?: StoreSplitConfiguration | null; /** * The status of the store. Possible values are: - **active**. This value is assigned automatically when a store is created. - **inactive**. The terminals under the store are blocked from accepting new transactions, but capturing outstanding transactions is still possible. - **closed**. This status is irreversible. The terminals under the store are reassigned to the merchant inventory. */ @@ -58,12 +58,12 @@ export class Store { { "name": "_links", "baseName": "_links", - "type": "Links" + "type": "Links | null" }, { "name": "address", "baseName": "address", - "type": "StoreLocation" + "type": "StoreLocation | null" }, { "name": "businessLineIds", @@ -108,7 +108,7 @@ export class Store { { "name": "splitConfiguration", "baseName": "splitConfiguration", - "type": "StoreSplitConfiguration" + "type": "StoreSplitConfiguration | null" }, { "name": "status", diff --git a/src/typings/management/storeAndForward.ts b/src/typings/management/storeAndForward.ts index ad0277051..35e5a6536 100644 --- a/src/typings/management/storeAndForward.ts +++ b/src/typings/management/storeAndForward.ts @@ -19,7 +19,7 @@ export class StoreAndForward { * The maximum number of store-and-forward transactions per terminal that you can process while offline. */ 'maxPayments'?: number; - 'supportedCardTypes'?: SupportedCardTypes; + 'supportedCardTypes'?: SupportedCardTypes | null; static discriminator: string | undefined = undefined; @@ -37,7 +37,7 @@ export class StoreAndForward { { "name": "supportedCardTypes", "baseName": "supportedCardTypes", - "type": "SupportedCardTypes" + "type": "SupportedCardTypes | null" } ]; static getAttributeTypeMap() { diff --git a/src/typings/management/storeCreationRequest.ts b/src/typings/management/storeCreationRequest.ts index fe14e12d6..1150eb2da 100644 --- a/src/typings/management/storeCreationRequest.ts +++ b/src/typings/management/storeCreationRequest.ts @@ -36,7 +36,7 @@ export class StoreCreationRequest { * The store name to be shown on the shopper\'s bank or credit card statement and on the shopper receipt. Maximum length: 22 characters; can\'t be all numbers. */ 'shopperStatement': string; - 'splitConfiguration'?: StoreSplitConfiguration; + 'splitConfiguration'?: StoreSplitConfiguration | null; static discriminator: string | undefined = undefined; @@ -79,7 +79,7 @@ export class StoreCreationRequest { { "name": "splitConfiguration", "baseName": "splitConfiguration", - "type": "StoreSplitConfiguration" + "type": "StoreSplitConfiguration | null" } ]; static getAttributeTypeMap() { diff --git a/src/typings/management/storeCreationWithMerchantCodeRequest.ts b/src/typings/management/storeCreationWithMerchantCodeRequest.ts index 2f8fc5c7a..6307bba6d 100644 --- a/src/typings/management/storeCreationWithMerchantCodeRequest.ts +++ b/src/typings/management/storeCreationWithMerchantCodeRequest.ts @@ -40,7 +40,7 @@ export class StoreCreationWithMerchantCodeRequest { * The store name to be shown on the shopper\'s bank or credit card statement and on the shopper receipt. Maximum length: 22 characters; can\'t be all numbers. */ 'shopperStatement': string; - 'splitConfiguration'?: StoreSplitConfiguration; + 'splitConfiguration'?: StoreSplitConfiguration | null; static discriminator: string | undefined = undefined; @@ -88,7 +88,7 @@ export class StoreCreationWithMerchantCodeRequest { { "name": "splitConfiguration", "baseName": "splitConfiguration", - "type": "StoreSplitConfiguration" + "type": "StoreSplitConfiguration | null" } ]; static getAttributeTypeMap() { diff --git a/src/typings/management/terminal.ts b/src/typings/management/terminal.ts index 2b6a441d8..915e061f3 100644 --- a/src/typings/management/terminal.ts +++ b/src/typings/management/terminal.ts @@ -11,8 +11,8 @@ import { TerminalAssignment } from './terminalAssignment'; import { TerminalConnectivity } from './terminalConnectivity'; export class Terminal { - 'assignment'?: TerminalAssignment; - 'connectivity'?: TerminalConnectivity; + 'assignment'?: TerminalAssignment | null; + 'connectivity'?: TerminalConnectivity | null; /** * The software release currently in use on the terminal. */ @@ -48,12 +48,12 @@ export class Terminal { { "name": "assignment", "baseName": "assignment", - "type": "TerminalAssignment" + "type": "TerminalAssignment | null" }, { "name": "connectivity", "baseName": "connectivity", - "type": "TerminalConnectivity" + "type": "TerminalConnectivity | null" }, { "name": "firmwareVersion", diff --git a/src/typings/management/terminalAssignment.ts b/src/typings/management/terminalAssignment.ts index a5920821e..246904d4e 100644 --- a/src/typings/management/terminalAssignment.ts +++ b/src/typings/management/terminalAssignment.ts @@ -18,7 +18,7 @@ export class TerminalAssignment { * The unique identifier of the merchant account to which terminal is assigned. */ 'merchantId'?: string; - 'reassignmentTarget'?: TerminalReassignmentTarget; + 'reassignmentTarget'?: TerminalReassignmentTarget | null; /** * The status of the reassignment. Possible values: * `reassignmentInProgress`: the terminal was boarded and is now scheduled to remove the configuration. Wait for the terminal to synchronize with the Adyen platform. * `deployed`: the terminal is deployed and reassigned. * `inventory`: the terminal is in inventory and cannot process transactions. * `boarded`: the terminal is boarded to a store, or a merchant account representing a store, and can process transactions. */ @@ -44,7 +44,7 @@ export class TerminalAssignment { { "name": "reassignmentTarget", "baseName": "reassignmentTarget", - "type": "TerminalReassignmentTarget" + "type": "TerminalReassignmentTarget | null" }, { "name": "status", diff --git a/src/typings/management/terminalConnectivity.ts b/src/typings/management/terminalConnectivity.ts index 1eca22f06..1f476bcfd 100644 --- a/src/typings/management/terminalConnectivity.ts +++ b/src/typings/management/terminalConnectivity.ts @@ -13,10 +13,10 @@ import { TerminalConnectivityEthernet } from './terminalConnectivityEthernet'; import { TerminalConnectivityWifi } from './terminalConnectivityWifi'; export class TerminalConnectivity { - 'bluetooth'?: TerminalConnectivityBluetooth; - 'cellular'?: TerminalConnectivityCellular; - 'ethernet'?: TerminalConnectivityEthernet; - 'wifi'?: TerminalConnectivityWifi; + 'bluetooth'?: TerminalConnectivityBluetooth | null; + 'cellular'?: TerminalConnectivityCellular | null; + 'ethernet'?: TerminalConnectivityEthernet | null; + 'wifi'?: TerminalConnectivityWifi | null; static discriminator: string | undefined = undefined; @@ -24,22 +24,22 @@ export class TerminalConnectivity { { "name": "bluetooth", "baseName": "bluetooth", - "type": "TerminalConnectivityBluetooth" + "type": "TerminalConnectivityBluetooth | null" }, { "name": "cellular", "baseName": "cellular", - "type": "TerminalConnectivityCellular" + "type": "TerminalConnectivityCellular | null" }, { "name": "ethernet", "baseName": "ethernet", - "type": "TerminalConnectivityEthernet" + "type": "TerminalConnectivityEthernet | null" }, { "name": "wifi", "baseName": "wifi", - "type": "TerminalConnectivityWifi" + "type": "TerminalConnectivityWifi | null" } ]; static getAttributeTypeMap() { diff --git a/src/typings/management/terminalOrder.ts b/src/typings/management/terminalOrder.ts index b1d1b3115..91acf7edd 100644 --- a/src/typings/management/terminalOrder.ts +++ b/src/typings/management/terminalOrder.ts @@ -12,7 +12,7 @@ import { OrderItem } from './orderItem'; import { ShippingLocation } from './shippingLocation'; export class TerminalOrder { - 'billingEntity'?: BillingEntity; + 'billingEntity'?: BillingEntity | null; /** * The merchant-defined purchase order number. This will be printed on the packing list. */ @@ -29,7 +29,7 @@ export class TerminalOrder { * The date and time that the order was placed, in UTC ISO 8601 format. For example, \"2011-12-03T10:15:30Z\". */ 'orderDate'?: string; - 'shippingLocation'?: ShippingLocation; + 'shippingLocation'?: ShippingLocation | null; /** * The processing status of the order. */ @@ -45,7 +45,7 @@ export class TerminalOrder { { "name": "billingEntity", "baseName": "billingEntity", - "type": "BillingEntity" + "type": "BillingEntity | null" }, { "name": "customerOrderReference", @@ -70,7 +70,7 @@ export class TerminalOrder { { "name": "shippingLocation", "baseName": "shippingLocation", - "type": "ShippingLocation" + "type": "ShippingLocation | null" }, { "name": "status", diff --git a/src/typings/management/terminalProduct.ts b/src/typings/management/terminalProduct.ts index 0186985f5..7457d17dd 100644 --- a/src/typings/management/terminalProduct.ts +++ b/src/typings/management/terminalProduct.ts @@ -26,7 +26,7 @@ export class TerminalProduct { * The descriptive name of the product. */ 'name'?: string; - 'price'?: TerminalProductPrice; + 'price'?: TerminalProductPrice | null; static discriminator: string | undefined = undefined; @@ -54,7 +54,7 @@ export class TerminalProduct { { "name": "price", "baseName": "price", - "type": "TerminalProductPrice" + "type": "TerminalProductPrice | null" } ]; static getAttributeTypeMap() { diff --git a/src/typings/management/terminalSettings.ts b/src/typings/management/terminalSettings.ts index f080612e1..35c17b19e 100644 --- a/src/typings/management/terminalSettings.ts +++ b/src/typings/management/terminalSettings.ts @@ -63,12 +63,12 @@ export class TerminalSettings { { "name": "cardholderReceipt", "baseName": "cardholderReceipt", - "type": "CardholderReceipt" + "type": "CardholderReceipt | null" }, { "name": "connectivity", "baseName": "connectivity", - "type": "Connectivity" + "type": "Connectivity | null" }, { "name": "gratuities", @@ -78,97 +78,97 @@ export class TerminalSettings { { "name": "hardware", "baseName": "hardware", - "type": "Hardware" + "type": "Hardware | null" }, { "name": "localization", "baseName": "localization", - "type": "Localization" + "type": "Localization | null" }, { "name": "nexo", "baseName": "nexo", - "type": "Nexo" + "type": "Nexo | null" }, { "name": "offlineProcessing", "baseName": "offlineProcessing", - "type": "OfflineProcessing" + "type": "OfflineProcessing | null" }, { "name": "opi", "baseName": "opi", - "type": "Opi" + "type": "Opi | null" }, { "name": "passcodes", "baseName": "passcodes", - "type": "Passcodes" + "type": "Passcodes | null" }, { "name": "payAtTable", "baseName": "payAtTable", - "type": "PayAtTable" + "type": "PayAtTable | null" }, { "name": "payment", "baseName": "payment", - "type": "Payment" + "type": "Payment | null" }, { "name": "receiptOptions", "baseName": "receiptOptions", - "type": "ReceiptOptions" + "type": "ReceiptOptions | null" }, { "name": "receiptPrinting", "baseName": "receiptPrinting", - "type": "ReceiptPrinting" + "type": "ReceiptPrinting | null" }, { "name": "refunds", "baseName": "refunds", - "type": "Refunds" + "type": "Refunds | null" }, { "name": "signature", "baseName": "signature", - "type": "Signature" + "type": "Signature | null" }, { "name": "standalone", "baseName": "standalone", - "type": "Standalone" + "type": "Standalone | null" }, { "name": "storeAndForward", "baseName": "storeAndForward", - "type": "StoreAndForward" + "type": "StoreAndForward | null" }, { "name": "surcharge", "baseName": "surcharge", - "type": "Surcharge" + "type": "Surcharge | null" }, { "name": "tapToPay", "baseName": "tapToPay", - "type": "TapToPay" + "type": "TapToPay | null" }, { "name": "terminalInstructions", "baseName": "terminalInstructions", - "type": "TerminalInstructions" + "type": "TerminalInstructions | null" }, { "name": "timeouts", "baseName": "timeouts", - "type": "Timeouts" + "type": "Timeouts | null" }, { "name": "wifiProfiles", "baseName": "wifiProfiles", - "type": "WifiProfiles" + "type": "WifiProfiles | null" } ]; static getAttributeTypeMap() { diff --git a/src/typings/management/testCompanyWebhookRequest.ts b/src/typings/management/testCompanyWebhookRequest.ts index 2c6512cd8..972e1a129 100644 --- a/src/typings/management/testCompanyWebhookRequest.ts +++ b/src/typings/management/testCompanyWebhookRequest.ts @@ -14,7 +14,7 @@ export class TestCompanyWebhookRequest { * List of `merchantId` values for which test webhooks will be sent. The list can have a maximum of 20 `merchantId` values. If not specified, we send sample notifications to all the merchant accounts that the webhook is configured for. If this is more than 20 merchant accounts, use this list to specify a subset of the merchant accounts for which to send test notifications. */ 'merchantIds'?: Array; - 'notification'?: CustomNotification; + 'notification'?: CustomNotification | null; /** * List of event codes for which to send test notifications. Only the webhook types below are supported. Possible values if webhook `type`: **standard**: * **AUTHORISATION** * **CHARGEBACK_REVERSED** * **ORDER_CLOSED** * **ORDER_OPENED** * **PAIDOUT_REVERSED** * **PAYOUT_THIRDPARTY** * **REFUNDED_REVERSED** * **REFUND_WITH_DATA** * **REPORT_AVAILABLE** * **CUSTOM** - set your custom notification fields in the [`notification`](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/companies/{companyId}/webhooks/{webhookId}/test__reqParam_notification) object. Possible values if webhook `type`: **banktransfer-notification**: * **PENDING** Possible values if webhook `type`: **report-notification**: * **REPORT_AVAILABLE** Possible values if webhook `type`: **ideal-notification**: * **AUTHORISATION** Possible values if webhook `type`: **pending-notification**: * **PENDING** */ @@ -31,7 +31,7 @@ export class TestCompanyWebhookRequest { { "name": "notification", "baseName": "notification", - "type": "CustomNotification" + "type": "CustomNotification | null" }, { "name": "types", diff --git a/src/typings/management/testWebhookRequest.ts b/src/typings/management/testWebhookRequest.ts index 7d3eeaa07..9f0349a44 100644 --- a/src/typings/management/testWebhookRequest.ts +++ b/src/typings/management/testWebhookRequest.ts @@ -10,7 +10,7 @@ import { CustomNotification } from './customNotification'; export class TestWebhookRequest { - 'notification'?: CustomNotification; + 'notification'?: CustomNotification | null; /** * List of event codes for which to send test notifications. Only the webhook types below are supported. Possible values if webhook `type`: **standard**: * **AUTHORISATION** * **CHARGEBACK_REVERSED** * **ORDER_CLOSED** * **ORDER_OPENED** * **PAIDOUT_REVERSED** * **PAYOUT_THIRDPARTY** * **REFUNDED_REVERSED** * **REFUND_WITH_DATA** * **REPORT_AVAILABLE** * **CUSTOM** - set your custom notification fields in the [`notification`](https://docs.adyen.com/api-explorer/#/ManagementService/v1/post/companies/{companyId}/webhooks/{webhookId}/test__reqParam_notification) object. Possible values if webhook `type`: **banktransfer-notification**: * **PENDING** Possible values if webhook `type`: **report-notification**: * **REPORT_AVAILABLE** Possible values if webhook `type`: **ideal-notification**: * **AUTHORISATION** Possible values if webhook `type`: **pending-notification**: * **PENDING** */ @@ -22,7 +22,7 @@ export class TestWebhookRequest { { "name": "notification", "baseName": "notification", - "type": "CustomNotification" + "type": "CustomNotification | null" }, { "name": "types", diff --git a/src/typings/management/updateCompanyUserRequest.ts b/src/typings/management/updateCompanyUserRequest.ts index 9bf63764e..6139d9912 100644 --- a/src/typings/management/updateCompanyUserRequest.ts +++ b/src/typings/management/updateCompanyUserRequest.ts @@ -30,7 +30,7 @@ export class UpdateCompanyUserRequest { * The requested login method for the user. To use SSO, you must already have SSO configured with Adyen before creating the user. Possible values: **Username & account**, **Email**, or **SSO** */ 'loginMethod'?: string; - 'name'?: Name2; + 'name'?: Name2 | null; /** * The list of [roles](https://docs.adyen.com/account/user-roles) for this user. */ @@ -71,7 +71,7 @@ export class UpdateCompanyUserRequest { { "name": "name", "baseName": "name", - "type": "Name2" + "type": "Name2 | null" }, { "name": "roles", diff --git a/src/typings/management/updateCompanyWebhookRequest.ts b/src/typings/management/updateCompanyWebhookRequest.ts index 241841fce..9b128a088 100644 --- a/src/typings/management/updateCompanyWebhookRequest.ts +++ b/src/typings/management/updateCompanyWebhookRequest.ts @@ -26,7 +26,7 @@ export class UpdateCompanyWebhookRequest { * Indicates if the webhook configuration is active. The field must be **true** for us to send webhooks about events related an account. */ 'active'?: boolean; - 'additionalSettings'?: AdditionalSettings; + 'additionalSettings'?: AdditionalSettings | null; /** * Format or protocol for receiving webhooks. Possible values: * **soap** * **http** * **json** */ @@ -94,7 +94,7 @@ export class UpdateCompanyWebhookRequest { { "name": "additionalSettings", "baseName": "additionalSettings", - "type": "AdditionalSettings" + "type": "AdditionalSettings | null" }, { "name": "communicationFormat", diff --git a/src/typings/management/updateMerchantUserRequest.ts b/src/typings/management/updateMerchantUserRequest.ts index 5cb20c3c5..4ab1c66f0 100644 --- a/src/typings/management/updateMerchantUserRequest.ts +++ b/src/typings/management/updateMerchantUserRequest.ts @@ -26,7 +26,7 @@ export class UpdateMerchantUserRequest { * The requested login method for the user. To use SSO, you must already have SSO configured with Adyen before creating the user. Possible values: **Username & account**, **Email**, or **SSO** */ 'loginMethod'?: string; - 'name'?: Name2; + 'name'?: Name2 | null; /** * The list of [roles](https://docs.adyen.com/account/user-roles) for this user. */ @@ -62,7 +62,7 @@ export class UpdateMerchantUserRequest { { "name": "name", "baseName": "name", - "type": "Name2" + "type": "Name2 | null" }, { "name": "roles", diff --git a/src/typings/management/updateMerchantWebhookRequest.ts b/src/typings/management/updateMerchantWebhookRequest.ts index 6bd9b72b9..ed3e6eeb6 100644 --- a/src/typings/management/updateMerchantWebhookRequest.ts +++ b/src/typings/management/updateMerchantWebhookRequest.ts @@ -26,7 +26,7 @@ export class UpdateMerchantWebhookRequest { * Indicates if the webhook configuration is active. The field must be **true** for us to send webhooks about events related an account. */ 'active'?: boolean; - 'additionalSettings'?: AdditionalSettings; + 'additionalSettings'?: AdditionalSettings | null; /** * Format or protocol for receiving webhooks. Possible values: * **soap** * **http** * **json** */ @@ -86,7 +86,7 @@ export class UpdateMerchantWebhookRequest { { "name": "additionalSettings", "baseName": "additionalSettings", - "type": "AdditionalSettings" + "type": "AdditionalSettings | null" }, { "name": "communicationFormat", diff --git a/src/typings/management/updatePaymentMethodInfo.ts b/src/typings/management/updatePaymentMethodInfo.ts index 7ebbff327..75c448b19 100644 --- a/src/typings/management/updatePaymentMethodInfo.ts +++ b/src/typings/management/updatePaymentMethodInfo.ts @@ -16,14 +16,14 @@ import { PulseInfo } from './pulseInfo'; import { StarInfo } from './starInfo'; export class UpdatePaymentMethodInfo { - 'accel'?: AccelInfo; - 'bcmc'?: BcmcInfo; - 'cartesBancaires'?: CartesBancairesInfo; + 'accel'?: AccelInfo | null; + 'bcmc'?: BcmcInfo | null; + 'cartesBancaires'?: CartesBancairesInfo | null; /** * The list of countries where a payment method is available. By default, all countries supported by the payment method. */ 'countries'?: Array; - 'cup'?: GenericPmWithTdiInfo; + 'cup'?: GenericPmWithTdiInfo | null; /** * The list of currencies that a payment method supports. By default, all currencies supported by the payment method. */ @@ -32,22 +32,22 @@ export class UpdatePaymentMethodInfo { * Custom routing flags for acquirer routing. */ 'customRoutingFlags'?: Array; - 'diners'?: GenericPmWithTdiInfo; - 'discover'?: GenericPmWithTdiInfo; - 'eftpos_australia'?: GenericPmWithTdiInfo; + 'diners'?: GenericPmWithTdiInfo | null; + 'discover'?: GenericPmWithTdiInfo | null; + 'eftpos_australia'?: GenericPmWithTdiInfo | null; /** * Indicates whether the payment method is enabled (**true**) or disabled (**false**). */ 'enabled'?: boolean; - 'girocard'?: GenericPmWithTdiInfo; - 'ideal'?: GenericPmWithTdiInfo; - 'interac_card'?: GenericPmWithTdiInfo; - 'jcb'?: GenericPmWithTdiInfo; - 'maestro'?: GenericPmWithTdiInfo; - 'mc'?: GenericPmWithTdiInfo; - 'nyce'?: NyceInfo; - 'pulse'?: PulseInfo; - 'star'?: StarInfo; + 'girocard'?: GenericPmWithTdiInfo | null; + 'ideal'?: GenericPmWithTdiInfo | null; + 'interac_card'?: GenericPmWithTdiInfo | null; + 'jcb'?: GenericPmWithTdiInfo | null; + 'maestro'?: GenericPmWithTdiInfo | null; + 'mc'?: GenericPmWithTdiInfo | null; + 'nyce'?: NyceInfo | null; + 'pulse'?: PulseInfo | null; + 'star'?: StarInfo | null; /** * The store for this payment method */ @@ -59,7 +59,7 @@ export class UpdatePaymentMethodInfo { * Use `storeId` instead. Only one store per payment method is allowed. */ 'storeIds'?: Array; - 'visa'?: GenericPmWithTdiInfo; + 'visa'?: GenericPmWithTdiInfo | null; static discriminator: string | undefined = undefined; @@ -67,17 +67,17 @@ export class UpdatePaymentMethodInfo { { "name": "accel", "baseName": "accel", - "type": "AccelInfo" + "type": "AccelInfo | null" }, { "name": "bcmc", "baseName": "bcmc", - "type": "BcmcInfo" + "type": "BcmcInfo | null" }, { "name": "cartesBancaires", "baseName": "cartesBancaires", - "type": "CartesBancairesInfo" + "type": "CartesBancairesInfo | null" }, { "name": "countries", @@ -87,7 +87,7 @@ export class UpdatePaymentMethodInfo { { "name": "cup", "baseName": "cup", - "type": "GenericPmWithTdiInfo" + "type": "GenericPmWithTdiInfo | null" }, { "name": "currencies", @@ -102,17 +102,17 @@ export class UpdatePaymentMethodInfo { { "name": "diners", "baseName": "diners", - "type": "GenericPmWithTdiInfo" + "type": "GenericPmWithTdiInfo | null" }, { "name": "discover", "baseName": "discover", - "type": "GenericPmWithTdiInfo" + "type": "GenericPmWithTdiInfo | null" }, { "name": "eftpos_australia", "baseName": "eftpos_australia", - "type": "GenericPmWithTdiInfo" + "type": "GenericPmWithTdiInfo | null" }, { "name": "enabled", @@ -122,47 +122,47 @@ export class UpdatePaymentMethodInfo { { "name": "girocard", "baseName": "girocard", - "type": "GenericPmWithTdiInfo" + "type": "GenericPmWithTdiInfo | null" }, { "name": "ideal", "baseName": "ideal", - "type": "GenericPmWithTdiInfo" + "type": "GenericPmWithTdiInfo | null" }, { "name": "interac_card", "baseName": "interac_card", - "type": "GenericPmWithTdiInfo" + "type": "GenericPmWithTdiInfo | null" }, { "name": "jcb", "baseName": "jcb", - "type": "GenericPmWithTdiInfo" + "type": "GenericPmWithTdiInfo | null" }, { "name": "maestro", "baseName": "maestro", - "type": "GenericPmWithTdiInfo" + "type": "GenericPmWithTdiInfo | null" }, { "name": "mc", "baseName": "mc", - "type": "GenericPmWithTdiInfo" + "type": "GenericPmWithTdiInfo | null" }, { "name": "nyce", "baseName": "nyce", - "type": "NyceInfo" + "type": "NyceInfo | null" }, { "name": "pulse", "baseName": "pulse", - "type": "PulseInfo" + "type": "PulseInfo | null" }, { "name": "star", "baseName": "star", - "type": "StarInfo" + "type": "StarInfo | null" }, { "name": "storeId", @@ -177,7 +177,7 @@ export class UpdatePaymentMethodInfo { { "name": "visa", "baseName": "visa", - "type": "GenericPmWithTdiInfo" + "type": "GenericPmWithTdiInfo | null" } ]; static getAttributeTypeMap() { diff --git a/src/typings/management/updateSplitConfigurationLogicRequest.ts b/src/typings/management/updateSplitConfigurationLogicRequest.ts index 11fca3c58..c19006942 100644 --- a/src/typings/management/updateSplitConfigurationLogicRequest.ts +++ b/src/typings/management/updateSplitConfigurationLogicRequest.ts @@ -15,7 +15,7 @@ export class UpdateSplitConfigurationLogicRequest { * Deducts the acquiring fees (the aggregated amount of interchange and scheme fee) from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. */ 'acquiringFees'?: UpdateSplitConfigurationLogicRequest.AcquiringFeesEnum; - 'additionalCommission'?: AdditionalCommission; + 'additionalCommission'?: AdditionalCommission | null; /** * Deducts the transaction fee due to Adyen under [blended rates](https://www.adyen.com/knowledge-hub/guides/payments-training-guide/get-the-best-from-your-card-processing) from the specified balance account. Possible values: **deductFromLiableAccount**, **deductFromOneBalanceAccount**. */ @@ -85,7 +85,7 @@ export class UpdateSplitConfigurationLogicRequest { { "name": "additionalCommission", "baseName": "additionalCommission", - "type": "AdditionalCommission" + "type": "AdditionalCommission | null" }, { "name": "adyenCommission", diff --git a/src/typings/management/updateStoreRequest.ts b/src/typings/management/updateStoreRequest.ts index e772b55d5..58a127f55 100644 --- a/src/typings/management/updateStoreRequest.ts +++ b/src/typings/management/updateStoreRequest.ts @@ -11,7 +11,7 @@ import { StoreSplitConfiguration } from './storeSplitConfiguration'; import { UpdatableAddress } from './updatableAddress'; export class UpdateStoreRequest { - 'address'?: UpdatableAddress; + 'address'?: UpdatableAddress | null; /** * The unique identifiers of the [business lines](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/businessLines__resParam_id) that the store is associated with. */ @@ -28,7 +28,7 @@ export class UpdateStoreRequest { * The phone number of the store, including \'+\' and country code in the [E.164](https://en.wikipedia.org/wiki/E.164) format. If passed in a different format, we convert and validate the phone number against E.164. */ 'phoneNumber'?: string; - 'splitConfiguration'?: StoreSplitConfiguration; + 'splitConfiguration'?: StoreSplitConfiguration | null; /** * The status of the store. Possible values are: - **active**: This value is assigned automatically when a store is created. - **inactive**: The maximum [transaction limits and number of Store-and-Forward transactions](https://docs.adyen.com/point-of-sale/determine-account-structure/configure-features#payment-features) for the store are set to 0. This blocks new transactions, but captures are still possible. - **closed**: The terminals of the store are reassigned to the merchant inventory, so they can\'t process payments. You can change the status from **active** to **inactive**, and from **inactive** to **active** or **closed**. Once **closed**, a store can\'t be reopened. */ @@ -40,7 +40,7 @@ export class UpdateStoreRequest { { "name": "address", "baseName": "address", - "type": "UpdatableAddress" + "type": "UpdatableAddress | null" }, { "name": "businessLineIds", @@ -65,7 +65,7 @@ export class UpdateStoreRequest { { "name": "splitConfiguration", "baseName": "splitConfiguration", - "type": "StoreSplitConfiguration" + "type": "StoreSplitConfiguration | null" }, { "name": "status", diff --git a/src/typings/management/user.ts b/src/typings/management/user.ts index dac67b658..2fe9210bf 100644 --- a/src/typings/management/user.ts +++ b/src/typings/management/user.ts @@ -11,7 +11,7 @@ import { Links } from './links'; import { Name } from './name'; export class User { - '_links'?: Links; + '_links'?: Links | null; /** * The list of [account groups](https://docs.adyen.com/account/account-structure#account-groups) associated with this user. */ @@ -32,7 +32,7 @@ export class User { * The unique identifier of the user. */ 'id': string; - 'name'?: Name; + 'name'?: Name | null; /** * The list of [roles](https://docs.adyen.com/account/user-roles) for this user. */ @@ -52,7 +52,7 @@ export class User { { "name": "_links", "baseName": "_links", - "type": "Links" + "type": "Links | null" }, { "name": "accountGroups", @@ -82,7 +82,7 @@ export class User { { "name": "name", "baseName": "name", - "type": "Name" + "type": "Name | null" }, { "name": "roles", diff --git a/src/typings/management/webhook.ts b/src/typings/management/webhook.ts index ce8f2db90..201ccfe19 100644 --- a/src/typings/management/webhook.ts +++ b/src/typings/management/webhook.ts @@ -11,7 +11,7 @@ import { AdditionalSettingsResponse } from './additionalSettingsResponse'; import { WebhookLinks } from './webhookLinks'; export class Webhook { - '_links'?: WebhookLinks; + '_links'?: WebhookLinks | null; /** * Indicates if expired SSL certificates are accepted. Default value: **false**. */ @@ -32,7 +32,7 @@ export class Webhook { * Indicates if the webhook configuration is active. The field must be **true** for you to receive webhooks about events related an account. */ 'active': boolean; - 'additionalSettings'?: AdditionalSettingsResponse; + 'additionalSettings'?: AdditionalSettingsResponse | null; /** * The alias of our SSL certificate. When you receive a notification from us, the alias from the HMAC signature will match this alias. */ @@ -100,7 +100,7 @@ export class Webhook { { "name": "_links", "baseName": "_links", - "type": "WebhookLinks" + "type": "WebhookLinks | null" }, { "name": "acceptsExpiredCertificate", @@ -130,7 +130,7 @@ export class Webhook { { "name": "additionalSettings", "baseName": "additionalSettings", - "type": "AdditionalSettingsResponse" + "type": "AdditionalSettingsResponse | null" }, { "name": "certificateAlias", diff --git a/src/typings/management/webhookLinks.ts b/src/typings/management/webhookLinks.ts index 5e9a85ea9..66a76f232 100644 --- a/src/typings/management/webhookLinks.ts +++ b/src/typings/management/webhookLinks.ts @@ -10,9 +10,9 @@ import { LinksElement } from './linksElement'; export class WebhookLinks { - 'company'?: LinksElement; + 'company'?: LinksElement | null; 'generateHmac': LinksElement; - 'merchant'?: LinksElement; + 'merchant'?: LinksElement | null; 'self': LinksElement; 'testWebhook': LinksElement; @@ -22,7 +22,7 @@ export class WebhookLinks { { "name": "company", "baseName": "company", - "type": "LinksElement" + "type": "LinksElement | null" }, { "name": "generateHmac", @@ -32,7 +32,7 @@ export class WebhookLinks { { "name": "merchant", "baseName": "merchant", - "type": "LinksElement" + "type": "LinksElement | null" }, { "name": "self", diff --git a/src/typings/management/wifiProfiles.ts b/src/typings/management/wifiProfiles.ts index cd5bdbc74..d38a836f8 100644 --- a/src/typings/management/wifiProfiles.ts +++ b/src/typings/management/wifiProfiles.ts @@ -15,7 +15,7 @@ export class WifiProfiles { * List of remote Wi-Fi profiles. */ 'profiles'?: Array; - 'settings'?: Settings; + 'settings'?: Settings | null; static discriminator: string | undefined = undefined; @@ -28,7 +28,7 @@ export class WifiProfiles { { "name": "settings", "baseName": "settings", - "type": "Settings" + "type": "Settings | null" } ]; static getAttributeTypeMap() { diff --git a/src/typings/managementWebhooks/capabilityProblem.ts b/src/typings/managementWebhooks/capabilityProblem.ts index 49542de0d..46f963ae9 100644 --- a/src/typings/managementWebhooks/capabilityProblem.ts +++ b/src/typings/managementWebhooks/capabilityProblem.ts @@ -11,7 +11,7 @@ import { CapabilityProblemEntity } from './capabilityProblemEntity'; import { VerificationError } from './verificationError'; export class CapabilityProblem { - 'entity'?: CapabilityProblemEntity; + 'entity'?: CapabilityProblemEntity | null; /** * List of verification errors. */ @@ -23,7 +23,7 @@ export class CapabilityProblem { { "name": "entity", "baseName": "entity", - "type": "CapabilityProblemEntity" + "type": "CapabilityProblemEntity | null" }, { "name": "verificationErrors", diff --git a/src/typings/managementWebhooks/capabilityProblemEntity.ts b/src/typings/managementWebhooks/capabilityProblemEntity.ts index 132d7ef08..d4dd5f457 100644 --- a/src/typings/managementWebhooks/capabilityProblemEntity.ts +++ b/src/typings/managementWebhooks/capabilityProblemEntity.ts @@ -18,7 +18,7 @@ export class CapabilityProblemEntity { * The ID of the entity. */ 'id'?: string; - 'owner'?: CapabilityProblemEntityRecursive; + 'owner'?: CapabilityProblemEntityRecursive | null; /** * The type of entity. Possible values: **LegalEntity**, **BankAccount**, or **Document**. */ @@ -40,7 +40,7 @@ export class CapabilityProblemEntity { { "name": "owner", "baseName": "owner", - "type": "CapabilityProblemEntityRecursive" + "type": "CapabilityProblemEntityRecursive | null" }, { "name": "type", diff --git a/src/typings/payment/adjustAuthorisationRequest.ts b/src/typings/payment/adjustAuthorisationRequest.ts index 692021983..c62d9ea44 100644 --- a/src/typings/payment/adjustAuthorisationRequest.ts +++ b/src/typings/payment/adjustAuthorisationRequest.ts @@ -22,7 +22,7 @@ export class AdjustAuthorisationRequest { */ 'merchantAccount': string; 'modificationAmount': Amount; - 'mpiData'?: ThreeDSecureData; + 'mpiData'?: ThreeDSecureData | null; /** * The original merchant reference to cancel. */ @@ -31,7 +31,7 @@ export class AdjustAuthorisationRequest { * The original pspReference of the payment to modify. This reference is returned in: * authorisation response * authorisation notification */ 'originalReference': string; - 'platformChargebackLogic'?: PlatformChargebackLogic; + 'platformChargebackLogic'?: PlatformChargebackLogic | null; /** * Your reference for the payment modification. This reference is visible in Customer Area and in reports. Maximum length: 80 characters. */ @@ -70,7 +70,7 @@ export class AdjustAuthorisationRequest { { "name": "mpiData", "baseName": "mpiData", - "type": "ThreeDSecureData" + "type": "ThreeDSecureData | null" }, { "name": "originalMerchantReference", @@ -85,7 +85,7 @@ export class AdjustAuthorisationRequest { { "name": "platformChargebackLogic", "baseName": "platformChargebackLogic", - "type": "PlatformChargebackLogic" + "type": "PlatformChargebackLogic | null" }, { "name": "reference", diff --git a/src/typings/payment/applicationInfo.ts b/src/typings/payment/applicationInfo.ts index a5702bd9f..269c523a4 100644 --- a/src/typings/payment/applicationInfo.ts +++ b/src/typings/payment/applicationInfo.ts @@ -13,12 +13,12 @@ import { MerchantDevice } from './merchantDevice'; import { ShopperInteractionDevice } from './shopperInteractionDevice'; export class ApplicationInfo { - 'adyenLibrary'?: CommonField; - 'adyenPaymentSource'?: CommonField; - 'externalPlatform'?: ExternalPlatform; - 'merchantApplication'?: CommonField; - 'merchantDevice'?: MerchantDevice; - 'shopperInteractionDevice'?: ShopperInteractionDevice; + 'adyenLibrary'?: CommonField | null; + 'adyenPaymentSource'?: CommonField | null; + 'externalPlatform'?: ExternalPlatform | null; + 'merchantApplication'?: CommonField | null; + 'merchantDevice'?: MerchantDevice | null; + 'shopperInteractionDevice'?: ShopperInteractionDevice | null; static discriminator: string | undefined = undefined; @@ -26,32 +26,32 @@ export class ApplicationInfo { { "name": "adyenLibrary", "baseName": "adyenLibrary", - "type": "CommonField" + "type": "CommonField | null" }, { "name": "adyenPaymentSource", "baseName": "adyenPaymentSource", - "type": "CommonField" + "type": "CommonField | null" }, { "name": "externalPlatform", "baseName": "externalPlatform", - "type": "ExternalPlatform" + "type": "ExternalPlatform | null" }, { "name": "merchantApplication", "baseName": "merchantApplication", - "type": "CommonField" + "type": "CommonField | null" }, { "name": "merchantDevice", "baseName": "merchantDevice", - "type": "MerchantDevice" + "type": "MerchantDevice | null" }, { "name": "shopperInteractionDevice", "baseName": "shopperInteractionDevice", - "type": "ShopperInteractionDevice" + "type": "ShopperInteractionDevice | null" } ]; static getAttributeTypeMap() { diff --git a/src/typings/payment/authenticationResultResponse.ts b/src/typings/payment/authenticationResultResponse.ts index 05f29e753..bee459bed 100644 --- a/src/typings/payment/authenticationResultResponse.ts +++ b/src/typings/payment/authenticationResultResponse.ts @@ -11,8 +11,8 @@ import { ThreeDS1Result } from './threeDS1Result'; import { ThreeDS2Result } from './threeDS2Result'; export class AuthenticationResultResponse { - 'threeDS1Result'?: ThreeDS1Result; - 'threeDS2Result'?: ThreeDS2Result; + 'threeDS1Result'?: ThreeDS1Result | null; + 'threeDS2Result'?: ThreeDS2Result | null; static discriminator: string | undefined = undefined; @@ -20,12 +20,12 @@ export class AuthenticationResultResponse { { "name": "threeDS1Result", "baseName": "threeDS1Result", - "type": "ThreeDS1Result" + "type": "ThreeDS1Result | null" }, { "name": "threeDS2Result", "baseName": "threeDS2Result", - "type": "ThreeDS2Result" + "type": "ThreeDS2Result | null" } ]; static getAttributeTypeMap() { diff --git a/src/typings/payment/cancelOrRefundRequest.ts b/src/typings/payment/cancelOrRefundRequest.ts index f89d2a6fd..3087216c0 100644 --- a/src/typings/payment/cancelOrRefundRequest.ts +++ b/src/typings/payment/cancelOrRefundRequest.ts @@ -19,7 +19,7 @@ export class CancelOrRefundRequest { * The merchant account that is used to process the payment. */ 'merchantAccount': string; - 'mpiData'?: ThreeDSecureData; + 'mpiData'?: ThreeDSecureData | null; /** * The original merchant reference to cancel. */ @@ -28,7 +28,7 @@ export class CancelOrRefundRequest { * The original pspReference of the payment to modify. This reference is returned in: * authorisation response * authorisation notification */ 'originalReference': string; - 'platformChargebackLogic'?: PlatformChargebackLogic; + 'platformChargebackLogic'?: PlatformChargebackLogic | null; /** * Your reference for the payment modification. This reference is visible in Customer Area and in reports. Maximum length: 80 characters. */ @@ -58,7 +58,7 @@ export class CancelOrRefundRequest { { "name": "mpiData", "baseName": "mpiData", - "type": "ThreeDSecureData" + "type": "ThreeDSecureData | null" }, { "name": "originalMerchantReference", @@ -73,7 +73,7 @@ export class CancelOrRefundRequest { { "name": "platformChargebackLogic", "baseName": "platformChargebackLogic", - "type": "PlatformChargebackLogic" + "type": "PlatformChargebackLogic | null" }, { "name": "reference", diff --git a/src/typings/payment/cancelRequest.ts b/src/typings/payment/cancelRequest.ts index 836b7a2ed..a77746d91 100644 --- a/src/typings/payment/cancelRequest.ts +++ b/src/typings/payment/cancelRequest.ts @@ -20,7 +20,7 @@ export class CancelRequest { * The merchant account that is used to process the payment. */ 'merchantAccount': string; - 'mpiData'?: ThreeDSecureData; + 'mpiData'?: ThreeDSecureData | null; /** * The original merchant reference to cancel. */ @@ -29,7 +29,7 @@ export class CancelRequest { * The original pspReference of the payment to modify. This reference is returned in: * authorisation response * authorisation notification */ 'originalReference': string; - 'platformChargebackLogic'?: PlatformChargebackLogic; + 'platformChargebackLogic'?: PlatformChargebackLogic | null; /** * Your reference for the payment modification. This reference is visible in Customer Area and in reports. Maximum length: 80 characters. */ @@ -63,7 +63,7 @@ export class CancelRequest { { "name": "mpiData", "baseName": "mpiData", - "type": "ThreeDSecureData" + "type": "ThreeDSecureData | null" }, { "name": "originalMerchantReference", @@ -78,7 +78,7 @@ export class CancelRequest { { "name": "platformChargebackLogic", "baseName": "platformChargebackLogic", - "type": "PlatformChargebackLogic" + "type": "PlatformChargebackLogic | null" }, { "name": "reference", diff --git a/src/typings/payment/captureRequest.ts b/src/typings/payment/captureRequest.ts index f9f80aeb3..ad8ef39ae 100644 --- a/src/typings/payment/captureRequest.ts +++ b/src/typings/payment/captureRequest.ts @@ -22,7 +22,7 @@ export class CaptureRequest { */ 'merchantAccount': string; 'modificationAmount': Amount; - 'mpiData'?: ThreeDSecureData; + 'mpiData'?: ThreeDSecureData | null; /** * The original merchant reference to cancel. */ @@ -31,7 +31,7 @@ export class CaptureRequest { * The original pspReference of the payment to modify. This reference is returned in: * authorisation response * authorisation notification */ 'originalReference': string; - 'platformChargebackLogic'?: PlatformChargebackLogic; + 'platformChargebackLogic'?: PlatformChargebackLogic | null; /** * Your reference for the payment modification. This reference is visible in Customer Area and in reports. Maximum length: 80 characters. */ @@ -70,7 +70,7 @@ export class CaptureRequest { { "name": "mpiData", "baseName": "mpiData", - "type": "ThreeDSecureData" + "type": "ThreeDSecureData | null" }, { "name": "originalMerchantReference", @@ -85,7 +85,7 @@ export class CaptureRequest { { "name": "platformChargebackLogic", "baseName": "platformChargebackLogic", - "type": "PlatformChargebackLogic" + "type": "PlatformChargebackLogic | null" }, { "name": "reference", diff --git a/src/typings/payment/donationRequest.ts b/src/typings/payment/donationRequest.ts index e2b6e3e50..c96da773a 100644 --- a/src/typings/payment/donationRequest.ts +++ b/src/typings/payment/donationRequest.ts @@ -24,7 +24,7 @@ export class DonationRequest { * The original pspReference of the payment to modify. This reference is returned in: * authorisation response * authorisation notification */ 'originalReference'?: string; - 'platformChargebackLogic'?: PlatformChargebackLogic; + 'platformChargebackLogic'?: PlatformChargebackLogic | null; /** * Your reference for the payment modification. This reference is visible in Customer Area and in reports. Maximum length: 80 characters. */ @@ -56,7 +56,7 @@ export class DonationRequest { { "name": "platformChargebackLogic", "baseName": "platformChargebackLogic", - "type": "PlatformChargebackLogic" + "type": "PlatformChargebackLogic | null" }, { "name": "reference", diff --git a/src/typings/payment/forexQuote.ts b/src/typings/payment/forexQuote.ts index 60d64ac66..1ef40e192 100644 --- a/src/typings/payment/forexQuote.ts +++ b/src/typings/payment/forexQuote.ts @@ -18,18 +18,18 @@ export class ForexQuote { * The account type. */ 'accountType'?: string; - 'baseAmount'?: Amount; + 'baseAmount'?: Amount | null; /** * The base points. */ 'basePoints': number; - 'buy'?: Amount; - 'interbank'?: Amount; + 'buy'?: Amount | null; + 'interbank'?: Amount | null; /** * The reference assigned to the forex quote request. */ 'reference'?: string; - 'sell'?: Amount; + 'sell'?: Amount | null; /** * The signature to validate the integrity. */ @@ -63,7 +63,7 @@ export class ForexQuote { { "name": "baseAmount", "baseName": "baseAmount", - "type": "Amount" + "type": "Amount | null" }, { "name": "basePoints", @@ -73,12 +73,12 @@ export class ForexQuote { { "name": "buy", "baseName": "buy", - "type": "Amount" + "type": "Amount | null" }, { "name": "interbank", "baseName": "interbank", - "type": "Amount" + "type": "Amount | null" }, { "name": "reference", @@ -88,7 +88,7 @@ export class ForexQuote { { "name": "sell", "baseName": "sell", - "type": "Amount" + "type": "Amount | null" }, { "name": "signature", diff --git a/src/typings/payment/fraudCheckResultWrapper.ts b/src/typings/payment/fraudCheckResultWrapper.ts index 37b094e68..841551c5e 100644 --- a/src/typings/payment/fraudCheckResultWrapper.ts +++ b/src/typings/payment/fraudCheckResultWrapper.ts @@ -10,7 +10,7 @@ import { FraudCheckResult } from './fraudCheckResult'; export class FraudCheckResultWrapper { - 'FraudCheckResult'?: FraudCheckResult; + 'FraudCheckResult'?: FraudCheckResult | null; static discriminator: string | undefined = undefined; @@ -18,7 +18,7 @@ export class FraudCheckResultWrapper { { "name": "FraudCheckResult", "baseName": "FraudCheckResult", - "type": "FraudCheckResult" + "type": "FraudCheckResult | null" } ]; static getAttributeTypeMap() { diff --git a/src/typings/payment/fundDestination.ts b/src/typings/payment/fundDestination.ts index 1fb0ab811..b9ed6ae8e 100644 --- a/src/typings/payment/fundDestination.ts +++ b/src/typings/payment/fundDestination.ts @@ -21,8 +21,8 @@ export class FundDestination { * a map of name/value pairs for passing in additional/industry-specific data */ 'additionalData'?: { [key: string]: string; }; - 'billingAddress'?: Address; - 'card'?: Card; + 'billingAddress'?: Address | null; + 'card'?: Card | null; /** * The `recurringDetailReference` you want to use for this payment. The value `LATEST` can be used to select the most recently stored recurring detail. */ @@ -31,12 +31,12 @@ export class FundDestination { * the email address of the person */ 'shopperEmail'?: string; - 'shopperName'?: Name; + 'shopperName'?: Name | null; /** * Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. Minimum length: 3 characters. > Your reference must not include personally identifiable information (PII), for example name or email address. */ 'shopperReference'?: string; - 'subMerchant'?: SubMerchant; + 'subMerchant'?: SubMerchant | null; /** * the telephone number of the person */ @@ -62,12 +62,12 @@ export class FundDestination { { "name": "billingAddress", "baseName": "billingAddress", - "type": "Address" + "type": "Address | null" }, { "name": "card", "baseName": "card", - "type": "Card" + "type": "Card | null" }, { "name": "selectedRecurringDetailReference", @@ -82,7 +82,7 @@ export class FundDestination { { "name": "shopperName", "baseName": "shopperName", - "type": "Name" + "type": "Name | null" }, { "name": "shopperReference", @@ -92,7 +92,7 @@ export class FundDestination { { "name": "subMerchant", "baseName": "subMerchant", - "type": "SubMerchant" + "type": "SubMerchant | null" }, { "name": "telephoneNumber", diff --git a/src/typings/payment/fundSource.ts b/src/typings/payment/fundSource.ts index 0c45ca290..14eec5d74 100644 --- a/src/typings/payment/fundSource.ts +++ b/src/typings/payment/fundSource.ts @@ -16,13 +16,13 @@ export class FundSource { * A map of name-value pairs for passing additional or industry-specific data. */ 'additionalData'?: { [key: string]: string; }; - 'billingAddress'?: Address; - 'card'?: Card; + 'billingAddress'?: Address | null; + 'card'?: Card | null; /** * Email address of the person. */ 'shopperEmail'?: string; - 'shopperName'?: Name; + 'shopperName'?: Name | null; /** * Phone number of the person */ @@ -39,12 +39,12 @@ export class FundSource { { "name": "billingAddress", "baseName": "billingAddress", - "type": "Address" + "type": "Address | null" }, { "name": "card", "baseName": "card", - "type": "Card" + "type": "Card | null" }, { "name": "shopperEmail", @@ -54,7 +54,7 @@ export class FundSource { { "name": "shopperName", "baseName": "shopperName", - "type": "Name" + "type": "Name | null" }, { "name": "telephoneNumber", diff --git a/src/typings/payment/merchantRiskIndicator.ts b/src/typings/payment/merchantRiskIndicator.ts index ee8d5a6a1..5c9cecb61 100644 --- a/src/typings/payment/merchantRiskIndicator.ts +++ b/src/typings/payment/merchantRiskIndicator.ts @@ -33,7 +33,7 @@ export class MerchantRiskIndicator { * The estimated delivery time for the shopper to receive the goods. Allowed values: * `electronicDelivery` * `sameDayShipping` * `overnightShipping` * `twoOrMoreDaysShipping` */ 'deliveryTimeframe'?: MerchantRiskIndicator.DeliveryTimeframeEnum; - 'giftCardAmount'?: Amount; + 'giftCardAmount'?: Amount | null; /** * For prepaid or gift card purchase, total count of individual prepaid or gift cards/codes purchased. */ @@ -98,7 +98,7 @@ export class MerchantRiskIndicator { { "name": "giftCardAmount", "baseName": "giftCardAmount", - "type": "Amount" + "type": "Amount | null" }, { "name": "giftCardCount", diff --git a/src/typings/payment/paymentRequest.ts b/src/typings/payment/paymentRequest.ts index c417e115f..abf487eed 100644 --- a/src/typings/payment/paymentRequest.ts +++ b/src/typings/payment/paymentRequest.ts @@ -29,28 +29,28 @@ import { ThreeDS2RequestData } from './threeDS2RequestData'; import { ThreeDSecureData } from './threeDSecureData'; export class PaymentRequest { - 'accountInfo'?: AccountInfo; - 'additionalAmount'?: Amount; + 'accountInfo'?: AccountInfo | null; + 'additionalAmount'?: Amount | null; /** * This field contains additional data, which may be required for a particular payment request. The `additionalData` object consists of entries, each of which includes the key and value. */ 'additionalData'?: { [key: string]: string; }; 'amount': Amount; - 'applicationInfo'?: ApplicationInfo; - 'bankAccount'?: BankAccount; - 'billingAddress'?: Address; - 'browserInfo'?: BrowserInfo; + 'applicationInfo'?: ApplicationInfo | null; + 'bankAccount'?: BankAccount | null; + 'billingAddress'?: Address | null; + 'browserInfo'?: BrowserInfo | null; /** * The delay between the authorisation and scheduled auto-capture, specified in hours. */ 'captureDelayHours'?: number; - 'card'?: Card; + 'card'?: Card | null; /** * The shopper\'s date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD */ 'dateOfBirth'?: string; - 'dccQuote'?: ForexQuote; - 'deliveryAddress'?: Address; + 'dccQuote'?: ForexQuote | null; + 'deliveryAddress'?: Address | null; /** * The date and time the purchased goods should be delivered. Format [ISO 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: 2017-07-17T13:42:40.428+01:00 */ @@ -67,18 +67,18 @@ export class PaymentRequest { * An integer value that is added to the normal fraud score. The value can be either positive or negative. */ 'fraudOffset'?: number; - 'fundDestination'?: FundDestination; - 'fundSource'?: FundSource; + 'fundDestination'?: FundDestination | null; + 'fundSource'?: FundSource | null; /** * The funding source that should be used when multiple sources are available. For Brazilian combo cards, by default the funding source is credit. To use debit, set this value to **debit**. */ 'fundingSource'?: PaymentRequest.FundingSourceEnum; - 'installments'?: Installments; + 'installments'?: Installments | null; /** * The `localizedShopperStatement` field lets you use dynamic values for your shopper statement in a local character set. If not supplied, left empty, or for cross-border transactions, **shopperStatement** is used. Adyen currently supports the ja-Kana character set for Visa and Mastercard payments in Japan using Japanese cards. This character set supports: * UTF-8 based Katakana, capital letters, numbers and special characters. * Half-width or full-width characters. */ 'localizedShopperStatement'?: { [key: string]: string; }; - 'mandate'?: Mandate; + 'mandate'?: Mandate | null; /** * The [merchant category code](https://en.wikipedia.org/wiki/Merchant_category_code) (MCC) is a four-digit number, which relates to a particular market segment. This code reflects the predominant activity that is conducted by the merchant. */ @@ -91,12 +91,12 @@ export class PaymentRequest { * This reference allows linking multiple transactions to each other for reporting purposes (i.e. order auth-rate). The reference should be unique per billing cycle. The same merchant order reference should never be reused after the first authorised attempt. If used, this field should be supplied for all incoming authorisations. > We strongly recommend you send the `merchantOrderReference` value to benefit from linking payment requests when authorisation retries take place. In addition, we recommend you provide `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and `retry.skipRetry` values in `PaymentRequest.additionalData`. */ 'merchantOrderReference'?: string; - 'merchantRiskIndicator'?: MerchantRiskIndicator; + 'merchantRiskIndicator'?: MerchantRiskIndicator | null; /** * Metadata consists of entries, each of which includes a key and a value. Limits: * Maximum 20 key-value pairs per request. When exceeding, the \"177\" error occurs: \"Metadata size exceeds limit\". * Maximum 20 characters per key. * Maximum 80 characters per value. */ 'metadata'?: { [key: string]: string; }; - 'mpiData'?: ThreeDSecureData; + 'mpiData'?: ThreeDSecureData | null; /** * The two-character country code of the shopper\'s nationality. */ @@ -105,8 +105,8 @@ export class PaymentRequest { * When you are doing multiple partial (gift card) payments, this is the `pspReference` of the first payment. We use this to link the multiple payments to each other. As your own reference for linking multiple payments, use the `merchantOrderReference`instead. */ 'orderReference'?: string; - 'platformChargebackLogic'?: PlatformChargebackLogic; - 'recurring'?: Recurring; + 'platformChargebackLogic'?: PlatformChargebackLogic | null; + 'recurring'?: Recurring | null; /** * Defines a recurring payment type. Required when creating a token to store payment details or using stored payment details. Allowed values: * `Subscription` – A transaction for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have variable amounts. For example, automatic top-ups when a cardholder\'s balance drops below a certain amount. */ @@ -115,7 +115,7 @@ export class PaymentRequest { * The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. */ 'reference': string; - 'secureRemoteCommerceCheckoutData'?: SecureRemoteCommerceCheckoutData; + 'secureRemoteCommerceCheckoutData'?: SecureRemoteCommerceCheckoutData | null; /** * Some payment methods require defining a value for this field to specify how to process the transaction. For the Bancontact payment method, it can be set to: * `maestro` (default), to be processed like a Maestro card, or * `bcmc`, to be processed like a Bancontact card. */ @@ -144,7 +144,7 @@ export class PaymentRequest { * The combination of a language code and a country code to specify the language to be used in the payment. */ 'shopperLocale'?: string; - 'shopperName'?: Name; + 'shopperName'?: Name | null; /** * Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. Minimum length: 3 characters. > Your reference must not include personally identifiable information (PII), for example name or email address. */ @@ -169,7 +169,7 @@ export class PaymentRequest { * The shopper\'s telephone number. */ 'telephoneNumber'?: string; - 'threeDS2RequestData'?: ThreeDS2RequestData; + '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. */ @@ -189,12 +189,12 @@ export class PaymentRequest { { "name": "accountInfo", "baseName": "accountInfo", - "type": "AccountInfo" + "type": "AccountInfo | null" }, { "name": "additionalAmount", "baseName": "additionalAmount", - "type": "Amount" + "type": "Amount | null" }, { "name": "additionalData", @@ -209,22 +209,22 @@ export class PaymentRequest { { "name": "applicationInfo", "baseName": "applicationInfo", - "type": "ApplicationInfo" + "type": "ApplicationInfo | null" }, { "name": "bankAccount", "baseName": "bankAccount", - "type": "BankAccount" + "type": "BankAccount | null" }, { "name": "billingAddress", "baseName": "billingAddress", - "type": "Address" + "type": "Address | null" }, { "name": "browserInfo", "baseName": "browserInfo", - "type": "BrowserInfo" + "type": "BrowserInfo | null" }, { "name": "captureDelayHours", @@ -234,7 +234,7 @@ export class PaymentRequest { { "name": "card", "baseName": "card", - "type": "Card" + "type": "Card | null" }, { "name": "dateOfBirth", @@ -244,12 +244,12 @@ export class PaymentRequest { { "name": "dccQuote", "baseName": "dccQuote", - "type": "ForexQuote" + "type": "ForexQuote | null" }, { "name": "deliveryAddress", "baseName": "deliveryAddress", - "type": "Address" + "type": "Address | null" }, { "name": "deliveryDate", @@ -274,12 +274,12 @@ export class PaymentRequest { { "name": "fundDestination", "baseName": "fundDestination", - "type": "FundDestination" + "type": "FundDestination | null" }, { "name": "fundSource", "baseName": "fundSource", - "type": "FundSource" + "type": "FundSource | null" }, { "name": "fundingSource", @@ -289,7 +289,7 @@ export class PaymentRequest { { "name": "installments", "baseName": "installments", - "type": "Installments" + "type": "Installments | null" }, { "name": "localizedShopperStatement", @@ -299,7 +299,7 @@ export class PaymentRequest { { "name": "mandate", "baseName": "mandate", - "type": "Mandate" + "type": "Mandate | null" }, { "name": "mcc", @@ -319,7 +319,7 @@ export class PaymentRequest { { "name": "merchantRiskIndicator", "baseName": "merchantRiskIndicator", - "type": "MerchantRiskIndicator" + "type": "MerchantRiskIndicator | null" }, { "name": "metadata", @@ -329,7 +329,7 @@ export class PaymentRequest { { "name": "mpiData", "baseName": "mpiData", - "type": "ThreeDSecureData" + "type": "ThreeDSecureData | null" }, { "name": "nationality", @@ -344,12 +344,12 @@ export class PaymentRequest { { "name": "platformChargebackLogic", "baseName": "platformChargebackLogic", - "type": "PlatformChargebackLogic" + "type": "PlatformChargebackLogic | null" }, { "name": "recurring", "baseName": "recurring", - "type": "Recurring" + "type": "Recurring | null" }, { "name": "recurringProcessingModel", @@ -364,7 +364,7 @@ export class PaymentRequest { { "name": "secureRemoteCommerceCheckoutData", "baseName": "secureRemoteCommerceCheckoutData", - "type": "SecureRemoteCommerceCheckoutData" + "type": "SecureRemoteCommerceCheckoutData | null" }, { "name": "selectedBrand", @@ -404,7 +404,7 @@ export class PaymentRequest { { "name": "shopperName", "baseName": "shopperName", - "type": "Name" + "type": "Name | null" }, { "name": "shopperReference", @@ -439,7 +439,7 @@ export class PaymentRequest { { "name": "threeDS2RequestData", "baseName": "threeDS2RequestData", - "type": "ThreeDS2RequestData" + "type": "ThreeDS2RequestData | null" }, { "name": "threeDSAuthenticationOnly", diff --git a/src/typings/payment/paymentRequest3d.ts b/src/typings/payment/paymentRequest3d.ts index 8a08e174f..1a819f0f4 100644 --- a/src/typings/payment/paymentRequest3d.ts +++ b/src/typings/payment/paymentRequest3d.ts @@ -21,16 +21,16 @@ import { Split } from './split'; import { ThreeDS2RequestData } from './threeDS2RequestData'; export class PaymentRequest3d { - 'accountInfo'?: AccountInfo; - 'additionalAmount'?: Amount; + 'accountInfo'?: AccountInfo | null; + 'additionalAmount'?: Amount | null; /** * This field contains additional data, which may be required for a particular payment request. The `additionalData` object consists of entries, each of which includes the key and value. */ 'additionalData'?: { [key: string]: string; }; - 'amount'?: Amount; - 'applicationInfo'?: ApplicationInfo; - 'billingAddress'?: Address; - 'browserInfo'?: BrowserInfo; + 'amount'?: Amount | null; + 'applicationInfo'?: ApplicationInfo | null; + 'billingAddress'?: Address | null; + 'browserInfo'?: BrowserInfo | null; /** * The delay between the authorisation and scheduled auto-capture, specified in hours. */ @@ -39,8 +39,8 @@ export class PaymentRequest3d { * The shopper\'s date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD */ 'dateOfBirth'?: string; - 'dccQuote'?: ForexQuote; - 'deliveryAddress'?: Address; + 'dccQuote'?: ForexQuote | null; + 'deliveryAddress'?: Address | null; /** * The date and time the purchased goods should be delivered. Format [ISO 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: 2017-07-17T13:42:40.428+01:00 */ @@ -53,7 +53,7 @@ export class PaymentRequest3d { * An integer value that is added to the normal fraud score. The value can be either positive or negative. */ 'fraudOffset'?: number; - 'installments'?: Installments; + 'installments'?: Installments | null; /** * The `localizedShopperStatement` field lets you use dynamic values for your shopper statement in a local character set. If not supplied, left empty, or for cross-border transactions, **shopperStatement** is used. Adyen currently supports the ja-Kana character set for Visa and Mastercard payments in Japan using Japanese cards. This character set supports: * UTF-8 based Katakana, capital letters, numbers and special characters. * Half-width or full-width characters. */ @@ -74,7 +74,7 @@ export class PaymentRequest3d { * This reference allows linking multiple transactions to each other for reporting purposes (i.e. order auth-rate). The reference should be unique per billing cycle. The same merchant order reference should never be reused after the first authorised attempt. If used, this field should be supplied for all incoming authorisations. > We strongly recommend you send the `merchantOrderReference` value to benefit from linking payment requests when authorisation retries take place. In addition, we recommend you provide `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and `retry.skipRetry` values in `PaymentRequest.additionalData`. */ 'merchantOrderReference'?: string; - 'merchantRiskIndicator'?: MerchantRiskIndicator; + 'merchantRiskIndicator'?: MerchantRiskIndicator | null; /** * Metadata consists of entries, each of which includes a key and a value. Limits: * Maximum 20 key-value pairs per request. When exceeding, the \"177\" error occurs: \"Metadata size exceeds limit\". * Maximum 20 characters per key. * Maximum 80 characters per value. */ @@ -87,7 +87,7 @@ export class PaymentRequest3d { * Payment authorisation response returned by the card issuer. The `paResponse` field holds the PaRes value received from the card issuer. */ 'paResponse': string; - 'recurring'?: Recurring; + 'recurring'?: Recurring | null; /** * Defines a recurring payment type. Required when creating a token to store payment details or using stored payment details. Allowed values: * `Subscription` – A transaction for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have variable amounts. For example, automatic top-ups when a cardholder\'s balance drops below a certain amount. */ @@ -124,7 +124,7 @@ export class PaymentRequest3d { * The combination of a language code and a country code to specify the language to be used in the payment. */ 'shopperLocale'?: string; - 'shopperName'?: Name; + 'shopperName'?: Name | null; /** * Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. Minimum length: 3 characters. > Your reference must not include personally identifiable information (PII), for example name or email address. */ @@ -149,7 +149,7 @@ export class PaymentRequest3d { * The shopper\'s telephone number. */ 'telephoneNumber'?: string; - 'threeDS2RequestData'?: ThreeDS2RequestData; + '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. */ @@ -169,12 +169,12 @@ export class PaymentRequest3d { { "name": "accountInfo", "baseName": "accountInfo", - "type": "AccountInfo" + "type": "AccountInfo | null" }, { "name": "additionalAmount", "baseName": "additionalAmount", - "type": "Amount" + "type": "Amount | null" }, { "name": "additionalData", @@ -184,22 +184,22 @@ export class PaymentRequest3d { { "name": "amount", "baseName": "amount", - "type": "Amount" + "type": "Amount | null" }, { "name": "applicationInfo", "baseName": "applicationInfo", - "type": "ApplicationInfo" + "type": "ApplicationInfo | null" }, { "name": "billingAddress", "baseName": "billingAddress", - "type": "Address" + "type": "Address | null" }, { "name": "browserInfo", "baseName": "browserInfo", - "type": "BrowserInfo" + "type": "BrowserInfo | null" }, { "name": "captureDelayHours", @@ -214,12 +214,12 @@ export class PaymentRequest3d { { "name": "dccQuote", "baseName": "dccQuote", - "type": "ForexQuote" + "type": "ForexQuote | null" }, { "name": "deliveryAddress", "baseName": "deliveryAddress", - "type": "Address" + "type": "Address | null" }, { "name": "deliveryDate", @@ -239,7 +239,7 @@ export class PaymentRequest3d { { "name": "installments", "baseName": "installments", - "type": "Installments" + "type": "Installments | null" }, { "name": "localizedShopperStatement", @@ -269,7 +269,7 @@ export class PaymentRequest3d { { "name": "merchantRiskIndicator", "baseName": "merchantRiskIndicator", - "type": "MerchantRiskIndicator" + "type": "MerchantRiskIndicator | null" }, { "name": "metadata", @@ -289,7 +289,7 @@ export class PaymentRequest3d { { "name": "recurring", "baseName": "recurring", - "type": "Recurring" + "type": "Recurring | null" }, { "name": "recurringProcessingModel", @@ -339,7 +339,7 @@ export class PaymentRequest3d { { "name": "shopperName", "baseName": "shopperName", - "type": "Name" + "type": "Name | null" }, { "name": "shopperReference", @@ -374,7 +374,7 @@ export class PaymentRequest3d { { "name": "threeDS2RequestData", "baseName": "threeDS2RequestData", - "type": "ThreeDS2RequestData" + "type": "ThreeDS2RequestData | null" }, { "name": "threeDSAuthenticationOnly", diff --git a/src/typings/payment/paymentRequest3ds2.ts b/src/typings/payment/paymentRequest3ds2.ts index ed2195de0..c47b68f4a 100644 --- a/src/typings/payment/paymentRequest3ds2.ts +++ b/src/typings/payment/paymentRequest3ds2.ts @@ -22,16 +22,16 @@ import { ThreeDS2RequestData } from './threeDS2RequestData'; import { ThreeDS2Result } from './threeDS2Result'; export class PaymentRequest3ds2 { - 'accountInfo'?: AccountInfo; - 'additionalAmount'?: Amount; + 'accountInfo'?: AccountInfo | null; + 'additionalAmount'?: Amount | null; /** * This field contains additional data, which may be required for a particular payment request. The `additionalData` object consists of entries, each of which includes the key and value. */ 'additionalData'?: { [key: string]: string; }; 'amount': Amount; - 'applicationInfo'?: ApplicationInfo; - 'billingAddress'?: Address; - 'browserInfo'?: BrowserInfo; + 'applicationInfo'?: ApplicationInfo | null; + 'billingAddress'?: Address | null; + 'browserInfo'?: BrowserInfo | null; /** * The delay between the authorisation and scheduled auto-capture, specified in hours. */ @@ -40,8 +40,8 @@ export class PaymentRequest3ds2 { * The shopper\'s date of birth. Format [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD */ 'dateOfBirth'?: string; - 'dccQuote'?: ForexQuote; - 'deliveryAddress'?: Address; + 'dccQuote'?: ForexQuote | null; + 'deliveryAddress'?: Address | null; /** * The date and time the purchased goods should be delivered. Format [ISO 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: 2017-07-17T13:42:40.428+01:00 */ @@ -54,7 +54,7 @@ export class PaymentRequest3ds2 { * An integer value that is added to the normal fraud score. The value can be either positive or negative. */ 'fraudOffset'?: number; - 'installments'?: Installments; + 'installments'?: Installments | null; /** * The `localizedShopperStatement` field lets you use dynamic values for your shopper statement in a local character set. If not supplied, left empty, or for cross-border transactions, **shopperStatement** is used. Adyen currently supports the ja-Kana character set for Visa and Mastercard payments in Japan using Japanese cards. This character set supports: * UTF-8 based Katakana, capital letters, numbers and special characters. * Half-width or full-width characters. */ @@ -71,7 +71,7 @@ export class PaymentRequest3ds2 { * This reference allows linking multiple transactions to each other for reporting purposes (i.e. order auth-rate). The reference should be unique per billing cycle. The same merchant order reference should never be reused after the first authorised attempt. If used, this field should be supplied for all incoming authorisations. > We strongly recommend you send the `merchantOrderReference` value to benefit from linking payment requests when authorisation retries take place. In addition, we recommend you provide `retry.orderAttemptNumber`, `retry.chainAttemptNumber`, and `retry.skipRetry` values in `PaymentRequest.additionalData`. */ 'merchantOrderReference'?: string; - 'merchantRiskIndicator'?: MerchantRiskIndicator; + 'merchantRiskIndicator'?: MerchantRiskIndicator | null; /** * Metadata consists of entries, each of which includes a key and a value. Limits: * Maximum 20 key-value pairs per request. When exceeding, the \"177\" error occurs: \"Metadata size exceeds limit\". * Maximum 20 characters per key. * Maximum 80 characters per value. */ @@ -80,7 +80,7 @@ export class PaymentRequest3ds2 { * When you are doing multiple partial (gift card) payments, this is the `pspReference` of the first payment. We use this to link the multiple payments to each other. As your own reference for linking multiple payments, use the `merchantOrderReference`instead. */ 'orderReference'?: string; - 'recurring'?: Recurring; + 'recurring'?: Recurring | null; /** * Defines a recurring payment type. Required when creating a token to store payment details or using stored payment details. Allowed values: * `Subscription` – A transaction for a fixed or variable amount, which follows a fixed schedule. * `CardOnFile` – With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction. * `UnscheduledCardOnFile` – An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have variable amounts. For example, automatic top-ups when a cardholder\'s balance drops below a certain amount. */ @@ -117,7 +117,7 @@ export class PaymentRequest3ds2 { * The combination of a language code and a country code to specify the language to be used in the payment. */ 'shopperLocale'?: string; - 'shopperName'?: Name; + 'shopperName'?: Name | null; /** * Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. Minimum length: 3 characters. > Your reference must not include personally identifiable information (PII), for example name or email address. */ @@ -142,8 +142,8 @@ export class PaymentRequest3ds2 { * The shopper\'s telephone number. */ 'telephoneNumber'?: string; - 'threeDS2RequestData'?: ThreeDS2RequestData; - 'threeDS2Result'?: ThreeDS2Result; + 'threeDS2RequestData'?: ThreeDS2RequestData | null; + 'threeDS2Result'?: ThreeDS2Result | null; /** * The ThreeDS2Token that was returned in the /authorise call. */ @@ -167,12 +167,12 @@ export class PaymentRequest3ds2 { { "name": "accountInfo", "baseName": "accountInfo", - "type": "AccountInfo" + "type": "AccountInfo | null" }, { "name": "additionalAmount", "baseName": "additionalAmount", - "type": "Amount" + "type": "Amount | null" }, { "name": "additionalData", @@ -187,17 +187,17 @@ export class PaymentRequest3ds2 { { "name": "applicationInfo", "baseName": "applicationInfo", - "type": "ApplicationInfo" + "type": "ApplicationInfo | null" }, { "name": "billingAddress", "baseName": "billingAddress", - "type": "Address" + "type": "Address | null" }, { "name": "browserInfo", "baseName": "browserInfo", - "type": "BrowserInfo" + "type": "BrowserInfo | null" }, { "name": "captureDelayHours", @@ -212,12 +212,12 @@ export class PaymentRequest3ds2 { { "name": "dccQuote", "baseName": "dccQuote", - "type": "ForexQuote" + "type": "ForexQuote | null" }, { "name": "deliveryAddress", "baseName": "deliveryAddress", - "type": "Address" + "type": "Address | null" }, { "name": "deliveryDate", @@ -237,7 +237,7 @@ export class PaymentRequest3ds2 { { "name": "installments", "baseName": "installments", - "type": "Installments" + "type": "Installments | null" }, { "name": "localizedShopperStatement", @@ -262,7 +262,7 @@ export class PaymentRequest3ds2 { { "name": "merchantRiskIndicator", "baseName": "merchantRiskIndicator", - "type": "MerchantRiskIndicator" + "type": "MerchantRiskIndicator | null" }, { "name": "metadata", @@ -277,7 +277,7 @@ export class PaymentRequest3ds2 { { "name": "recurring", "baseName": "recurring", - "type": "Recurring" + "type": "Recurring | null" }, { "name": "recurringProcessingModel", @@ -327,7 +327,7 @@ export class PaymentRequest3ds2 { { "name": "shopperName", "baseName": "shopperName", - "type": "Name" + "type": "Name | null" }, { "name": "shopperReference", @@ -362,12 +362,12 @@ export class PaymentRequest3ds2 { { "name": "threeDS2RequestData", "baseName": "threeDS2RequestData", - "type": "ThreeDS2RequestData" + "type": "ThreeDS2RequestData | null" }, { "name": "threeDS2Result", "baseName": "threeDS2Result", - "type": "ThreeDS2Result" + "type": "ThreeDS2Result | null" }, { "name": "threeDS2Token", diff --git a/src/typings/payment/paymentResult.ts b/src/typings/payment/paymentResult.ts index d778ae891..fa948facf 100644 --- a/src/typings/payment/paymentResult.ts +++ b/src/typings/payment/paymentResult.ts @@ -19,12 +19,12 @@ export class PaymentResult { * Authorisation code: * When the payment is authorised successfully, this field holds the authorisation code for the payment. * When the payment is not authorised, this field is empty. */ 'authCode'?: string; - 'dccAmount'?: Amount; + 'dccAmount'?: Amount | null; /** * Cryptographic signature used to verify `dccQuote`. > This value only applies if you have implemented Dynamic Currency Conversion. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). */ 'dccSignature'?: string; - 'fraudResult'?: FraudResult; + 'fraudResult'?: FraudResult | null; /** * The URL to direct the shopper to. > In case of SecurePlus, do not redirect a shopper to this URL. */ @@ -66,7 +66,7 @@ export class PaymentResult { { "name": "dccAmount", "baseName": "dccAmount", - "type": "Amount" + "type": "Amount | null" }, { "name": "dccSignature", @@ -76,7 +76,7 @@ export class PaymentResult { { "name": "fraudResult", "baseName": "fraudResult", - "type": "FraudResult" + "type": "FraudResult | null" }, { "name": "issuerUrl", diff --git a/src/typings/payment/refundRequest.ts b/src/typings/payment/refundRequest.ts index 32541db86..094db6201 100644 --- a/src/typings/payment/refundRequest.ts +++ b/src/typings/payment/refundRequest.ts @@ -22,7 +22,7 @@ export class RefundRequest { */ 'merchantAccount': string; 'modificationAmount': Amount; - 'mpiData'?: ThreeDSecureData; + 'mpiData'?: ThreeDSecureData | null; /** * The original merchant reference to cancel. */ @@ -31,7 +31,7 @@ export class RefundRequest { * The original pspReference of the payment to modify. This reference is returned in: * authorisation response * authorisation notification */ 'originalReference': string; - 'platformChargebackLogic'?: PlatformChargebackLogic; + 'platformChargebackLogic'?: PlatformChargebackLogic | null; /** * Your reference for the payment modification. This reference is visible in Customer Area and in reports. Maximum length: 80 characters. */ @@ -70,7 +70,7 @@ export class RefundRequest { { "name": "mpiData", "baseName": "mpiData", - "type": "ThreeDSecureData" + "type": "ThreeDSecureData | null" }, { "name": "originalMerchantReference", @@ -85,7 +85,7 @@ export class RefundRequest { { "name": "platformChargebackLogic", "baseName": "platformChargebackLogic", - "type": "PlatformChargebackLogic" + "type": "PlatformChargebackLogic | null" }, { "name": "reference", diff --git a/src/typings/payment/split.ts b/src/typings/payment/split.ts index 936b657f7..02221a61b 100644 --- a/src/typings/payment/split.ts +++ b/src/typings/payment/split.ts @@ -14,7 +14,7 @@ export class Split { * The unique identifier of the account to which the split amount is booked. Required if `type` is **MarketPlace** or **BalanceAccount**. * [Classic Platforms integration](https://docs.adyen.com/classic-platforms): The [`accountCode`](https://docs.adyen.com/api-explorer/Account/latest/post/updateAccount#request-accountCode) of the account to which the split amount is booked. * [Balance Platform](https://docs.adyen.com/adyen-for-platforms-model): The [`balanceAccountId`](https://docs.adyen.com/api-explorer/balanceplatform/latest/get/balanceAccounts/_id_#path-id) of the account to which the split amount is booked. */ 'account'?: string; - 'amount'?: SplitAmount; + 'amount'?: SplitAmount | null; /** * Your description for the split item. */ @@ -39,7 +39,7 @@ export class Split { { "name": "amount", "baseName": "amount", - "type": "SplitAmount" + "type": "SplitAmount | null" }, { "name": "description", diff --git a/src/typings/payment/technicalCancelRequest.ts b/src/typings/payment/technicalCancelRequest.ts index 4c82fd7af..0cf3ab704 100644 --- a/src/typings/payment/technicalCancelRequest.ts +++ b/src/typings/payment/technicalCancelRequest.ts @@ -21,13 +21,13 @@ export class TechnicalCancelRequest { * The merchant account that is used to process the payment. */ 'merchantAccount': string; - 'modificationAmount'?: Amount; - 'mpiData'?: ThreeDSecureData; + 'modificationAmount'?: Amount | null; + 'mpiData'?: ThreeDSecureData | null; /** * The original merchant reference to cancel. */ 'originalMerchantReference': string; - 'platformChargebackLogic'?: PlatformChargebackLogic; + 'platformChargebackLogic'?: PlatformChargebackLogic | null; /** * Your reference for the payment modification. This reference is visible in Customer Area and in reports. Maximum length: 80 characters. */ @@ -61,12 +61,12 @@ export class TechnicalCancelRequest { { "name": "modificationAmount", "baseName": "modificationAmount", - "type": "Amount" + "type": "Amount | null" }, { "name": "mpiData", "baseName": "mpiData", - "type": "ThreeDSecureData" + "type": "ThreeDSecureData | null" }, { "name": "originalMerchantReference", @@ -76,7 +76,7 @@ export class TechnicalCancelRequest { { "name": "platformChargebackLogic", "baseName": "platformChargebackLogic", - "type": "PlatformChargebackLogic" + "type": "PlatformChargebackLogic | null" }, { "name": "reference", diff --git a/src/typings/payment/threeDS2RequestData.ts b/src/typings/payment/threeDS2RequestData.ts index 7d4152346..09ecb4511 100644 --- a/src/typings/payment/threeDS2RequestData.ts +++ b/src/typings/payment/threeDS2RequestData.ts @@ -15,7 +15,7 @@ import { ThreeDSRequestorAuthenticationInfo } from './threeDSRequestorAuthentica import { ThreeDSRequestorPriorAuthenticationInfo } from './threeDSRequestorPriorAuthenticationInfo'; export class ThreeDS2RequestData { - 'acctInfo'?: AcctInfo; + 'acctInfo'?: AcctInfo | null; /** * Indicates the type of account. For example, for a multi-account card product. Length: 2 characters. Allowed values: * **01** — Not applicable * **02** — Credit * **03** — Debit */ @@ -50,8 +50,8 @@ export class ThreeDS2RequestData { * The environment of the shopper. Allowed values: * `app` * `browser` */ 'deviceChannel': string; - 'deviceRenderOptions'?: DeviceRenderOptions; - 'homePhone'?: Phone; + 'deviceRenderOptions'?: DeviceRenderOptions | null; + 'homePhone'?: Phone | null; /** * Required for merchants that have been enrolled for 3D Secure 2 by another party than Adyen, mostly [authentication-only integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). The `mcc` is a four-digit code with which the previously given `acquirerMerchantID` is registered at the scheme. */ @@ -64,7 +64,7 @@ export class ThreeDS2RequestData { * The `messageVersion` value indicating the 3D Secure 2 protocol version. */ 'messageVersion'?: string; - 'mobilePhone'?: Phone; + 'mobilePhone'?: Phone | null; /** * URL to where the issuer should send the `CRes`. Required if you are not using components for `channel` **Web** or if you are using classic integration `deviceChannel` **browser**. */ @@ -97,7 +97,7 @@ export class ThreeDS2RequestData { * The `sdkEncData` value as received from the 3D Secure 2 SDK. Required for `deviceChannel` set to **app**. */ 'sdkEncData'?: string; - 'sdkEphemPubKey'?: SDKEphemPubKey; + 'sdkEphemPubKey'?: SDKEphemPubKey | null; /** * The maximum amount of time in minutes for the 3D Secure 2 authentication process. Optional and only for `deviceChannel` set to **app**. Defaults to **60** minutes. */ @@ -122,7 +122,7 @@ export class ThreeDS2RequestData { * Indicates the type of Authentication request. */ 'threeDSRequestorAuthenticationInd'?: string; - 'threeDSRequestorAuthenticationInfo'?: ThreeDSRequestorAuthenticationInfo; + 'threeDSRequestorAuthenticationInfo'?: ThreeDSRequestorAuthenticationInfo | null; /** * Indicates whether a challenge is requested for this transaction. Possible values: * **01** — No preference * **02** — No challenge requested * **03** — Challenge requested (3DS Requestor preference) * **04** — Challenge requested (Mandate) * **05** — No challenge (transactional risk analysis is already performed) * **06** — Data Only */ @@ -135,7 +135,7 @@ export class ThreeDS2RequestData { * Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only) for Visa. Unique 3D Secure requestor name assigned by the Directory Server when you enrol for 3D Secure 2. */ 'threeDSRequestorName'?: string; - 'threeDSRequestorPriorAuthenticationInfo'?: ThreeDSRequestorPriorAuthenticationInfo; + 'threeDSRequestorPriorAuthenticationInfo'?: ThreeDSRequestorPriorAuthenticationInfo | null; /** * URL of the (customer service) website that will be shown to the shopper in case of technical errors during the 3D Secure 2 process. */ @@ -152,7 +152,7 @@ export class ThreeDS2RequestData { * The `whiteListStatus` value returned from a previous 3D Secure 2 transaction, only applicable for 3D Secure 2 protocol version 2.2.0. */ 'whiteListStatus'?: string; - 'workPhone'?: Phone; + 'workPhone'?: Phone | null; static discriminator: string | undefined = undefined; @@ -160,7 +160,7 @@ export class ThreeDS2RequestData { { "name": "acctInfo", "baseName": "acctInfo", - "type": "AcctInfo" + "type": "AcctInfo | null" }, { "name": "acctType", @@ -200,12 +200,12 @@ export class ThreeDS2RequestData { { "name": "deviceRenderOptions", "baseName": "deviceRenderOptions", - "type": "DeviceRenderOptions" + "type": "DeviceRenderOptions | null" }, { "name": "homePhone", "baseName": "homePhone", - "type": "Phone" + "type": "Phone | null" }, { "name": "mcc", @@ -225,7 +225,7 @@ export class ThreeDS2RequestData { { "name": "mobilePhone", "baseName": "mobilePhone", - "type": "Phone" + "type": "Phone | null" }, { "name": "notificationURL", @@ -270,7 +270,7 @@ export class ThreeDS2RequestData { { "name": "sdkEphemPubKey", "baseName": "sdkEphemPubKey", - "type": "SDKEphemPubKey" + "type": "SDKEphemPubKey | null" }, { "name": "sdkMaxTimeout", @@ -305,7 +305,7 @@ export class ThreeDS2RequestData { { "name": "threeDSRequestorAuthenticationInfo", "baseName": "threeDSRequestorAuthenticationInfo", - "type": "ThreeDSRequestorAuthenticationInfo" + "type": "ThreeDSRequestorAuthenticationInfo | null" }, { "name": "threeDSRequestorChallengeInd", @@ -325,7 +325,7 @@ export class ThreeDS2RequestData { { "name": "threeDSRequestorPriorAuthenticationInfo", "baseName": "threeDSRequestorPriorAuthenticationInfo", - "type": "ThreeDSRequestorPriorAuthenticationInfo" + "type": "ThreeDSRequestorPriorAuthenticationInfo | null" }, { "name": "threeDSRequestorURL", @@ -350,7 +350,7 @@ export class ThreeDS2RequestData { { "name": "workPhone", "baseName": "workPhone", - "type": "Phone" + "type": "Phone | null" } ]; static getAttributeTypeMap() { diff --git a/src/typings/payment/threeDS2ResultResponse.ts b/src/typings/payment/threeDS2ResultResponse.ts index 4570be2ae..d00f6147f 100644 --- a/src/typings/payment/threeDS2ResultResponse.ts +++ b/src/typings/payment/threeDS2ResultResponse.ts @@ -10,7 +10,7 @@ import { ThreeDS2Result } from './threeDS2Result'; export class ThreeDS2ResultResponse { - 'threeDS2Result'?: ThreeDS2Result; + 'threeDS2Result'?: ThreeDS2Result | null; static discriminator: string | undefined = undefined; @@ -18,7 +18,7 @@ export class ThreeDS2ResultResponse { { "name": "threeDS2Result", "baseName": "threeDS2Result", - "type": "ThreeDS2Result" + "type": "ThreeDS2Result | null" } ]; static getAttributeTypeMap() { diff --git a/src/typings/payment/voidPendingRefundRequest.ts b/src/typings/payment/voidPendingRefundRequest.ts index aef269317..3badce197 100644 --- a/src/typings/payment/voidPendingRefundRequest.ts +++ b/src/typings/payment/voidPendingRefundRequest.ts @@ -21,8 +21,8 @@ export class VoidPendingRefundRequest { * The merchant account that is used to process the payment. */ 'merchantAccount': string; - 'modificationAmount'?: Amount; - 'mpiData'?: ThreeDSecureData; + 'modificationAmount'?: Amount | null; + 'mpiData'?: ThreeDSecureData | null; /** * The original merchant reference to cancel. */ @@ -31,7 +31,7 @@ export class VoidPendingRefundRequest { * The original pspReference of the payment to modify. This reference is returned in: * authorisation response * authorisation notification */ 'originalReference'?: string; - 'platformChargebackLogic'?: PlatformChargebackLogic; + 'platformChargebackLogic'?: PlatformChargebackLogic | null; /** * Your reference for the payment modification. This reference is visible in Customer Area and in reports. Maximum length: 80 characters. */ @@ -65,12 +65,12 @@ export class VoidPendingRefundRequest { { "name": "modificationAmount", "baseName": "modificationAmount", - "type": "Amount" + "type": "Amount | null" }, { "name": "mpiData", "baseName": "mpiData", - "type": "ThreeDSecureData" + "type": "ThreeDSecureData | null" }, { "name": "originalMerchantReference", @@ -85,7 +85,7 @@ export class VoidPendingRefundRequest { { "name": "platformChargebackLogic", "baseName": "platformChargebackLogic", - "type": "PlatformChargebackLogic" + "type": "PlatformChargebackLogic | null" }, { "name": "reference", diff --git a/src/typings/payout/fraudCheckResultWrapper.ts b/src/typings/payout/fraudCheckResultWrapper.ts index 37b094e68..841551c5e 100644 --- a/src/typings/payout/fraudCheckResultWrapper.ts +++ b/src/typings/payout/fraudCheckResultWrapper.ts @@ -10,7 +10,7 @@ import { FraudCheckResult } from './fraudCheckResult'; export class FraudCheckResultWrapper { - 'FraudCheckResult'?: FraudCheckResult; + 'FraudCheckResult'?: FraudCheckResult | null; static discriminator: string | undefined = undefined; @@ -18,7 +18,7 @@ export class FraudCheckResultWrapper { { "name": "FraudCheckResult", "baseName": "FraudCheckResult", - "type": "FraudCheckResult" + "type": "FraudCheckResult | null" } ]; static getAttributeTypeMap() { diff --git a/src/typings/payout/fundSource.ts b/src/typings/payout/fundSource.ts index 0c45ca290..14eec5d74 100644 --- a/src/typings/payout/fundSource.ts +++ b/src/typings/payout/fundSource.ts @@ -16,13 +16,13 @@ export class FundSource { * A map of name-value pairs for passing additional or industry-specific data. */ 'additionalData'?: { [key: string]: string; }; - 'billingAddress'?: Address; - 'card'?: Card; + 'billingAddress'?: Address | null; + 'card'?: Card | null; /** * Email address of the person. */ 'shopperEmail'?: string; - 'shopperName'?: Name; + 'shopperName'?: Name | null; /** * Phone number of the person */ @@ -39,12 +39,12 @@ export class FundSource { { "name": "billingAddress", "baseName": "billingAddress", - "type": "Address" + "type": "Address | null" }, { "name": "card", "baseName": "card", - "type": "Card" + "type": "Card | null" }, { "name": "shopperEmail", @@ -54,7 +54,7 @@ export class FundSource { { "name": "shopperName", "baseName": "shopperName", - "type": "Name" + "type": "Name | null" }, { "name": "telephoneNumber", diff --git a/src/typings/payout/payoutRequest.ts b/src/typings/payout/payoutRequest.ts index cd64f288a..c7b61d21c 100644 --- a/src/typings/payout/payoutRequest.ts +++ b/src/typings/payout/payoutRequest.ts @@ -16,18 +16,18 @@ import { Recurring } from './recurring'; export class PayoutRequest { 'amount': Amount; - 'billingAddress'?: Address; - 'card'?: Card; + 'billingAddress'?: Address | null; + 'card'?: Card | null; /** * An integer value that is added to the normal fraud score. The value can be either positive or negative. */ 'fraudOffset'?: number; - 'fundSource'?: FundSource; + 'fundSource'?: FundSource | null; /** * The merchant account identifier, with which you want to process the transaction. */ 'merchantAccount': string; - 'recurring'?: Recurring; + 'recurring'?: Recurring | null; /** * The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement. If you need to provide multiple references for a transaction, separate them with hyphens (\"-\"). Maximum length: 80 characters. */ @@ -44,7 +44,7 @@ export class PayoutRequest { * 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. */ 'shopperInteraction'?: PayoutRequest.ShopperInteractionEnum; - 'shopperName'?: Name; + 'shopperName'?: Name | null; /** * Required for recurring payments. Your reference to uniquely identify this shopper, for example user ID or account ID. Minimum length: 3 characters. > Your reference must not include personally identifiable information (PII), for example name or email address. */ @@ -65,12 +65,12 @@ export class PayoutRequest { { "name": "billingAddress", "baseName": "billingAddress", - "type": "Address" + "type": "Address | null" }, { "name": "card", "baseName": "card", - "type": "Card" + "type": "Card | null" }, { "name": "fraudOffset", @@ -80,7 +80,7 @@ export class PayoutRequest { { "name": "fundSource", "baseName": "fundSource", - "type": "FundSource" + "type": "FundSource | null" }, { "name": "merchantAccount", @@ -90,7 +90,7 @@ export class PayoutRequest { { "name": "recurring", "baseName": "recurring", - "type": "Recurring" + "type": "Recurring | null" }, { "name": "reference", @@ -115,7 +115,7 @@ export class PayoutRequest { { "name": "shopperName", "baseName": "shopperName", - "type": "Name" + "type": "Name | null" }, { "name": "shopperReference", diff --git a/src/typings/payout/payoutResponse.ts b/src/typings/payout/payoutResponse.ts index a14046900..403880054 100644 --- a/src/typings/payout/payoutResponse.ts +++ b/src/typings/payout/payoutResponse.ts @@ -19,12 +19,12 @@ export class PayoutResponse { * Authorisation code: * When the payment is authorised successfully, this field holds the authorisation code for the payment. * When the payment is not authorised, this field is empty. */ 'authCode'?: string; - 'dccAmount'?: Amount; + 'dccAmount'?: Amount | null; /** * Cryptographic signature used to verify `dccQuote`. > This value only applies if you have implemented Dynamic Currency Conversion. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new). */ 'dccSignature'?: string; - 'fraudResult'?: FraudResult; + 'fraudResult'?: FraudResult | null; /** * The URL to direct the shopper to. > In case of SecurePlus, do not redirect a shopper to this URL. */ @@ -66,7 +66,7 @@ export class PayoutResponse { { "name": "dccAmount", "baseName": "dccAmount", - "type": "Amount" + "type": "Amount | null" }, { "name": "dccSignature", @@ -76,7 +76,7 @@ export class PayoutResponse { { "name": "fraudResult", "baseName": "fraudResult", - "type": "FraudResult" + "type": "FraudResult | null" }, { "name": "issuerUrl", diff --git a/src/typings/payout/storeDetailAndSubmitRequest.ts b/src/typings/payout/storeDetailAndSubmitRequest.ts index 74255ef32..bece69ec2 100644 --- a/src/typings/payout/storeDetailAndSubmitRequest.ts +++ b/src/typings/payout/storeDetailAndSubmitRequest.ts @@ -20,9 +20,9 @@ export class StoreDetailAndSubmitRequest { */ 'additionalData'?: { [key: string]: string; }; 'amount': Amount; - 'bank'?: BankAccount; - 'billingAddress'?: Address; - 'card'?: Card; + 'bank'?: BankAccount | null; + 'billingAddress'?: Address | null; + 'card'?: Card | null; /** * The date of birth. Format: [ISO-8601](https://www.w3.org/TR/NOTE-datetime); example: YYYY-MM-DD For Paysafecard it must be the same as used when registering the Paysafecard account. > This field is mandatory for natural persons. */ @@ -56,7 +56,7 @@ export class StoreDetailAndSubmitRequest { * The shopper\'s email address. */ 'shopperEmail': string; - 'shopperName'?: Name; + 'shopperName'?: Name | null; /** * The shopper\'s reference for the payment transaction. */ @@ -90,17 +90,17 @@ export class StoreDetailAndSubmitRequest { { "name": "bank", "baseName": "bank", - "type": "BankAccount" + "type": "BankAccount | null" }, { "name": "billingAddress", "baseName": "billingAddress", - "type": "Address" + "type": "Address | null" }, { "name": "card", "baseName": "card", - "type": "Card" + "type": "Card | null" }, { "name": "dateOfBirth", @@ -150,7 +150,7 @@ export class StoreDetailAndSubmitRequest { { "name": "shopperName", "baseName": "shopperName", - "type": "Name" + "type": "Name | null" }, { "name": "shopperReference", diff --git a/src/typings/payout/storeDetailRequest.ts b/src/typings/payout/storeDetailRequest.ts index 4475a1482..47262336c 100644 --- a/src/typings/payout/storeDetailRequest.ts +++ b/src/typings/payout/storeDetailRequest.ts @@ -18,9 +18,9 @@ export class StoreDetailRequest { * This field contains additional data, which may be required for a particular request. */ 'additionalData'?: { [key: string]: string; }; - 'bank'?: BankAccount; - 'billingAddress'?: Address; - 'card'?: Card; + 'bank'?: BankAccount | null; + 'billingAddress'?: Address | null; + 'card'?: Card | null; /** * The date of birth. Format: [ISO-8601](https://www.w3.org/TR/NOTE-datetime); example: YYYY-MM-DD For Paysafecard it must be the same as used when registering the Paysafecard account. > This field is mandatory for natural persons. */ @@ -50,7 +50,7 @@ export class StoreDetailRequest { * The shopper\'s email address. */ 'shopperEmail': string; - 'shopperName'?: Name; + 'shopperName'?: Name | null; /** * The shopper\'s reference for the payment transaction. */ @@ -75,17 +75,17 @@ export class StoreDetailRequest { { "name": "bank", "baseName": "bank", - "type": "BankAccount" + "type": "BankAccount | null" }, { "name": "billingAddress", "baseName": "billingAddress", - "type": "Address" + "type": "Address | null" }, { "name": "card", "baseName": "card", - "type": "Card" + "type": "Card | null" }, { "name": "dateOfBirth", @@ -130,7 +130,7 @@ export class StoreDetailRequest { { "name": "shopperName", "baseName": "shopperName", - "type": "Name" + "type": "Name | null" }, { "name": "shopperReference", diff --git a/src/typings/payout/submitRequest.ts b/src/typings/payout/submitRequest.ts index 56aa7c325..2563f23ba 100644 --- a/src/typings/payout/submitRequest.ts +++ b/src/typings/payout/submitRequest.ts @@ -50,7 +50,7 @@ export class SubmitRequest { * The shopper\'s email address. */ 'shopperEmail': string; - 'shopperName'?: Name; + 'shopperName'?: Name | null; /** * The shopper\'s reference for the payout transaction. */ @@ -125,7 +125,7 @@ export class SubmitRequest { { "name": "shopperName", "baseName": "shopperName", - "type": "Name" + "type": "Name | null" }, { "name": "shopperReference", diff --git a/src/typings/recurring/permit.ts b/src/typings/recurring/permit.ts index 6ce24420b..d8c84c365 100644 --- a/src/typings/recurring/permit.ts +++ b/src/typings/recurring/permit.ts @@ -18,7 +18,7 @@ export class Permit { * The profile to apply to this permit (when using the shared permits model). */ 'profileReference'?: string; - 'restriction'?: PermitRestriction; + 'restriction'?: PermitRestriction | null; /** * The key to link permit requests to permit results. */ @@ -44,7 +44,7 @@ export class Permit { { "name": "restriction", "baseName": "restriction", - "type": "PermitRestriction" + "type": "PermitRestriction | null" }, { "name": "resultKey", diff --git a/src/typings/recurring/permitRestriction.ts b/src/typings/recurring/permitRestriction.ts index c1d4bd1b6..55725ff20 100644 --- a/src/typings/recurring/permitRestriction.ts +++ b/src/typings/recurring/permitRestriction.ts @@ -10,8 +10,8 @@ import { Amount } from './amount'; export class PermitRestriction { - 'maxAmount'?: Amount; - 'singleTransactionLimit'?: Amount; + 'maxAmount'?: Amount | null; + 'singleTransactionLimit'?: Amount | null; /** * Only a single payment can be made using this permit if set to true, otherwise multiple payments are allowed. */ @@ -23,12 +23,12 @@ export class PermitRestriction { { "name": "maxAmount", "baseName": "maxAmount", - "type": "Amount" + "type": "Amount | null" }, { "name": "singleTransactionLimit", "baseName": "singleTransactionLimit", - "type": "Amount" + "type": "Amount | null" }, { "name": "singleUse", diff --git a/src/typings/recurring/recurringDetail.ts b/src/typings/recurring/recurringDetail.ts index d97085299..e169b3b72 100644 --- a/src/typings/recurring/recurringDetail.ts +++ b/src/typings/recurring/recurringDetail.ts @@ -26,9 +26,9 @@ export class RecurringDetail { * The alias type of the credit card number. Applies only to recurring contracts storing credit card details. */ 'aliasType'?: string; - 'bank'?: BankAccount; - 'billingAddress'?: Address; - 'card'?: Card; + 'bank'?: BankAccount | null; + 'billingAddress'?: Address | null; + 'card'?: Card | null; /** * Types of recurring contracts. */ @@ -57,12 +57,12 @@ export class RecurringDetail { * The reference that uniquely identifies the recurring detail. */ 'recurringDetailReference': string; - 'shopperName'?: Name; + 'shopperName'?: Name | null; /** * A shopper\'s social security number (only in countries where it is legal to collect). */ 'socialSecurityNumber'?: string; - 'tokenDetails'?: TokenDetails; + 'tokenDetails'?: TokenDetails | null; /** * The payment method, such as “mc\", \"visa\", \"ideal\", \"paypal\". */ @@ -89,17 +89,17 @@ export class RecurringDetail { { "name": "bank", "baseName": "bank", - "type": "BankAccount" + "type": "BankAccount | null" }, { "name": "billingAddress", "baseName": "billingAddress", - "type": "Address" + "type": "Address | null" }, { "name": "card", "baseName": "card", - "type": "Card" + "type": "Card | null" }, { "name": "contractTypes", @@ -139,7 +139,7 @@ export class RecurringDetail { { "name": "shopperName", "baseName": "shopperName", - "type": "Name" + "type": "Name | null" }, { "name": "socialSecurityNumber", @@ -149,7 +149,7 @@ export class RecurringDetail { { "name": "tokenDetails", "baseName": "tokenDetails", - "type": "TokenDetails" + "type": "TokenDetails | null" }, { "name": "variant", diff --git a/src/typings/recurring/recurringDetailWrapper.ts b/src/typings/recurring/recurringDetailWrapper.ts index f1977f3d2..03dfe2361 100644 --- a/src/typings/recurring/recurringDetailWrapper.ts +++ b/src/typings/recurring/recurringDetailWrapper.ts @@ -10,7 +10,7 @@ import { RecurringDetail } from './recurringDetail'; export class RecurringDetailWrapper { - 'RecurringDetail'?: RecurringDetail; + 'RecurringDetail'?: RecurringDetail | null; static discriminator: string | undefined = undefined; @@ -18,7 +18,7 @@ export class RecurringDetailWrapper { { "name": "RecurringDetail", "baseName": "RecurringDetail", - "type": "RecurringDetail" + "type": "RecurringDetail | null" } ]; static getAttributeTypeMap() { diff --git a/src/typings/recurring/recurringDetailsRequest.ts b/src/typings/recurring/recurringDetailsRequest.ts index e12a434c7..293f2a2fc 100644 --- a/src/typings/recurring/recurringDetailsRequest.ts +++ b/src/typings/recurring/recurringDetailsRequest.ts @@ -14,7 +14,7 @@ export class RecurringDetailsRequest { * The merchant account identifier you want to process the (transaction) request with. */ 'merchantAccount': string; - 'recurring'?: Recurring; + 'recurring'?: Recurring | null; /** * The reference you use to uniquely identify the shopper (e.g. user ID or account ID). */ @@ -31,7 +31,7 @@ export class RecurringDetailsRequest { { "name": "recurring", "baseName": "recurring", - "type": "Recurring" + "type": "Recurring | null" }, { "name": "shopperReference", diff --git a/src/typings/recurring/scheduleAccountUpdaterRequest.ts b/src/typings/recurring/scheduleAccountUpdaterRequest.ts index 166e63e40..22083e84b 100644 --- a/src/typings/recurring/scheduleAccountUpdaterRequest.ts +++ b/src/typings/recurring/scheduleAccountUpdaterRequest.ts @@ -14,7 +14,7 @@ export class ScheduleAccountUpdaterRequest { * This field contains additional data, which may be required for a particular request. */ 'additionalData'?: { [key: string]: string; }; - 'card'?: Card; + 'card'?: Card | null; /** * Account of the merchant. */ @@ -43,7 +43,7 @@ export class ScheduleAccountUpdaterRequest { { "name": "card", "baseName": "card", - "type": "Card" + "type": "Card | null" }, { "name": "merchantAccount", diff --git a/src/typings/reportWebhooks/reportNotificationData.ts b/src/typings/reportWebhooks/reportNotificationData.ts index 522fd36c7..4cc127592 100644 --- a/src/typings/reportWebhooks/reportNotificationData.ts +++ b/src/typings/reportWebhooks/reportNotificationData.ts @@ -10,8 +10,8 @@ import { ResourceReference } from './resourceReference'; export class ReportNotificationData { - 'accountHolder'?: ResourceReference; - 'balanceAccount'?: ResourceReference; + 'accountHolder'?: ResourceReference | null; + 'balanceAccount'?: ResourceReference | null; /** * The unique identifier of the balance platform. */ @@ -39,12 +39,12 @@ export class ReportNotificationData { { "name": "accountHolder", "baseName": "accountHolder", - "type": "ResourceReference" + "type": "ResourceReference | null" }, { "name": "balanceAccount", "baseName": "balanceAccount", - "type": "ResourceReference" + "type": "ResourceReference | null" }, { "name": "balancePlatform", diff --git a/src/typings/storedValue/storedValueBalanceCheckRequest.ts b/src/typings/storedValue/storedValueBalanceCheckRequest.ts index 803080524..70dde2ec7 100644 --- a/src/typings/storedValue/storedValueBalanceCheckRequest.ts +++ b/src/typings/storedValue/storedValueBalanceCheckRequest.ts @@ -10,7 +10,7 @@ import { Amount } from './amount'; export class StoredValueBalanceCheckRequest { - 'amount'?: Amount; + 'amount'?: Amount | null; /** * The merchant account identifier, with which you want to process the transaction. */ @@ -40,7 +40,7 @@ export class StoredValueBalanceCheckRequest { { "name": "amount", "baseName": "amount", - "type": "Amount" + "type": "Amount | null" }, { "name": "merchantAccount", diff --git a/src/typings/storedValue/storedValueBalanceCheckResponse.ts b/src/typings/storedValue/storedValueBalanceCheckResponse.ts index 5ef97be71..3e5b40215 100644 --- a/src/typings/storedValue/storedValueBalanceCheckResponse.ts +++ b/src/typings/storedValue/storedValueBalanceCheckResponse.ts @@ -10,7 +10,7 @@ import { Amount } from './amount'; export class StoredValueBalanceCheckResponse { - 'currentBalance'?: Amount; + 'currentBalance'?: Amount | null; /** * Adyen\'s 16-character string reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. */ @@ -34,7 +34,7 @@ export class StoredValueBalanceCheckResponse { { "name": "currentBalance", "baseName": "currentBalance", - "type": "Amount" + "type": "Amount | null" }, { "name": "pspReference", diff --git a/src/typings/storedValue/storedValueBalanceMergeRequest.ts b/src/typings/storedValue/storedValueBalanceMergeRequest.ts index 00cbc9e8b..a75bea37e 100644 --- a/src/typings/storedValue/storedValueBalanceMergeRequest.ts +++ b/src/typings/storedValue/storedValueBalanceMergeRequest.ts @@ -10,7 +10,7 @@ import { Amount } from './amount'; export class StoredValueBalanceMergeRequest { - 'amount'?: Amount; + 'amount'?: Amount | null; /** * The merchant account identifier, with which you want to process the transaction. */ @@ -44,7 +44,7 @@ export class StoredValueBalanceMergeRequest { { "name": "amount", "baseName": "amount", - "type": "Amount" + "type": "Amount | null" }, { "name": "merchantAccount", diff --git a/src/typings/storedValue/storedValueBalanceMergeResponse.ts b/src/typings/storedValue/storedValueBalanceMergeResponse.ts index eda89faab..e8aafdbba 100644 --- a/src/typings/storedValue/storedValueBalanceMergeResponse.ts +++ b/src/typings/storedValue/storedValueBalanceMergeResponse.ts @@ -14,7 +14,7 @@ export class StoredValueBalanceMergeResponse { * Authorisation code: * When the payment is authorised, this field holds the authorisation code for the payment. * When the payment is not authorised, this field is empty. */ 'authCode'?: string; - 'currentBalance'?: Amount; + 'currentBalance'?: Amount | null; /** * Adyen\'s 16-character string reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. */ @@ -43,7 +43,7 @@ export class StoredValueBalanceMergeResponse { { "name": "currentBalance", "baseName": "currentBalance", - "type": "Amount" + "type": "Amount | null" }, { "name": "pspReference", diff --git a/src/typings/storedValue/storedValueIssueRequest.ts b/src/typings/storedValue/storedValueIssueRequest.ts index 43809a71c..b83130538 100644 --- a/src/typings/storedValue/storedValueIssueRequest.ts +++ b/src/typings/storedValue/storedValueIssueRequest.ts @@ -10,7 +10,7 @@ import { Amount } from './amount'; export class StoredValueIssueRequest { - 'amount'?: Amount; + 'amount'?: Amount | null; /** * The merchant account identifier, with which you want to process the transaction. */ @@ -40,7 +40,7 @@ export class StoredValueIssueRequest { { "name": "amount", "baseName": "amount", - "type": "Amount" + "type": "Amount | null" }, { "name": "merchantAccount", diff --git a/src/typings/storedValue/storedValueIssueResponse.ts b/src/typings/storedValue/storedValueIssueResponse.ts index acedd53d1..33ff163a5 100644 --- a/src/typings/storedValue/storedValueIssueResponse.ts +++ b/src/typings/storedValue/storedValueIssueResponse.ts @@ -14,7 +14,7 @@ export class StoredValueIssueResponse { * Authorisation code: * When the payment is authorised, this field holds the authorisation code for the payment. * When the payment is not authorised, this field is empty. */ 'authCode'?: string; - 'currentBalance'?: Amount; + 'currentBalance'?: Amount | null; /** * The collection that contains the type of the payment method and its specific information if available */ @@ -47,7 +47,7 @@ export class StoredValueIssueResponse { { "name": "currentBalance", "baseName": "currentBalance", - "type": "Amount" + "type": "Amount | null" }, { "name": "paymentMethod", diff --git a/src/typings/storedValue/storedValueLoadResponse.ts b/src/typings/storedValue/storedValueLoadResponse.ts index f29bf9af8..076d70322 100644 --- a/src/typings/storedValue/storedValueLoadResponse.ts +++ b/src/typings/storedValue/storedValueLoadResponse.ts @@ -14,7 +14,7 @@ export class StoredValueLoadResponse { * Authorisation code: * When the payment is authorised, this field holds the authorisation code for the payment. * When the payment is not authorised, this field is empty. */ 'authCode'?: string; - 'currentBalance'?: Amount; + 'currentBalance'?: Amount | null; /** * Adyen\'s 16-character string reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. */ @@ -43,7 +43,7 @@ export class StoredValueLoadResponse { { "name": "currentBalance", "baseName": "currentBalance", - "type": "Amount" + "type": "Amount | null" }, { "name": "pspReference", diff --git a/src/typings/storedValue/storedValueStatusChangeRequest.ts b/src/typings/storedValue/storedValueStatusChangeRequest.ts index 91ddab91f..10efa8cdd 100644 --- a/src/typings/storedValue/storedValueStatusChangeRequest.ts +++ b/src/typings/storedValue/storedValueStatusChangeRequest.ts @@ -10,7 +10,7 @@ import { Amount } from './amount'; export class StoredValueStatusChangeRequest { - 'amount'?: Amount; + 'amount'?: Amount | null; /** * The merchant account identifier, with which you want to process the transaction. */ @@ -44,7 +44,7 @@ export class StoredValueStatusChangeRequest { { "name": "amount", "baseName": "amount", - "type": "Amount" + "type": "Amount | null" }, { "name": "merchantAccount", diff --git a/src/typings/storedValue/storedValueStatusChangeResponse.ts b/src/typings/storedValue/storedValueStatusChangeResponse.ts index 907854169..722e5830e 100644 --- a/src/typings/storedValue/storedValueStatusChangeResponse.ts +++ b/src/typings/storedValue/storedValueStatusChangeResponse.ts @@ -14,7 +14,7 @@ export class StoredValueStatusChangeResponse { * Authorisation code: * When the payment is authorised, this field holds the authorisation code for the payment. * When the payment is not authorised, this field is empty. */ 'authCode'?: string; - 'currentBalance'?: Amount; + 'currentBalance'?: Amount | null; /** * Adyen\'s 16-character string reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. */ @@ -43,7 +43,7 @@ export class StoredValueStatusChangeResponse { { "name": "currentBalance", "baseName": "currentBalance", - "type": "Amount" + "type": "Amount | null" }, { "name": "pspReference", diff --git a/src/typings/storedValue/storedValueVoidResponse.ts b/src/typings/storedValue/storedValueVoidResponse.ts index a11d9d0a2..d671f894d 100644 --- a/src/typings/storedValue/storedValueVoidResponse.ts +++ b/src/typings/storedValue/storedValueVoidResponse.ts @@ -10,7 +10,7 @@ import { Amount } from './amount'; export class StoredValueVoidResponse { - 'currentBalance'?: Amount; + 'currentBalance'?: Amount | null; /** * Adyen\'s 16-character string reference associated with the transaction/request. This value is globally unique; quote it when communicating with us about this request. */ @@ -34,7 +34,7 @@ export class StoredValueVoidResponse { { "name": "currentBalance", "baseName": "currentBalance", - "type": "Amount" + "type": "Amount | null" }, { "name": "pspReference", diff --git a/src/typings/terminalManagement/getTerminalDetailsResponse.ts b/src/typings/terminalManagement/getTerminalDetailsResponse.ts index 93e8e697f..68a5c8aa7 100644 --- a/src/typings/terminalManagement/getTerminalDetailsResponse.ts +++ b/src/typings/terminalManagement/getTerminalDetailsResponse.ts @@ -90,7 +90,7 @@ export class GetTerminalDetailsResponse { * The store code of the store that the terminal is assigned to. */ 'store'?: string; - 'storeDetails'?: Store; + 'storeDetails'?: Store | null; /** * The unique terminal ID. */ @@ -214,7 +214,7 @@ export class GetTerminalDetailsResponse { { "name": "storeDetails", "baseName": "storeDetails", - "type": "Store" + "type": "Store | null" }, { "name": "terminal", diff --git a/src/typings/terminalManagement/store.ts b/src/typings/terminalManagement/store.ts index ce3696416..9780606c9 100644 --- a/src/typings/terminalManagement/store.ts +++ b/src/typings/terminalManagement/store.ts @@ -10,7 +10,7 @@ import { Address } from './address'; export class Store { - 'address'?: Address; + 'address'?: Address | null; /** * The description of the store. */ @@ -38,7 +38,7 @@ export class Store { { "name": "address", "baseName": "address", - "type": "Address" + "type": "Address | null" }, { "name": "description", diff --git a/src/typings/transactionWebhooks/issuedCard.ts b/src/typings/transactionWebhooks/issuedCard.ts index 634201c98..5abedca41 100644 --- a/src/typings/transactionWebhooks/issuedCard.ts +++ b/src/typings/transactionWebhooks/issuedCard.ts @@ -23,7 +23,7 @@ export class IssuedCard { * Contains information about how the payment was processed. For example, **ecommerce** for online or **pos** for in-person payments. */ 'processingType'?: IssuedCard.ProcessingTypeEnum; - 'relayedAuthorisationData'?: RelayedAuthorisationData; + 'relayedAuthorisationData'?: RelayedAuthorisationData | null; /** * The identifier of the original payment. This ID is provided by the scheme and can be alphanumeric or numeric, depending on the scheme. The `schemeTraceID` should refer to an original `schemeUniqueTransactionID` provided in an earlier payment (not necessarily processed by Adyen). A `schemeTraceId` is typically available for authorization adjustments or recurring payments. */ @@ -62,7 +62,7 @@ export class IssuedCard { { "name": "relayedAuthorisationData", "baseName": "relayedAuthorisationData", - "type": "RelayedAuthorisationData" + "type": "RelayedAuthorisationData | null" }, { "name": "schemeTraceId", diff --git a/src/typings/transactionWebhooks/transaction.ts b/src/typings/transactionWebhooks/transaction.ts index 7e2fee848..9eba58bb9 100644 --- a/src/typings/transactionWebhooks/transaction.ts +++ b/src/typings/transactionWebhooks/transaction.ts @@ -36,7 +36,7 @@ export class Transaction { * The unique identifier of the transaction. */ 'id': string; - 'paymentInstrument'?: PaymentInstrument; + 'paymentInstrument'?: PaymentInstrument | null; /** * The reference sent to or received from the counterparty. * For outgoing funds, this is the [`referenceForBeneficiary`](https://docs.adyen.com/api-explorer/#/transfers/latest/post/transfers__resParam_referenceForBeneficiary) from the [`/transfers`](https://docs.adyen.com/api-explorer/#/transfers/latest/post/transfers__reqParam_referenceForBeneficiary) request. * For incoming funds, this is the reference from the sender. */ @@ -45,7 +45,7 @@ export class Transaction { * The status of the transaction. Possible values: * **pending**: The transaction is still pending. * **booked**: The transaction has been booked to the balance account. */ 'status': Transaction.StatusEnum; - 'transfer'?: TransferView; + 'transfer'?: TransferView | null; /** * The date the transfer amount becomes available in the balance account. */ @@ -97,7 +97,7 @@ export class Transaction { { "name": "paymentInstrument", "baseName": "paymentInstrument", - "type": "PaymentInstrument" + "type": "PaymentInstrument | null" }, { "name": "referenceForBeneficiary", @@ -112,7 +112,7 @@ export class Transaction { { "name": "transfer", "baseName": "transfer", - "type": "TransferView" + "type": "TransferView | null" }, { "name": "valueDate", diff --git a/src/typings/transferWebhooks/amountAdjustment.ts b/src/typings/transferWebhooks/amountAdjustment.ts index 491a1d544..543097d5a 100644 --- a/src/typings/transferWebhooks/amountAdjustment.ts +++ b/src/typings/transferWebhooks/amountAdjustment.ts @@ -10,7 +10,7 @@ import { Amount } from './amount'; export class AmountAdjustment { - 'amount'?: Amount; + 'amount'?: Amount | null; /** * The type of markup that is applied to an authorised payment. Possible values: **exchange**, **forexMarkup**, **authHoldReserve**, **atmMarkup**. */ @@ -26,7 +26,7 @@ export class AmountAdjustment { { "name": "amount", "baseName": "amount", - "type": "Amount" + "type": "Amount | null" }, { "name": "amountAdjustmentType", diff --git a/src/typings/transferWebhooks/bankAccountV3.ts b/src/typings/transferWebhooks/bankAccountV3.ts index a14bf97aa..503ebb97e 100644 --- a/src/typings/transferWebhooks/bankAccountV3.ts +++ b/src/typings/transferWebhooks/bankAccountV3.ts @@ -30,7 +30,7 @@ export class BankAccountV3 { /** * Contains the bank account details. The fields required in this object depend on the country of the bank account and the currency of the transfer. */ - 'accountIdentification': AULocalAccountIdentification | BRLocalAccountIdentification | CALocalAccountIdentification | CZLocalAccountIdentification | DKLocalAccountIdentification | HKLocalAccountIdentification | HULocalAccountIdentification | IbanAccountIdentification | NOLocalAccountIdentification | NZLocalAccountIdentification | NumberAndBicAccountIdentification | PLLocalAccountIdentification | SELocalAccountIdentification | SGLocalAccountIdentification | UKLocalAccountIdentification | USLocalAccountIdentification | null; + 'accountIdentification': AULocalAccountIdentification | BRLocalAccountIdentification | CALocalAccountIdentification | CZLocalAccountIdentification | DKLocalAccountIdentification | HKLocalAccountIdentification | HULocalAccountIdentification | IbanAccountIdentification | NOLocalAccountIdentification | NZLocalAccountIdentification | NumberAndBicAccountIdentification | PLLocalAccountIdentification | SELocalAccountIdentification | SGLocalAccountIdentification | UKLocalAccountIdentification | USLocalAccountIdentification; static discriminator: string | undefined = undefined; @@ -43,7 +43,7 @@ export class BankAccountV3 { { "name": "accountIdentification", "baseName": "accountIdentification", - "type": "AULocalAccountIdentification | BRLocalAccountIdentification | CALocalAccountIdentification | CZLocalAccountIdentification | DKLocalAccountIdentification | HKLocalAccountIdentification | HULocalAccountIdentification | IbanAccountIdentification | NOLocalAccountIdentification | NZLocalAccountIdentification | NumberAndBicAccountIdentification | PLLocalAccountIdentification | SELocalAccountIdentification | SGLocalAccountIdentification | UKLocalAccountIdentification | USLocalAccountIdentification | null" + "type": "AULocalAccountIdentification | BRLocalAccountIdentification | CALocalAccountIdentification | CZLocalAccountIdentification | DKLocalAccountIdentification | HKLocalAccountIdentification | HULocalAccountIdentification | IbanAccountIdentification | NOLocalAccountIdentification | NZLocalAccountIdentification | NumberAndBicAccountIdentification | PLLocalAccountIdentification | SELocalAccountIdentification | SGLocalAccountIdentification | UKLocalAccountIdentification | USLocalAccountIdentification" } ]; static getAttributeTypeMap() { diff --git a/src/typings/transferWebhooks/counterpartyV3.ts b/src/typings/transferWebhooks/counterpartyV3.ts index 069cd3fb9..992d86700 100644 --- a/src/typings/transferWebhooks/counterpartyV3.ts +++ b/src/typings/transferWebhooks/counterpartyV3.ts @@ -16,9 +16,9 @@ export class CounterpartyV3 { * The unique identifier of the counterparty [balance account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id). */ 'balanceAccountId'?: string; - 'bankAccount'?: BankAccountV3; - 'card'?: Card; - 'merchant'?: MerchantData; + 'bankAccount'?: BankAccountV3 | null; + 'card'?: Card | null; + 'merchant'?: MerchantData | null; /** * The unique identifier of the counterparty [transfer instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id). */ @@ -35,17 +35,17 @@ export class CounterpartyV3 { { "name": "bankAccount", "baseName": "bankAccount", - "type": "BankAccountV3" + "type": "BankAccountV3 | null" }, { "name": "card", "baseName": "card", - "type": "Card" + "type": "Card | null" }, { "name": "merchant", "baseName": "merchant", - "type": "MerchantData" + "type": "MerchantData | null" }, { "name": "transferInstrumentId", diff --git a/src/typings/transferWebhooks/issuedCard.ts b/src/typings/transferWebhooks/issuedCard.ts index 634201c98..5abedca41 100644 --- a/src/typings/transferWebhooks/issuedCard.ts +++ b/src/typings/transferWebhooks/issuedCard.ts @@ -23,7 +23,7 @@ export class IssuedCard { * Contains information about how the payment was processed. For example, **ecommerce** for online or **pos** for in-person payments. */ 'processingType'?: IssuedCard.ProcessingTypeEnum; - 'relayedAuthorisationData'?: RelayedAuthorisationData; + 'relayedAuthorisationData'?: RelayedAuthorisationData | null; /** * The identifier of the original payment. This ID is provided by the scheme and can be alphanumeric or numeric, depending on the scheme. The `schemeTraceID` should refer to an original `schemeUniqueTransactionID` provided in an earlier payment (not necessarily processed by Adyen). A `schemeTraceId` is typically available for authorization adjustments or recurring payments. */ @@ -62,7 +62,7 @@ export class IssuedCard { { "name": "relayedAuthorisationData", "baseName": "relayedAuthorisationData", - "type": "RelayedAuthorisationData" + "type": "RelayedAuthorisationData | null" }, { "name": "schemeTraceId", diff --git a/src/typings/transferWebhooks/merchantData.ts b/src/typings/transferWebhooks/merchantData.ts index a09c67b9b..79339cee2 100644 --- a/src/typings/transferWebhooks/merchantData.ts +++ b/src/typings/transferWebhooks/merchantData.ts @@ -22,7 +22,7 @@ export class MerchantData { * The merchant identifier. */ 'merchantId'?: string; - 'nameLocation'?: NameLocation; + 'nameLocation'?: NameLocation | null; /** * The merchant postal code. */ @@ -49,7 +49,7 @@ export class MerchantData { { "name": "nameLocation", "baseName": "nameLocation", - "type": "NameLocation" + "type": "NameLocation | null" }, { "name": "postalCode", diff --git a/src/typings/transferWebhooks/merchantPurchaseData.ts b/src/typings/transferWebhooks/merchantPurchaseData.ts index 67c0150c0..7082ef34a 100644 --- a/src/typings/transferWebhooks/merchantPurchaseData.ts +++ b/src/typings/transferWebhooks/merchantPurchaseData.ts @@ -10,7 +10,7 @@ import { Airline } from './airline'; export class MerchantPurchaseData { - 'airline'?: Airline; + 'airline'?: Airline | null; /** * The type of events data. Possible values: - **merchantPurchaseData**: merchant purchase data */ @@ -22,7 +22,7 @@ export class MerchantPurchaseData { { "name": "airline", "baseName": "airline", - "type": "Airline" + "type": "Airline | null" }, { "name": "type", diff --git a/src/typings/transferWebhooks/numberAndBicAccountIdentification.ts b/src/typings/transferWebhooks/numberAndBicAccountIdentification.ts index 4cffa0d6e..c64f5e5e7 100644 --- a/src/typings/transferWebhooks/numberAndBicAccountIdentification.ts +++ b/src/typings/transferWebhooks/numberAndBicAccountIdentification.ts @@ -14,7 +14,7 @@ export class NumberAndBicAccountIdentification { * The bank account number, without separators or whitespace. The length and format depends on the bank or country. */ 'accountNumber': string; - 'additionalBankIdentification'?: AdditionalBankIdentification; + 'additionalBankIdentification'?: AdditionalBankIdentification | null; /** * The bank\'s 8- or 11-character BIC or SWIFT code. */ @@ -35,7 +35,7 @@ export class NumberAndBicAccountIdentification { { "name": "additionalBankIdentification", "baseName": "additionalBankIdentification", - "type": "AdditionalBankIdentification" + "type": "AdditionalBankIdentification | null" }, { "name": "bic", diff --git a/src/typings/transferWebhooks/partyIdentification.ts b/src/typings/transferWebhooks/partyIdentification.ts index c909e62ce..4dabeeece 100644 --- a/src/typings/transferWebhooks/partyIdentification.ts +++ b/src/typings/transferWebhooks/partyIdentification.ts @@ -10,7 +10,7 @@ import { Address } from './address'; export class PartyIdentification { - 'address'?: Address; + 'address'?: Address | null; /** * The date of birth of the individual in [ISO-8601](https://www.w3.org/TR/NOTE-datetime) format. For example, **YYYY-MM-DD**. Allowed only when `type` is **individual**. */ @@ -42,7 +42,7 @@ export class PartyIdentification { { "name": "address", "baseName": "address", - "type": "Address" + "type": "Address | null" }, { "name": "dateOfBirth", diff --git a/src/typings/transferWebhooks/transactionEventViolation.ts b/src/typings/transferWebhooks/transactionEventViolation.ts index 318ffc6ce..4d65525bb 100644 --- a/src/typings/transferWebhooks/transactionEventViolation.ts +++ b/src/typings/transferWebhooks/transactionEventViolation.ts @@ -15,8 +15,8 @@ export class TransactionEventViolation { * An explanation about why the transaction rule failed. */ 'reason'?: string; - 'transactionRule'?: TransactionRuleReference; - 'transactionRuleSource'?: TransactionRuleSource; + 'transactionRule'?: TransactionRuleReference | null; + 'transactionRuleSource'?: TransactionRuleSource | null; static discriminator: string | undefined = undefined; @@ -29,12 +29,12 @@ export class TransactionEventViolation { { "name": "transactionRule", "baseName": "transactionRule", - "type": "TransactionRuleReference" + "type": "TransactionRuleReference | null" }, { "name": "transactionRuleSource", "baseName": "transactionRuleSource", - "type": "TransactionRuleSource" + "type": "TransactionRuleSource | null" } ]; static getAttributeTypeMap() { diff --git a/src/typings/transferWebhooks/transferData.ts b/src/typings/transferWebhooks/transferData.ts index b98a881f8..733570f5a 100644 --- a/src/typings/transferWebhooks/transferData.ts +++ b/src/typings/transferWebhooks/transferData.ts @@ -25,9 +25,9 @@ import { TransferNotificationCounterParty } from './transferNotificationCounterP import { TransferReview } from './transferReview'; export class TransferData { - 'accountHolder'?: ResourceReference; + 'accountHolder'?: ResourceReference | null; 'amount': Amount; - 'balanceAccount'?: ResourceReference; + 'balanceAccount'?: ResourceReference | null; /** * The unique identifier of the balance platform. */ @@ -44,7 +44,7 @@ export class TransferData { * The relevant data according to the transfer category. */ 'categoryData'?: BankCategoryData | InternalCategoryData | IssuedCard | PlatformPayment | null; - 'counterparty'?: TransferNotificationCounterParty; + 'counterparty'?: TransferNotificationCounterParty | null; /** * The date and time when the event was triggered, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**. */ @@ -53,7 +53,7 @@ export class TransferData { * Your description for the transfer. It is used by most banks as the transfer description. We recommend sending a maximum of 140 characters, otherwise the description may be truncated. Supported characters: **[a-z] [A-Z] [0-9] / - ?** **: ( ) . , \' + Space** Supported characters for **regular** and **fast** transfers to a US counterparty: **[a-z] [A-Z] [0-9] & $ % # @** **~ = + - _ \' \" ! ?** */ 'description'?: string; - 'directDebitInformation'?: DirectDebitInformation; + 'directDebitInformation'?: DirectDebitInformation | null; /** * The direction of the transfer. Possible values: **incoming**, **outgoing**. */ @@ -70,7 +70,7 @@ export class TransferData { * The ID of the resource. */ 'id'?: string; - 'paymentInstrument'?: PaymentInstrument; + 'paymentInstrument'?: PaymentInstrument | null; /** * Additional information about the status of the transfer. */ @@ -83,7 +83,7 @@ export class TransferData { * A reference that is sent to the recipient. This reference is also sent in all webhooks related to the transfer, so you can use it to track statuses for both the source and recipient of funds. Supported characters: **a-z**, **A-Z**, **0-9**.The maximum length depends on the `category`. - **internal**: 80 characters - **bank**: 35 characters when transferring to an IBAN, 15 characters for others. */ 'referenceForBeneficiary'?: string; - 'review'?: TransferReview; + 'review'?: TransferReview | null; /** * The sequence number of the transfer webhook. The numbers start from 1 and increase with each new webhook for a specific transfer. The sequence number can help you restore the correct sequence of events even if they arrive out of order. */ @@ -96,7 +96,7 @@ export class TransferData { * The latest tracking information of the transfer. */ 'tracking'?: ConfirmationTrackingData | EstimationTrackingData | InternalReviewTrackingData | null; - 'transactionRulesResult'?: TransactionRulesResult; + 'transactionRulesResult'?: TransactionRulesResult | null; /** * The type of transfer or transaction. For example, **refund**, **payment**, **internalTransfer**, **bankTransfer**. */ @@ -108,7 +108,7 @@ export class TransferData { { "name": "accountHolder", "baseName": "accountHolder", - "type": "ResourceReference" + "type": "ResourceReference | null" }, { "name": "amount", @@ -118,7 +118,7 @@ export class TransferData { { "name": "balanceAccount", "baseName": "balanceAccount", - "type": "ResourceReference" + "type": "ResourceReference | null" }, { "name": "balancePlatform", @@ -143,7 +143,7 @@ export class TransferData { { "name": "counterparty", "baseName": "counterparty", - "type": "TransferNotificationCounterParty" + "type": "TransferNotificationCounterParty | null" }, { "name": "creationDate", @@ -158,7 +158,7 @@ export class TransferData { { "name": "directDebitInformation", "baseName": "directDebitInformation", - "type": "DirectDebitInformation" + "type": "DirectDebitInformation | null" }, { "name": "direction", @@ -183,7 +183,7 @@ export class TransferData { { "name": "paymentInstrument", "baseName": "paymentInstrument", - "type": "PaymentInstrument" + "type": "PaymentInstrument | null" }, { "name": "reason", @@ -203,7 +203,7 @@ export class TransferData { { "name": "review", "baseName": "review", - "type": "TransferReview" + "type": "TransferReview | null" }, { "name": "sequenceNumber", @@ -223,7 +223,7 @@ export class TransferData { { "name": "transactionRulesResult", "baseName": "transactionRulesResult", - "type": "TransactionRulesResult" + "type": "TransactionRulesResult | null" }, { "name": "type", diff --git a/src/typings/transferWebhooks/transferEvent.ts b/src/typings/transferWebhooks/transferEvent.ts index 57c2caa0e..8fbdcf6a3 100644 --- a/src/typings/transferWebhooks/transferEvent.ts +++ b/src/typings/transferWebhooks/transferEvent.ts @@ -18,7 +18,7 @@ import { MerchantPurchaseData } from './merchantPurchaseData'; import { Modification } from './modification'; export class TransferEvent { - 'amount'?: Amount; + 'amount'?: Amount | null; /** * The amount adjustments in this transfer. */ @@ -39,17 +39,17 @@ export class TransferEvent { * A list of event data. */ 'eventsData'?: Array; - 'externalReason'?: ExternalReason; + 'externalReason'?: ExternalReason | null; /** * The unique identifier of the transfer event. */ 'id'?: string; - 'modification'?: Modification; + 'modification'?: Modification | null; /** * The list of balance mutations per event. */ 'mutations'?: Array; - 'originalAmount'?: Amount; + 'originalAmount'?: Amount | null; /** * The reason for the transfer status. */ @@ -85,7 +85,7 @@ export class TransferEvent { { "name": "amount", "baseName": "amount", - "type": "Amount" + "type": "Amount | null" }, { "name": "amountAdjustments", @@ -115,7 +115,7 @@ export class TransferEvent { { "name": "externalReason", "baseName": "externalReason", - "type": "ExternalReason" + "type": "ExternalReason | null" }, { "name": "id", @@ -125,7 +125,7 @@ export class TransferEvent { { "name": "modification", "baseName": "modification", - "type": "Modification" + "type": "Modification | null" }, { "name": "mutations", @@ -135,7 +135,7 @@ export class TransferEvent { { "name": "originalAmount", "baseName": "originalAmount", - "type": "Amount" + "type": "Amount | null" }, { "name": "reason", diff --git a/src/typings/transferWebhooks/transferNotificationCounterParty.ts b/src/typings/transferWebhooks/transferNotificationCounterParty.ts index 1e7fe6509..0eec761b2 100644 --- a/src/typings/transferWebhooks/transferNotificationCounterParty.ts +++ b/src/typings/transferWebhooks/transferNotificationCounterParty.ts @@ -16,9 +16,9 @@ export class TransferNotificationCounterParty { * The unique identifier of the counterparty [balance account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id). */ 'balanceAccountId'?: string; - 'bankAccount'?: BankAccountV3; - 'card'?: Card; - 'merchant'?: TransferNotificationMerchantData; + 'bankAccount'?: BankAccountV3 | null; + 'card'?: Card | null; + 'merchant'?: TransferNotificationMerchantData | null; /** * The unique identifier of the counterparty [transfer instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id). */ @@ -35,17 +35,17 @@ export class TransferNotificationCounterParty { { "name": "bankAccount", "baseName": "bankAccount", - "type": "BankAccountV3" + "type": "BankAccountV3 | null" }, { "name": "card", "baseName": "card", - "type": "Card" + "type": "Card | null" }, { "name": "merchant", "baseName": "merchant", - "type": "TransferNotificationMerchantData" + "type": "TransferNotificationMerchantData | null" }, { "name": "transferInstrumentId", diff --git a/src/typings/transfers/amountAdjustment.ts b/src/typings/transfers/amountAdjustment.ts index 491a1d544..543097d5a 100644 --- a/src/typings/transfers/amountAdjustment.ts +++ b/src/typings/transfers/amountAdjustment.ts @@ -10,7 +10,7 @@ import { Amount } from './amount'; export class AmountAdjustment { - 'amount'?: Amount; + 'amount'?: Amount | null; /** * The type of markup that is applied to an authorised payment. Possible values: **exchange**, **forexMarkup**, **authHoldReserve**, **atmMarkup**. */ @@ -26,7 +26,7 @@ export class AmountAdjustment { { "name": "amount", "baseName": "amount", - "type": "Amount" + "type": "Amount | null" }, { "name": "amountAdjustmentType", diff --git a/src/typings/transfers/bankAccountV3.ts b/src/typings/transfers/bankAccountV3.ts index a14bf97aa..503ebb97e 100644 --- a/src/typings/transfers/bankAccountV3.ts +++ b/src/typings/transfers/bankAccountV3.ts @@ -30,7 +30,7 @@ export class BankAccountV3 { /** * Contains the bank account details. The fields required in this object depend on the country of the bank account and the currency of the transfer. */ - 'accountIdentification': AULocalAccountIdentification | BRLocalAccountIdentification | CALocalAccountIdentification | CZLocalAccountIdentification | DKLocalAccountIdentification | HKLocalAccountIdentification | HULocalAccountIdentification | IbanAccountIdentification | NOLocalAccountIdentification | NZLocalAccountIdentification | NumberAndBicAccountIdentification | PLLocalAccountIdentification | SELocalAccountIdentification | SGLocalAccountIdentification | UKLocalAccountIdentification | USLocalAccountIdentification | null; + 'accountIdentification': AULocalAccountIdentification | BRLocalAccountIdentification | CALocalAccountIdentification | CZLocalAccountIdentification | DKLocalAccountIdentification | HKLocalAccountIdentification | HULocalAccountIdentification | IbanAccountIdentification | NOLocalAccountIdentification | NZLocalAccountIdentification | NumberAndBicAccountIdentification | PLLocalAccountIdentification | SELocalAccountIdentification | SGLocalAccountIdentification | UKLocalAccountIdentification | USLocalAccountIdentification; static discriminator: string | undefined = undefined; @@ -43,7 +43,7 @@ export class BankAccountV3 { { "name": "accountIdentification", "baseName": "accountIdentification", - "type": "AULocalAccountIdentification | BRLocalAccountIdentification | CALocalAccountIdentification | CZLocalAccountIdentification | DKLocalAccountIdentification | HKLocalAccountIdentification | HULocalAccountIdentification | IbanAccountIdentification | NOLocalAccountIdentification | NZLocalAccountIdentification | NumberAndBicAccountIdentification | PLLocalAccountIdentification | SELocalAccountIdentification | SGLocalAccountIdentification | UKLocalAccountIdentification | USLocalAccountIdentification | null" + "type": "AULocalAccountIdentification | BRLocalAccountIdentification | CALocalAccountIdentification | CZLocalAccountIdentification | DKLocalAccountIdentification | HKLocalAccountIdentification | HULocalAccountIdentification | IbanAccountIdentification | NOLocalAccountIdentification | NZLocalAccountIdentification | NumberAndBicAccountIdentification | PLLocalAccountIdentification | SELocalAccountIdentification | SGLocalAccountIdentification | UKLocalAccountIdentification | USLocalAccountIdentification" } ]; static getAttributeTypeMap() { diff --git a/src/typings/transfers/capitalGrant.ts b/src/typings/transfers/capitalGrant.ts index 9136261a3..85f40ef43 100644 --- a/src/typings/transfers/capitalGrant.ts +++ b/src/typings/transfers/capitalGrant.ts @@ -14,10 +14,10 @@ import { Fee } from './fee'; import { Repayment } from './repayment'; export class CapitalGrant { - 'amount'?: Amount; + 'amount'?: Amount | null; 'balances': CapitalBalance; - 'counterparty'?: Counterparty; - 'fee'?: Fee; + 'counterparty'?: Counterparty | null; + 'fee'?: Fee | null; /** * The identifier of the grant account used for the grant. */ @@ -30,7 +30,7 @@ export class CapitalGrant { * The identifier of the grant reference. */ 'id': string; - 'repayment'?: Repayment; + 'repayment'?: Repayment | null; /** * The current status of the grant. Possible values: **Pending**, **Active**, **Repaid**. */ @@ -42,7 +42,7 @@ export class CapitalGrant { { "name": "amount", "baseName": "amount", - "type": "Amount" + "type": "Amount | null" }, { "name": "balances", @@ -52,12 +52,12 @@ export class CapitalGrant { { "name": "counterparty", "baseName": "counterparty", - "type": "Counterparty" + "type": "Counterparty | null" }, { "name": "fee", "baseName": "fee", - "type": "Fee" + "type": "Fee | null" }, { "name": "grantAccountId", @@ -77,7 +77,7 @@ export class CapitalGrant { { "name": "repayment", "baseName": "repayment", - "type": "Repayment" + "type": "Repayment | null" }, { "name": "status", diff --git a/src/typings/transfers/capitalGrantInfo.ts b/src/typings/transfers/capitalGrantInfo.ts index 385f4a6ef..a241baac8 100644 --- a/src/typings/transfers/capitalGrantInfo.ts +++ b/src/typings/transfers/capitalGrantInfo.ts @@ -10,7 +10,7 @@ import { Counterparty } from './counterparty'; export class CapitalGrantInfo { - 'counterparty'?: Counterparty; + 'counterparty'?: Counterparty | null; /** * The identifier of the grant account used for the grant. */ @@ -26,7 +26,7 @@ export class CapitalGrantInfo { { "name": "counterparty", "baseName": "counterparty", - "type": "Counterparty" + "type": "Counterparty | null" }, { "name": "grantAccountId", diff --git a/src/typings/transfers/counterpartyInfoV3.ts b/src/typings/transfers/counterpartyInfoV3.ts index 9674886a6..ec633760f 100644 --- a/src/typings/transfers/counterpartyInfoV3.ts +++ b/src/typings/transfers/counterpartyInfoV3.ts @@ -15,8 +15,8 @@ export class CounterpartyInfoV3 { * The unique identifier of the counterparty [balance account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id). */ 'balanceAccountId'?: string; - 'bankAccount'?: BankAccountV3; - 'card'?: Card; + 'bankAccount'?: BankAccountV3 | null; + 'card'?: Card | null; /** * The unique identifier of the counterparty [transfer instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id). */ @@ -33,12 +33,12 @@ export class CounterpartyInfoV3 { { "name": "bankAccount", "baseName": "bankAccount", - "type": "BankAccountV3" + "type": "BankAccountV3 | null" }, { "name": "card", "baseName": "card", - "type": "Card" + "type": "Card | null" }, { "name": "transferInstrumentId", diff --git a/src/typings/transfers/counterpartyV3.ts b/src/typings/transfers/counterpartyV3.ts index 069cd3fb9..992d86700 100644 --- a/src/typings/transfers/counterpartyV3.ts +++ b/src/typings/transfers/counterpartyV3.ts @@ -16,9 +16,9 @@ export class CounterpartyV3 { * The unique identifier of the counterparty [balance account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id). */ 'balanceAccountId'?: string; - 'bankAccount'?: BankAccountV3; - 'card'?: Card; - 'merchant'?: MerchantData; + 'bankAccount'?: BankAccountV3 | null; + 'card'?: Card | null; + 'merchant'?: MerchantData | null; /** * The unique identifier of the counterparty [transfer instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id). */ @@ -35,17 +35,17 @@ export class CounterpartyV3 { { "name": "bankAccount", "baseName": "bankAccount", - "type": "BankAccountV3" + "type": "BankAccountV3 | null" }, { "name": "card", "baseName": "card", - "type": "Card" + "type": "Card | null" }, { "name": "merchant", "baseName": "merchant", - "type": "MerchantData" + "type": "MerchantData | null" }, { "name": "transferInstrumentId", diff --git a/src/typings/transfers/findTransfersResponse.ts b/src/typings/transfers/findTransfersResponse.ts index 1e55b8f70..9af498784 100644 --- a/src/typings/transfers/findTransfersResponse.ts +++ b/src/typings/transfers/findTransfersResponse.ts @@ -11,7 +11,7 @@ import { Links } from './links'; import { TransferData } from './transferData'; export class FindTransfersResponse { - '_links'?: Links; + '_links'?: Links | null; /** * Contains the transfers that match the query parameters. */ @@ -23,7 +23,7 @@ export class FindTransfersResponse { { "name": "_links", "baseName": "_links", - "type": "Links" + "type": "Links | null" }, { "name": "data", diff --git a/src/typings/transfers/issuedCard.ts b/src/typings/transfers/issuedCard.ts index 634201c98..5abedca41 100644 --- a/src/typings/transfers/issuedCard.ts +++ b/src/typings/transfers/issuedCard.ts @@ -23,7 +23,7 @@ export class IssuedCard { * Contains information about how the payment was processed. For example, **ecommerce** for online or **pos** for in-person payments. */ 'processingType'?: IssuedCard.ProcessingTypeEnum; - 'relayedAuthorisationData'?: RelayedAuthorisationData; + 'relayedAuthorisationData'?: RelayedAuthorisationData | null; /** * The identifier of the original payment. This ID is provided by the scheme and can be alphanumeric or numeric, depending on the scheme. The `schemeTraceID` should refer to an original `schemeUniqueTransactionID` provided in an earlier payment (not necessarily processed by Adyen). A `schemeTraceId` is typically available for authorization adjustments or recurring payments. */ @@ -62,7 +62,7 @@ export class IssuedCard { { "name": "relayedAuthorisationData", "baseName": "relayedAuthorisationData", - "type": "RelayedAuthorisationData" + "type": "RelayedAuthorisationData | null" }, { "name": "schemeTraceId", diff --git a/src/typings/transfers/links.ts b/src/typings/transfers/links.ts index 8a302d344..cc68f1870 100644 --- a/src/typings/transfers/links.ts +++ b/src/typings/transfers/links.ts @@ -10,8 +10,8 @@ import { Link } from './link'; export class Links { - 'next'?: Link; - 'prev'?: Link; + 'next'?: Link | null; + 'prev'?: Link | null; static discriminator: string | undefined = undefined; @@ -19,12 +19,12 @@ export class Links { { "name": "next", "baseName": "next", - "type": "Link" + "type": "Link | null" }, { "name": "prev", "baseName": "prev", - "type": "Link" + "type": "Link | null" } ]; static getAttributeTypeMap() { diff --git a/src/typings/transfers/merchantData.ts b/src/typings/transfers/merchantData.ts index a09c67b9b..79339cee2 100644 --- a/src/typings/transfers/merchantData.ts +++ b/src/typings/transfers/merchantData.ts @@ -22,7 +22,7 @@ export class MerchantData { * The merchant identifier. */ 'merchantId'?: string; - 'nameLocation'?: NameLocation; + 'nameLocation'?: NameLocation | null; /** * The merchant postal code. */ @@ -49,7 +49,7 @@ export class MerchantData { { "name": "nameLocation", "baseName": "nameLocation", - "type": "NameLocation" + "type": "NameLocation | null" }, { "name": "postalCode", diff --git a/src/typings/transfers/merchantPurchaseData.ts b/src/typings/transfers/merchantPurchaseData.ts index 67c0150c0..7082ef34a 100644 --- a/src/typings/transfers/merchantPurchaseData.ts +++ b/src/typings/transfers/merchantPurchaseData.ts @@ -10,7 +10,7 @@ import { Airline } from './airline'; export class MerchantPurchaseData { - 'airline'?: Airline; + 'airline'?: Airline | null; /** * The type of events data. Possible values: - **merchantPurchaseData**: merchant purchase data */ @@ -22,7 +22,7 @@ export class MerchantPurchaseData { { "name": "airline", "baseName": "airline", - "type": "Airline" + "type": "Airline | null" }, { "name": "type", diff --git a/src/typings/transfers/numberAndBicAccountIdentification.ts b/src/typings/transfers/numberAndBicAccountIdentification.ts index 4cffa0d6e..c64f5e5e7 100644 --- a/src/typings/transfers/numberAndBicAccountIdentification.ts +++ b/src/typings/transfers/numberAndBicAccountIdentification.ts @@ -14,7 +14,7 @@ export class NumberAndBicAccountIdentification { * The bank account number, without separators or whitespace. The length and format depends on the bank or country. */ 'accountNumber': string; - 'additionalBankIdentification'?: AdditionalBankIdentification; + 'additionalBankIdentification'?: AdditionalBankIdentification | null; /** * The bank\'s 8- or 11-character BIC or SWIFT code. */ @@ -35,7 +35,7 @@ export class NumberAndBicAccountIdentification { { "name": "additionalBankIdentification", "baseName": "additionalBankIdentification", - "type": "AdditionalBankIdentification" + "type": "AdditionalBankIdentification | null" }, { "name": "bic", diff --git a/src/typings/transfers/partyIdentification.ts b/src/typings/transfers/partyIdentification.ts index c909e62ce..4dabeeece 100644 --- a/src/typings/transfers/partyIdentification.ts +++ b/src/typings/transfers/partyIdentification.ts @@ -10,7 +10,7 @@ import { Address } from './address'; export class PartyIdentification { - 'address'?: Address; + 'address'?: Address | null; /** * The date of birth of the individual in [ISO-8601](https://www.w3.org/TR/NOTE-datetime) format. For example, **YYYY-MM-DD**. Allowed only when `type` is **individual**. */ @@ -42,7 +42,7 @@ export class PartyIdentification { { "name": "address", "baseName": "address", - "type": "Address" + "type": "Address | null" }, { "name": "dateOfBirth", diff --git a/src/typings/transfers/repayment.ts b/src/typings/transfers/repayment.ts index 5aa3cdd3b..17f32ffda 100644 --- a/src/typings/transfers/repayment.ts +++ b/src/typings/transfers/repayment.ts @@ -15,8 +15,8 @@ export class Repayment { * The repayment that is deducted daily from incoming net volume, in [basis points](https://www.investopedia.com/terms/b/basispoint.asp). */ 'basisPoints': number; - 'term'?: RepaymentTerm; - 'threshold'?: ThresholdRepayment; + 'term'?: RepaymentTerm | null; + 'threshold'?: ThresholdRepayment | null; static discriminator: string | undefined = undefined; @@ -29,12 +29,12 @@ export class Repayment { { "name": "term", "baseName": "term", - "type": "RepaymentTerm" + "type": "RepaymentTerm | null" }, { "name": "threshold", "baseName": "threshold", - "type": "ThresholdRepayment" + "type": "ThresholdRepayment | null" } ]; static getAttributeTypeMap() { diff --git a/src/typings/transfers/transaction.ts b/src/typings/transfers/transaction.ts index 7e2fee848..9eba58bb9 100644 --- a/src/typings/transfers/transaction.ts +++ b/src/typings/transfers/transaction.ts @@ -36,7 +36,7 @@ export class Transaction { * The unique identifier of the transaction. */ 'id': string; - 'paymentInstrument'?: PaymentInstrument; + 'paymentInstrument'?: PaymentInstrument | null; /** * The reference sent to or received from the counterparty. * For outgoing funds, this is the [`referenceForBeneficiary`](https://docs.adyen.com/api-explorer/#/transfers/latest/post/transfers__resParam_referenceForBeneficiary) from the [`/transfers`](https://docs.adyen.com/api-explorer/#/transfers/latest/post/transfers__reqParam_referenceForBeneficiary) request. * For incoming funds, this is the reference from the sender. */ @@ -45,7 +45,7 @@ export class Transaction { * The status of the transaction. Possible values: * **pending**: The transaction is still pending. * **booked**: The transaction has been booked to the balance account. */ 'status': Transaction.StatusEnum; - 'transfer'?: TransferView; + 'transfer'?: TransferView | null; /** * The date the transfer amount becomes available in the balance account. */ @@ -97,7 +97,7 @@ export class Transaction { { "name": "paymentInstrument", "baseName": "paymentInstrument", - "type": "PaymentInstrument" + "type": "PaymentInstrument | null" }, { "name": "referenceForBeneficiary", @@ -112,7 +112,7 @@ export class Transaction { { "name": "transfer", "baseName": "transfer", - "type": "TransferView" + "type": "TransferView | null" }, { "name": "valueDate", diff --git a/src/typings/transfers/transactionEventViolation.ts b/src/typings/transfers/transactionEventViolation.ts index 318ffc6ce..4d65525bb 100644 --- a/src/typings/transfers/transactionEventViolation.ts +++ b/src/typings/transfers/transactionEventViolation.ts @@ -15,8 +15,8 @@ export class TransactionEventViolation { * An explanation about why the transaction rule failed. */ 'reason'?: string; - 'transactionRule'?: TransactionRuleReference; - 'transactionRuleSource'?: TransactionRuleSource; + 'transactionRule'?: TransactionRuleReference | null; + 'transactionRuleSource'?: TransactionRuleSource | null; static discriminator: string | undefined = undefined; @@ -29,12 +29,12 @@ export class TransactionEventViolation { { "name": "transactionRule", "baseName": "transactionRule", - "type": "TransactionRuleReference" + "type": "TransactionRuleReference | null" }, { "name": "transactionRuleSource", "baseName": "transactionRuleSource", - "type": "TransactionRuleSource" + "type": "TransactionRuleSource | null" } ]; static getAttributeTypeMap() { diff --git a/src/typings/transfers/transactionSearchResponse.ts b/src/typings/transfers/transactionSearchResponse.ts index f7be8bde3..920b3e19b 100644 --- a/src/typings/transfers/transactionSearchResponse.ts +++ b/src/typings/transfers/transactionSearchResponse.ts @@ -11,7 +11,7 @@ import { Links } from './links'; import { Transaction } from './transaction'; export class TransactionSearchResponse { - '_links'?: Links; + '_links'?: Links | null; /** * Contains the transactions that match the query parameters. */ @@ -23,7 +23,7 @@ export class TransactionSearchResponse { { "name": "_links", "baseName": "_links", - "type": "Links" + "type": "Links | null" }, { "name": "data", diff --git a/src/typings/transfers/transfer.ts b/src/typings/transfers/transfer.ts index dbc5d119d..c50ff60fb 100644 --- a/src/typings/transfers/transfer.ts +++ b/src/typings/transfers/transfer.ts @@ -19,9 +19,9 @@ import { ResourceReference } from './resourceReference'; import { TransferReview } from './transferReview'; export class Transfer { - 'accountHolder'?: ResourceReference; + 'accountHolder'?: ResourceReference | null; 'amount': Amount; - 'balanceAccount'?: ResourceReference; + 'balanceAccount'?: ResourceReference | null; /** * The category of the transfer. Possible values: - **bank**: a transfer involving a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. - **card**: a transfer involving a third-party card. - **internal**: a transfer between [balance accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. - **issuedCard**: a transfer initiated by a Adyen-issued card. - **platformPayment**: funds movements related to payments that are acquired for your users. - **topUp**: an incoming transfer initiated by your user to top up their balance account. */ @@ -39,7 +39,7 @@ export class Transfer { * Your description for the transfer. It is used by most banks as the transfer description. We recommend sending a maximum of 140 characters, otherwise the description may be truncated. Supported characters: **[a-z] [A-Z] [0-9] / - ?** **: ( ) . , \' + Space** Supported characters for **regular** and **fast** transfers to a US counterparty: **[a-z] [A-Z] [0-9] & $ % # @** **~ = + - _ \' \" ! ?** */ 'description'?: string; - 'directDebitInformation'?: DirectDebitInformation; + 'directDebitInformation'?: DirectDebitInformation | null; /** * The direction of the transfer. Possible values: **incoming**, **outgoing**. */ @@ -48,7 +48,7 @@ export class Transfer { * The ID of the resource. */ 'id'?: string; - 'paymentInstrument'?: PaymentInstrument; + 'paymentInstrument'?: PaymentInstrument | null; /** * Additional information about the status of the transfer. */ @@ -61,7 +61,7 @@ export class Transfer { * A reference that is sent to the recipient. This reference is also sent in all webhooks related to the transfer, so you can use it to track statuses for both the source and recipient of funds. Supported characters: **a-z**, **A-Z**, **0-9**.The maximum length depends on the `category`. - **internal**: 80 characters - **bank**: 35 characters when transferring to an IBAN, 15 characters for others. */ 'referenceForBeneficiary'?: string; - 'review'?: TransferReview; + 'review'?: TransferReview | null; /** * The result of the transfer. For example, **authorised**, **refused**, or **error**. */ @@ -77,7 +77,7 @@ export class Transfer { { "name": "accountHolder", "baseName": "accountHolder", - "type": "ResourceReference" + "type": "ResourceReference | null" }, { "name": "amount", @@ -87,7 +87,7 @@ export class Transfer { { "name": "balanceAccount", "baseName": "balanceAccount", - "type": "ResourceReference" + "type": "ResourceReference | null" }, { "name": "category", @@ -117,7 +117,7 @@ export class Transfer { { "name": "directDebitInformation", "baseName": "directDebitInformation", - "type": "DirectDebitInformation" + "type": "DirectDebitInformation | null" }, { "name": "direction", @@ -132,7 +132,7 @@ export class Transfer { { "name": "paymentInstrument", "baseName": "paymentInstrument", - "type": "PaymentInstrument" + "type": "PaymentInstrument | null" }, { "name": "reason", @@ -152,7 +152,7 @@ export class Transfer { { "name": "review", "baseName": "review", - "type": "TransferReview" + "type": "TransferReview | null" }, { "name": "status", diff --git a/src/typings/transfers/transferData.ts b/src/typings/transfers/transferData.ts index b98a881f8..733570f5a 100644 --- a/src/typings/transfers/transferData.ts +++ b/src/typings/transfers/transferData.ts @@ -25,9 +25,9 @@ import { TransferNotificationCounterParty } from './transferNotificationCounterP import { TransferReview } from './transferReview'; export class TransferData { - 'accountHolder'?: ResourceReference; + 'accountHolder'?: ResourceReference | null; 'amount': Amount; - 'balanceAccount'?: ResourceReference; + 'balanceAccount'?: ResourceReference | null; /** * The unique identifier of the balance platform. */ @@ -44,7 +44,7 @@ export class TransferData { * The relevant data according to the transfer category. */ 'categoryData'?: BankCategoryData | InternalCategoryData | IssuedCard | PlatformPayment | null; - 'counterparty'?: TransferNotificationCounterParty; + 'counterparty'?: TransferNotificationCounterParty | null; /** * The date and time when the event was triggered, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**. */ @@ -53,7 +53,7 @@ export class TransferData { * Your description for the transfer. It is used by most banks as the transfer description. We recommend sending a maximum of 140 characters, otherwise the description may be truncated. Supported characters: **[a-z] [A-Z] [0-9] / - ?** **: ( ) . , \' + Space** Supported characters for **regular** and **fast** transfers to a US counterparty: **[a-z] [A-Z] [0-9] & $ % # @** **~ = + - _ \' \" ! ?** */ 'description'?: string; - 'directDebitInformation'?: DirectDebitInformation; + 'directDebitInformation'?: DirectDebitInformation | null; /** * The direction of the transfer. Possible values: **incoming**, **outgoing**. */ @@ -70,7 +70,7 @@ export class TransferData { * The ID of the resource. */ 'id'?: string; - 'paymentInstrument'?: PaymentInstrument; + 'paymentInstrument'?: PaymentInstrument | null; /** * Additional information about the status of the transfer. */ @@ -83,7 +83,7 @@ export class TransferData { * A reference that is sent to the recipient. This reference is also sent in all webhooks related to the transfer, so you can use it to track statuses for both the source and recipient of funds. Supported characters: **a-z**, **A-Z**, **0-9**.The maximum length depends on the `category`. - **internal**: 80 characters - **bank**: 35 characters when transferring to an IBAN, 15 characters for others. */ 'referenceForBeneficiary'?: string; - 'review'?: TransferReview; + 'review'?: TransferReview | null; /** * The sequence number of the transfer webhook. The numbers start from 1 and increase with each new webhook for a specific transfer. The sequence number can help you restore the correct sequence of events even if they arrive out of order. */ @@ -96,7 +96,7 @@ export class TransferData { * The latest tracking information of the transfer. */ 'tracking'?: ConfirmationTrackingData | EstimationTrackingData | InternalReviewTrackingData | null; - 'transactionRulesResult'?: TransactionRulesResult; + 'transactionRulesResult'?: TransactionRulesResult | null; /** * The type of transfer or transaction. For example, **refund**, **payment**, **internalTransfer**, **bankTransfer**. */ @@ -108,7 +108,7 @@ export class TransferData { { "name": "accountHolder", "baseName": "accountHolder", - "type": "ResourceReference" + "type": "ResourceReference | null" }, { "name": "amount", @@ -118,7 +118,7 @@ export class TransferData { { "name": "balanceAccount", "baseName": "balanceAccount", - "type": "ResourceReference" + "type": "ResourceReference | null" }, { "name": "balancePlatform", @@ -143,7 +143,7 @@ export class TransferData { { "name": "counterparty", "baseName": "counterparty", - "type": "TransferNotificationCounterParty" + "type": "TransferNotificationCounterParty | null" }, { "name": "creationDate", @@ -158,7 +158,7 @@ export class TransferData { { "name": "directDebitInformation", "baseName": "directDebitInformation", - "type": "DirectDebitInformation" + "type": "DirectDebitInformation | null" }, { "name": "direction", @@ -183,7 +183,7 @@ export class TransferData { { "name": "paymentInstrument", "baseName": "paymentInstrument", - "type": "PaymentInstrument" + "type": "PaymentInstrument | null" }, { "name": "reason", @@ -203,7 +203,7 @@ export class TransferData { { "name": "review", "baseName": "review", - "type": "TransferReview" + "type": "TransferReview | null" }, { "name": "sequenceNumber", @@ -223,7 +223,7 @@ export class TransferData { { "name": "transactionRulesResult", "baseName": "transactionRulesResult", - "type": "TransactionRulesResult" + "type": "TransactionRulesResult | null" }, { "name": "type", diff --git a/src/typings/transfers/transferEvent.ts b/src/typings/transfers/transferEvent.ts index 57c2caa0e..8fbdcf6a3 100644 --- a/src/typings/transfers/transferEvent.ts +++ b/src/typings/transfers/transferEvent.ts @@ -18,7 +18,7 @@ import { MerchantPurchaseData } from './merchantPurchaseData'; import { Modification } from './modification'; export class TransferEvent { - 'amount'?: Amount; + 'amount'?: Amount | null; /** * The amount adjustments in this transfer. */ @@ -39,17 +39,17 @@ export class TransferEvent { * A list of event data. */ 'eventsData'?: Array; - 'externalReason'?: ExternalReason; + 'externalReason'?: ExternalReason | null; /** * The unique identifier of the transfer event. */ 'id'?: string; - 'modification'?: Modification; + 'modification'?: Modification | null; /** * The list of balance mutations per event. */ 'mutations'?: Array; - 'originalAmount'?: Amount; + 'originalAmount'?: Amount | null; /** * The reason for the transfer status. */ @@ -85,7 +85,7 @@ export class TransferEvent { { "name": "amount", "baseName": "amount", - "type": "Amount" + "type": "Amount | null" }, { "name": "amountAdjustments", @@ -115,7 +115,7 @@ export class TransferEvent { { "name": "externalReason", "baseName": "externalReason", - "type": "ExternalReason" + "type": "ExternalReason | null" }, { "name": "id", @@ -125,7 +125,7 @@ export class TransferEvent { { "name": "modification", "baseName": "modification", - "type": "Modification" + "type": "Modification | null" }, { "name": "mutations", @@ -135,7 +135,7 @@ export class TransferEvent { { "name": "originalAmount", "baseName": "originalAmount", - "type": "Amount" + "type": "Amount | null" }, { "name": "reason", diff --git a/src/typings/transfers/transferInfo.ts b/src/typings/transfers/transferInfo.ts index 325f81327..b3001b3ed 100644 --- a/src/typings/transfers/transferInfo.ts +++ b/src/typings/transfers/transferInfo.ts @@ -47,12 +47,12 @@ export class TransferInfo { * A reference that is sent to the recipient. This reference is also sent in all webhooks related to the transfer, so you can use it to track statuses for both parties involved in the funds movement. Supported characters: **a-z**, **A-Z**, **0-9**. The maximum length depends on the `category`. - **internal**: 80 characters - **bank**: 35 characters when transferring to an IBAN, 15 characters for others. */ 'referenceForBeneficiary'?: string; - 'review'?: TransferRequestReview; + 'review'?: TransferRequestReview | null; /** * The type of transfer. Possible values: - **bankTransfer**: for push transfers to a transfer instrument or a bank account. The `category` must be **bank**. - **internalTransfer**: for push transfers between balance accounts. The `category` must be **internal**. - **internalDirectDebit**: for pull transfers (direct debits) between balance accounts. The `category` must be **internal**. */ 'type'?: TransferInfo.TypeEnum; - 'ultimateParty'?: UltimatePartyIdentification; + 'ultimateParty'?: UltimatePartyIdentification | null; static discriminator: string | undefined = undefined; @@ -110,7 +110,7 @@ export class TransferInfo { { "name": "review", "baseName": "review", - "type": "TransferRequestReview" + "type": "TransferRequestReview | null" }, { "name": "type", @@ -120,7 +120,7 @@ export class TransferInfo { { "name": "ultimateParty", "baseName": "ultimateParty", - "type": "UltimatePartyIdentification" + "type": "UltimatePartyIdentification | null" } ]; static getAttributeTypeMap() { diff --git a/src/typings/transfers/transferNotificationCounterParty.ts b/src/typings/transfers/transferNotificationCounterParty.ts index 1e7fe6509..0eec761b2 100644 --- a/src/typings/transfers/transferNotificationCounterParty.ts +++ b/src/typings/transfers/transferNotificationCounterParty.ts @@ -16,9 +16,9 @@ export class TransferNotificationCounterParty { * The unique identifier of the counterparty [balance account](https://docs.adyen.com/api-explorer/balanceplatform/latest/post/balanceAccounts#responses-200-id). */ 'balanceAccountId'?: string; - 'bankAccount'?: BankAccountV3; - 'card'?: Card; - 'merchant'?: TransferNotificationMerchantData; + 'bankAccount'?: BankAccountV3 | null; + 'card'?: Card | null; + 'merchant'?: TransferNotificationMerchantData | null; /** * The unique identifier of the counterparty [transfer instrument](https://docs.adyen.com/api-explorer/legalentity/latest/post/transferInstruments#responses-200-id). */ @@ -35,17 +35,17 @@ export class TransferNotificationCounterParty { { "name": "bankAccount", "baseName": "bankAccount", - "type": "BankAccountV3" + "type": "BankAccountV3 | null" }, { "name": "card", "baseName": "card", - "type": "Card" + "type": "Card | null" }, { "name": "merchant", "baseName": "merchant", - "type": "TransferNotificationMerchantData" + "type": "TransferNotificationMerchantData | null" }, { "name": "transferInstrumentId", diff --git a/src/typings/transfers/ultimatePartyIdentification.ts b/src/typings/transfers/ultimatePartyIdentification.ts index a79d3730c..581c10a70 100644 --- a/src/typings/transfers/ultimatePartyIdentification.ts +++ b/src/typings/transfers/ultimatePartyIdentification.ts @@ -10,7 +10,7 @@ import { Address } from './address'; export class UltimatePartyIdentification { - 'address'?: Address; + 'address'?: Address | null; /** * The date of birth of the individual in [ISO-8601](https://www.w3.org/TR/NOTE-datetime) format. For example, **YYYY-MM-DD**. Allowed only when `type` is **individual**. */ @@ -42,7 +42,7 @@ export class UltimatePartyIdentification { { "name": "address", "baseName": "address", - "type": "Address" + "type": "Address | null" }, { "name": "dateOfBirth", From a3fff6495ebbcaa2fbc0868fc758ca5f8ae2eaee Mon Sep 17 00:00:00 2001 From: AdyenAutomationBot Date: Mon, 23 Dec 2024 11:41:15 +0000 Subject: [PATCH 2/4] style(fmt): code formatted --- src/services/balancePlatform/accountHoldersApi.ts | 3 +-- src/services/balancePlatform/balanceAccountsApi.ts | 1 - src/services/balancePlatform/bankAccountValidationApi.ts | 1 - src/services/balancePlatform/cardOrdersApi.ts | 1 - src/services/balancePlatform/grantAccountsApi.ts | 1 - src/services/balancePlatform/grantOffersApi.ts | 1 - src/services/balancePlatform/manageCardPINApi.ts | 1 - src/services/balancePlatform/manageSCADevicesApi.ts | 1 - src/services/balancePlatform/networkTokensApi.ts | 1 - src/services/balancePlatform/paymentInstrumentGroupsApi.ts | 1 - src/services/balancePlatform/paymentInstrumentsApi.ts | 1 - src/services/balancePlatform/platformApi.ts | 1 - src/services/balancePlatform/transactionRulesApi.ts | 3 +-- src/services/balancePlatform/transferRoutesApi.ts | 3 +-- src/services/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 - src/services/dataProtectionApi.ts | 1 - src/services/disputesApi.ts | 1 - src/services/legalEntityManagement/businessLinesApi.ts | 1 - src/services/legalEntityManagement/documentsApi.ts | 1 - src/services/legalEntityManagement/hostedOnboardingApi.ts | 1 - src/services/legalEntityManagement/legalEntitiesApi.ts | 1 - src/services/legalEntityManagement/pCIQuestionnairesApi.ts | 1 - src/services/legalEntityManagement/taxEDeliveryConsentApi.ts | 1 - src/services/legalEntityManagement/termsOfServiceApi.ts | 1 - src/services/legalEntityManagement/transferInstrumentsApi.ts | 3 +-- src/services/management/aPICredentialsCompanyLevelApi.ts | 1 - src/services/management/aPICredentialsMerchantLevelApi.ts | 1 - src/services/management/aPIKeyCompanyLevelApi.ts | 1 - src/services/management/aPIKeyMerchantLevelApi.ts | 1 - src/services/management/accountCompanyLevelApi.ts | 1 - src/services/management/accountMerchantLevelApi.ts | 1 - src/services/management/accountStoreLevelApi.ts | 1 - src/services/management/allowedOriginsCompanyLevelApi.ts | 1 - src/services/management/allowedOriginsMerchantLevelApi.ts | 1 - src/services/management/androidFilesCompanyLevelApi.ts | 1 - src/services/management/clientKeyCompanyLevelApi.ts | 1 - src/services/management/clientKeyMerchantLevelApi.ts | 1 - src/services/management/myAPICredentialApi.ts | 1 - src/services/management/paymentMethodsMerchantLevelApi.ts | 1 - src/services/management/payoutSettingsMerchantLevelApi.ts | 1 - src/services/management/splitConfigurationMerchantLevelApi.ts | 3 +-- src/services/management/terminalActionsCompanyLevelApi.ts | 1 - src/services/management/terminalActionsTerminalLevelApi.ts | 3 +-- src/services/management/terminalOrdersCompanyLevelApi.ts | 1 - src/services/management/terminalOrdersMerchantLevelApi.ts | 1 - src/services/management/terminalSettingsCompanyLevelApi.ts | 1 - src/services/management/terminalSettingsMerchantLevelApi.ts | 1 - src/services/management/terminalSettingsStoreLevelApi.ts | 1 - src/services/management/terminalSettingsTerminalLevelApi.ts | 1 - src/services/management/terminalsTerminalLevelApi.ts | 1 - src/services/management/usersCompanyLevelApi.ts | 1 - src/services/management/usersMerchantLevelApi.ts | 1 - src/services/management/webhooksCompanyLevelApi.ts | 1 - src/services/management/webhooksMerchantLevelApi.ts | 1 - src/services/paymentApi.ts | 1 - src/services/paymentsAppApi.ts | 1 - src/services/payout/initializationApi.ts | 3 +-- src/services/payout/instantPayoutsApi.ts | 1 - src/services/payout/reviewingApi.ts | 1 - src/services/recurringApi.ts | 1 - src/services/storedValueApi.ts | 1 - src/services/terminalManagementApi.ts | 1 - src/services/transfers/capitalApi.ts | 1 - src/services/transfers/transactionsApi.ts | 3 +-- src/services/transfers/transfersApi.ts | 4 +--- 71 files changed, 9 insertions(+), 81 deletions(-) diff --git a/src/services/balancePlatform/accountHoldersApi.ts b/src/services/balancePlatform/accountHoldersApi.ts index b61a5aba1..2e1a9e645 100644 --- a/src/services/balancePlatform/accountHoldersApi.ts +++ b/src/services/balancePlatform/accountHoldersApi.ts @@ -16,7 +16,6 @@ import { AccountHolderUpdateRequest, GetTaxFormResponse, PaginatedBalanceAccountsResponse, - RestServiceError, TransactionRulesResponse, ObjectSerializer } from "../../typings/balancePlatform/models"; @@ -122,7 +121,7 @@ export class AccountHoldersApi extends Service { * @param year {@link number } The tax year in YYYY format for the tax form you want to retrieve * @return {@link GetTaxFormResponse } */ - public async getTaxForm(id: string, formType?: 'US1099k' | 'US1099nec', year?: number, requestOptions?: IRequest.Options): Promise { + public async getTaxForm(id: string, formType?: "US1099k" | "US1099nec", year?: number, 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/balanceAccountsApi.ts b/src/services/balancePlatform/balanceAccountsApi.ts index 3d8249f10..1c4c09c34 100644 --- a/src/services/balancePlatform/balanceAccountsApi.ts +++ b/src/services/balancePlatform/balanceAccountsApi.ts @@ -17,7 +17,6 @@ import { BalanceSweepConfigurationsResponse, CreateSweepConfigurationV2, PaginatedPaymentInstrumentsResponse, - RestServiceError, SweepConfigurationV2, TransactionRulesResponse, UpdateSweepConfigurationV2, diff --git a/src/services/balancePlatform/bankAccountValidationApi.ts b/src/services/balancePlatform/bankAccountValidationApi.ts index e58593d70..cb5f174f8 100644 --- a/src/services/balancePlatform/bankAccountValidationApi.ts +++ b/src/services/balancePlatform/bankAccountValidationApi.ts @@ -12,7 +12,6 @@ import Service from "../../service"; import Client from "../../client"; import { BankAccountIdentificationValidationRequest, - RestServiceError, ObjectSerializer } from "../../typings/balancePlatform/models"; import { IRequest } from "../../typings/requestOptions"; diff --git a/src/services/balancePlatform/cardOrdersApi.ts b/src/services/balancePlatform/cardOrdersApi.ts index 990c03d5c..cb95622e0 100644 --- a/src/services/balancePlatform/cardOrdersApi.ts +++ b/src/services/balancePlatform/cardOrdersApi.ts @@ -13,7 +13,6 @@ import Client from "../../client"; import { PaginatedGetCardOrderItemResponse, PaginatedGetCardOrderResponse, - RestServiceError, ObjectSerializer } from "../../typings/balancePlatform/models"; import { IRequest } from "../../typings/requestOptions"; diff --git a/src/services/balancePlatform/grantAccountsApi.ts b/src/services/balancePlatform/grantAccountsApi.ts index 7612e2016..8127a64f0 100644 --- a/src/services/balancePlatform/grantAccountsApi.ts +++ b/src/services/balancePlatform/grantAccountsApi.ts @@ -12,7 +12,6 @@ import Service from "../../service"; import Client from "../../client"; import { CapitalGrantAccount, - RestServiceError, ObjectSerializer } from "../../typings/balancePlatform/models"; import { IRequest } from "../../typings/requestOptions"; diff --git a/src/services/balancePlatform/grantOffersApi.ts b/src/services/balancePlatform/grantOffersApi.ts index 84d1b4d03..fa3298ff5 100644 --- a/src/services/balancePlatform/grantOffersApi.ts +++ b/src/services/balancePlatform/grantOffersApi.ts @@ -13,7 +13,6 @@ import Client from "../../client"; import { GrantOffer, GrantOffers, - RestServiceError, ObjectSerializer } from "../../typings/balancePlatform/models"; import { IRequest } from "../../typings/requestOptions"; diff --git a/src/services/balancePlatform/manageCardPINApi.ts b/src/services/balancePlatform/manageCardPINApi.ts index c94f194b0..d550c4ece 100644 --- a/src/services/balancePlatform/manageCardPINApi.ts +++ b/src/services/balancePlatform/manageCardPINApi.ts @@ -14,7 +14,6 @@ import { PinChangeRequest, PinChangeResponse, PublicKeyResponse, - RestServiceError, RevealPinRequest, RevealPinResponse, ObjectSerializer diff --git a/src/services/balancePlatform/manageSCADevicesApi.ts b/src/services/balancePlatform/manageSCADevicesApi.ts index 0499bedfc..d15464bef 100644 --- a/src/services/balancePlatform/manageSCADevicesApi.ts +++ b/src/services/balancePlatform/manageSCADevicesApi.ts @@ -14,7 +14,6 @@ import { RegisterSCAFinalResponse, RegisterSCARequest, RegisterSCAResponse, - RestServiceError, SearchRegisteredDevicesResponse, ObjectSerializer } from "../../typings/balancePlatform/models"; diff --git a/src/services/balancePlatform/networkTokensApi.ts b/src/services/balancePlatform/networkTokensApi.ts index 8620e5b5a..b30105e81 100644 --- a/src/services/balancePlatform/networkTokensApi.ts +++ b/src/services/balancePlatform/networkTokensApi.ts @@ -12,7 +12,6 @@ import Service from "../../service"; import Client from "../../client"; import { GetNetworkTokenResponse, - RestServiceError, UpdateNetworkTokenRequest, ObjectSerializer } from "../../typings/balancePlatform/models"; diff --git a/src/services/balancePlatform/paymentInstrumentGroupsApi.ts b/src/services/balancePlatform/paymentInstrumentGroupsApi.ts index 603d1b874..934568c13 100644 --- a/src/services/balancePlatform/paymentInstrumentGroupsApi.ts +++ b/src/services/balancePlatform/paymentInstrumentGroupsApi.ts @@ -13,7 +13,6 @@ import Client from "../../client"; import { PaymentInstrumentGroup, PaymentInstrumentGroupInfo, - RestServiceError, TransactionRulesResponse, ObjectSerializer } from "../../typings/balancePlatform/models"; diff --git a/src/services/balancePlatform/paymentInstrumentsApi.ts b/src/services/balancePlatform/paymentInstrumentsApi.ts index 78536c29c..9f9a68fea 100644 --- a/src/services/balancePlatform/paymentInstrumentsApi.ts +++ b/src/services/balancePlatform/paymentInstrumentsApi.ts @@ -18,7 +18,6 @@ import { PaymentInstrumentRevealRequest, PaymentInstrumentRevealResponse, PaymentInstrumentUpdateRequest, - RestServiceError, TransactionRulesResponse, UpdatePaymentInstrument, ObjectSerializer diff --git a/src/services/balancePlatform/platformApi.ts b/src/services/balancePlatform/platformApi.ts index 7f909fc60..0b4128ab8 100644 --- a/src/services/balancePlatform/platformApi.ts +++ b/src/services/balancePlatform/platformApi.ts @@ -13,7 +13,6 @@ import Client from "../../client"; import { BalancePlatform, PaginatedAccountHoldersResponse, - RestServiceError, TransactionRulesResponse, ObjectSerializer } from "../../typings/balancePlatform/models"; diff --git a/src/services/balancePlatform/transactionRulesApi.ts b/src/services/balancePlatform/transactionRulesApi.ts index 2a0cf66a5..b76f5687c 100644 --- a/src/services/balancePlatform/transactionRulesApi.ts +++ b/src/services/balancePlatform/transactionRulesApi.ts @@ -10,8 +10,7 @@ import getJsonResponse from "../../helpers/getJsonResponse"; import Service from "../../service"; import Client from "../../client"; -import { - RestServiceError, +import { TransactionRule, TransactionRuleInfo, TransactionRuleResponse, diff --git a/src/services/balancePlatform/transferRoutesApi.ts b/src/services/balancePlatform/transferRoutesApi.ts index 585e29eaa..8121a3ab6 100644 --- a/src/services/balancePlatform/transferRoutesApi.ts +++ b/src/services/balancePlatform/transferRoutesApi.ts @@ -10,8 +10,7 @@ import getJsonResponse from "../../helpers/getJsonResponse"; import Service from "../../service"; import Client from "../../client"; -import { - RestServiceError, +import { TransferRouteRequest, TransferRouteResponse, ObjectSerializer diff --git a/src/services/binLookupApi.ts b/src/services/binLookupApi.ts index f5ae3df91..e65887989 100644 --- a/src/services/binLookupApi.ts +++ b/src/services/binLookupApi.ts @@ -12,7 +12,6 @@ import getJsonResponse from "../helpers/getJsonResponse"; import Service from "../service"; 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"; import { IRequest } from "../typings/requestOptions"; diff --git a/src/services/checkout/donationsApi.ts b/src/services/checkout/donationsApi.ts index e53db3720..b85b89a07 100644 --- a/src/services/checkout/donationsApi.ts +++ b/src/services/checkout/donationsApi.ts @@ -15,7 +15,6 @@ import { DonationCampaignsResponse, DonationPaymentRequest, DonationPaymentResponse, - ServiceError, ObjectSerializer } from "../../typings/checkout/models"; import { IRequest } from "../../typings/requestOptions"; diff --git a/src/services/checkout/modificationsApi.ts b/src/services/checkout/modificationsApi.ts index ac7d1e267..1b79c9297 100644 --- a/src/services/checkout/modificationsApi.ts +++ b/src/services/checkout/modificationsApi.ts @@ -21,7 +21,6 @@ import { PaymentRefundResponse, PaymentReversalRequest, PaymentReversalResponse, - ServiceError, StandalonePaymentCancelRequest, StandalonePaymentCancelResponse, ObjectSerializer diff --git a/src/services/checkout/ordersApi.ts b/src/services/checkout/ordersApi.ts index 4ae182408..530fc30a1 100644 --- a/src/services/checkout/ordersApi.ts +++ b/src/services/checkout/ordersApi.ts @@ -17,7 +17,6 @@ import { CancelOrderResponse, CreateOrderRequest, CreateOrderResponse, - ServiceError, ObjectSerializer } from "../../typings/checkout/models"; import { IRequest } from "../../typings/requestOptions"; diff --git a/src/services/checkout/paymentLinksApi.ts b/src/services/checkout/paymentLinksApi.ts index 548d781a8..6fcad85cf 100644 --- a/src/services/checkout/paymentLinksApi.ts +++ b/src/services/checkout/paymentLinksApi.ts @@ -13,7 +13,6 @@ import Client from "../../client"; import { PaymentLinkRequest, PaymentLinkResponse, - ServiceError, UpdatePaymentLinkRequest, ObjectSerializer } from "../../typings/checkout/models"; diff --git a/src/services/checkout/paymentsApi.ts b/src/services/checkout/paymentsApi.ts index bd6850aca..57e2fb3f6 100644 --- a/src/services/checkout/paymentsApi.ts +++ b/src/services/checkout/paymentsApi.ts @@ -21,7 +21,6 @@ import { PaymentMethodsResponse, PaymentRequest, PaymentResponse, - ServiceError, SessionResultResponse, ObjectSerializer } from "../../typings/checkout/models"; diff --git a/src/services/checkout/utilityApi.ts b/src/services/checkout/utilityApi.ts index 156549273..95a0582aa 100644 --- a/src/services/checkout/utilityApi.ts +++ b/src/services/checkout/utilityApi.ts @@ -15,7 +15,6 @@ import { ApplePaySessionResponse, PaypalUpdateOrderRequest, PaypalUpdateOrderResponse, - ServiceError, UtilityRequest, UtilityResponse, ObjectSerializer diff --git a/src/services/dataProtectionApi.ts b/src/services/dataProtectionApi.ts index 07db4b737..7c2a0f30c 100644 --- a/src/services/dataProtectionApi.ts +++ b/src/services/dataProtectionApi.ts @@ -10,7 +10,6 @@ import Client from "../client"; import getJsonResponse from "../helpers/getJsonResponse"; import Service from "../service"; -import { ServiceError } from "../typings/dataProtection/models"; import { SubjectErasureByPspReferenceRequest } from "../typings/dataProtection/models"; import { SubjectErasureResponse } from "../typings/dataProtection/models"; import { IRequest } from "../typings/requestOptions"; diff --git a/src/services/disputesApi.ts b/src/services/disputesApi.ts index 86b6f3de0..f2f61b18b 100644 --- a/src/services/disputesApi.ts +++ b/src/services/disputesApi.ts @@ -18,7 +18,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"; import { IRequest } from "../typings/requestOptions"; diff --git a/src/services/legalEntityManagement/businessLinesApi.ts b/src/services/legalEntityManagement/businessLinesApi.ts index 6c7796f6f..45ce6adaa 100644 --- a/src/services/legalEntityManagement/businessLinesApi.ts +++ b/src/services/legalEntityManagement/businessLinesApi.ts @@ -14,7 +14,6 @@ import { BusinessLine, BusinessLineInfo, BusinessLineInfoUpdate, - ServiceError, ObjectSerializer } from "../../typings/legalEntityManagement/models"; import { IRequest } from "../../typings/requestOptions"; diff --git a/src/services/legalEntityManagement/documentsApi.ts b/src/services/legalEntityManagement/documentsApi.ts index 3a25c7d8a..dbd3cb953 100644 --- a/src/services/legalEntityManagement/documentsApi.ts +++ b/src/services/legalEntityManagement/documentsApi.ts @@ -12,7 +12,6 @@ import Service from "../../service"; import Client from "../../client"; import { Document, - ServiceError, ObjectSerializer } from "../../typings/legalEntityManagement/models"; import { IRequest } from "../../typings/requestOptions"; diff --git a/src/services/legalEntityManagement/hostedOnboardingApi.ts b/src/services/legalEntityManagement/hostedOnboardingApi.ts index 8467218db..a217be595 100644 --- a/src/services/legalEntityManagement/hostedOnboardingApi.ts +++ b/src/services/legalEntityManagement/hostedOnboardingApi.ts @@ -15,7 +15,6 @@ import { OnboardingLinkInfo, OnboardingTheme, OnboardingThemes, - ServiceError, ObjectSerializer } from "../../typings/legalEntityManagement/models"; import { IRequest } from "../../typings/requestOptions"; diff --git a/src/services/legalEntityManagement/legalEntitiesApi.ts b/src/services/legalEntityManagement/legalEntitiesApi.ts index fb12a96a2..1fc9b48e3 100644 --- a/src/services/legalEntityManagement/legalEntitiesApi.ts +++ b/src/services/legalEntityManagement/legalEntitiesApi.ts @@ -16,7 +16,6 @@ import { LegalEntity, LegalEntityInfo, LegalEntityInfoRequiredType, - ServiceError, VerificationErrors, ObjectSerializer } from "../../typings/legalEntityManagement/models"; diff --git a/src/services/legalEntityManagement/pCIQuestionnairesApi.ts b/src/services/legalEntityManagement/pCIQuestionnairesApi.ts index e04ff6f70..82dd39283 100644 --- a/src/services/legalEntityManagement/pCIQuestionnairesApi.ts +++ b/src/services/legalEntityManagement/pCIQuestionnairesApi.ts @@ -19,7 +19,6 @@ import { GetPciQuestionnaireResponse, PciSigningRequest, PciSigningResponse, - ServiceError, ObjectSerializer } from "../../typings/legalEntityManagement/models"; import { IRequest } from "../../typings/requestOptions"; diff --git a/src/services/legalEntityManagement/taxEDeliveryConsentApi.ts b/src/services/legalEntityManagement/taxEDeliveryConsentApi.ts index 288149b2e..8dc4a1011 100644 --- a/src/services/legalEntityManagement/taxEDeliveryConsentApi.ts +++ b/src/services/legalEntityManagement/taxEDeliveryConsentApi.ts @@ -12,7 +12,6 @@ import Service from "../../service"; import Client from "../../client"; import { CheckTaxElectronicDeliveryConsentResponse, - ServiceError, SetTaxElectronicDeliveryConsentRequest, ObjectSerializer } from "../../typings/legalEntityManagement/models"; diff --git a/src/services/legalEntityManagement/termsOfServiceApi.ts b/src/services/legalEntityManagement/termsOfServiceApi.ts index 102d9ba26..38d4df809 100644 --- a/src/services/legalEntityManagement/termsOfServiceApi.ts +++ b/src/services/legalEntityManagement/termsOfServiceApi.ts @@ -18,7 +18,6 @@ import { GetTermsOfServiceAcceptanceInfosResponse, GetTermsOfServiceDocumentRequest, GetTermsOfServiceDocumentResponse, - ServiceError, ObjectSerializer } from "../../typings/legalEntityManagement/models"; import { IRequest } from "../../typings/requestOptions"; diff --git a/src/services/legalEntityManagement/transferInstrumentsApi.ts b/src/services/legalEntityManagement/transferInstrumentsApi.ts index 7f6073adf..8e58ae184 100644 --- a/src/services/legalEntityManagement/transferInstrumentsApi.ts +++ b/src/services/legalEntityManagement/transferInstrumentsApi.ts @@ -10,8 +10,7 @@ import getJsonResponse from "../../helpers/getJsonResponse"; import Service from "../../service"; import Client from "../../client"; -import { - ServiceError, +import { TransferInstrument, TransferInstrumentInfo, ObjectSerializer diff --git a/src/services/management/aPICredentialsCompanyLevelApi.ts b/src/services/management/aPICredentialsCompanyLevelApi.ts index 9bdb6cb02..2822cbbce 100644 --- a/src/services/management/aPICredentialsCompanyLevelApi.ts +++ b/src/services/management/aPICredentialsCompanyLevelApi.ts @@ -15,7 +15,6 @@ import { CreateCompanyApiCredentialRequest, CreateCompanyApiCredentialResponse, ListCompanyApiCredentialsResponse, - RestServiceError, UpdateCompanyApiCredentialRequest, ObjectSerializer } from "../../typings/management/models"; diff --git a/src/services/management/aPICredentialsMerchantLevelApi.ts b/src/services/management/aPICredentialsMerchantLevelApi.ts index 86830c0d6..6dccd370c 100644 --- a/src/services/management/aPICredentialsMerchantLevelApi.ts +++ b/src/services/management/aPICredentialsMerchantLevelApi.ts @@ -15,7 +15,6 @@ import { CreateApiCredentialResponse, CreateMerchantApiCredentialRequest, ListMerchantApiCredentialsResponse, - RestServiceError, UpdateMerchantApiCredentialRequest, ObjectSerializer } from "../../typings/management/models"; diff --git a/src/services/management/aPIKeyCompanyLevelApi.ts b/src/services/management/aPIKeyCompanyLevelApi.ts index 0a1070979..c8a128d6e 100644 --- a/src/services/management/aPIKeyCompanyLevelApi.ts +++ b/src/services/management/aPIKeyCompanyLevelApi.ts @@ -12,7 +12,6 @@ import Service from "../../service"; import Client from "../../client"; import { GenerateApiKeyResponse, - RestServiceError, ObjectSerializer } from "../../typings/management/models"; import { IRequest } from "../../typings/requestOptions"; diff --git a/src/services/management/aPIKeyMerchantLevelApi.ts b/src/services/management/aPIKeyMerchantLevelApi.ts index 6b8740ab2..a1f23dd3a 100644 --- a/src/services/management/aPIKeyMerchantLevelApi.ts +++ b/src/services/management/aPIKeyMerchantLevelApi.ts @@ -12,7 +12,6 @@ import Service from "../../service"; import Client from "../../client"; import { GenerateApiKeyResponse, - RestServiceError, ObjectSerializer } from "../../typings/management/models"; import { IRequest } from "../../typings/requestOptions"; diff --git a/src/services/management/accountCompanyLevelApi.ts b/src/services/management/accountCompanyLevelApi.ts index 1caa3bc7e..21d1c5c42 100644 --- a/src/services/management/accountCompanyLevelApi.ts +++ b/src/services/management/accountCompanyLevelApi.ts @@ -14,7 +14,6 @@ import { Company, ListCompanyResponse, ListMerchantResponse, - RestServiceError, ObjectSerializer } from "../../typings/management/models"; import { IRequest } from "../../typings/requestOptions"; diff --git a/src/services/management/accountMerchantLevelApi.ts b/src/services/management/accountMerchantLevelApi.ts index 3bd650245..f8a1dee7d 100644 --- a/src/services/management/accountMerchantLevelApi.ts +++ b/src/services/management/accountMerchantLevelApi.ts @@ -16,7 +16,6 @@ import { ListMerchantResponse, Merchant, RequestActivationResponse, - RestServiceError, ObjectSerializer } from "../../typings/management/models"; import { IRequest } from "../../typings/requestOptions"; diff --git a/src/services/management/accountStoreLevelApi.ts b/src/services/management/accountStoreLevelApi.ts index b3d6c4d8c..545afe5eb 100644 --- a/src/services/management/accountStoreLevelApi.ts +++ b/src/services/management/accountStoreLevelApi.ts @@ -12,7 +12,6 @@ import Service from "../../service"; import Client from "../../client"; import { ListStoresResponse, - RestServiceError, Store, StoreCreationRequest, StoreCreationWithMerchantCodeRequest, diff --git a/src/services/management/allowedOriginsCompanyLevelApi.ts b/src/services/management/allowedOriginsCompanyLevelApi.ts index cd220b1b6..46489f6f5 100644 --- a/src/services/management/allowedOriginsCompanyLevelApi.ts +++ b/src/services/management/allowedOriginsCompanyLevelApi.ts @@ -13,7 +13,6 @@ import Client from "../../client"; import { AllowedOrigin, AllowedOriginsResponse, - RestServiceError, ObjectSerializer } from "../../typings/management/models"; import { IRequest } from "../../typings/requestOptions"; diff --git a/src/services/management/allowedOriginsMerchantLevelApi.ts b/src/services/management/allowedOriginsMerchantLevelApi.ts index c26620af1..be538d69b 100644 --- a/src/services/management/allowedOriginsMerchantLevelApi.ts +++ b/src/services/management/allowedOriginsMerchantLevelApi.ts @@ -13,7 +13,6 @@ import Client from "../../client"; import { AllowedOrigin, AllowedOriginsResponse, - RestServiceError, ObjectSerializer } from "../../typings/management/models"; import { IRequest } from "../../typings/requestOptions"; diff --git a/src/services/management/androidFilesCompanyLevelApi.ts b/src/services/management/androidFilesCompanyLevelApi.ts index cb47700f1..b2c6ac73b 100644 --- a/src/services/management/androidFilesCompanyLevelApi.ts +++ b/src/services/management/androidFilesCompanyLevelApi.ts @@ -15,7 +15,6 @@ import { AndroidAppsResponse, AndroidCertificatesResponse, ReprocessAndroidAppResponse, - RestServiceError, UploadAndroidAppResponse, UploadAndroidCertificateResponse, ObjectSerializer diff --git a/src/services/management/clientKeyCompanyLevelApi.ts b/src/services/management/clientKeyCompanyLevelApi.ts index 3369429bb..ac6dd07b4 100644 --- a/src/services/management/clientKeyCompanyLevelApi.ts +++ b/src/services/management/clientKeyCompanyLevelApi.ts @@ -12,7 +12,6 @@ import Service from "../../service"; import Client from "../../client"; import { GenerateClientKeyResponse, - RestServiceError, ObjectSerializer } from "../../typings/management/models"; import { IRequest } from "../../typings/requestOptions"; diff --git a/src/services/management/clientKeyMerchantLevelApi.ts b/src/services/management/clientKeyMerchantLevelApi.ts index eb2c13d28..4e4f9c4a0 100644 --- a/src/services/management/clientKeyMerchantLevelApi.ts +++ b/src/services/management/clientKeyMerchantLevelApi.ts @@ -12,7 +12,6 @@ import Service from "../../service"; import Client from "../../client"; import { GenerateClientKeyResponse, - RestServiceError, ObjectSerializer } from "../../typings/management/models"; import { IRequest } from "../../typings/requestOptions"; diff --git a/src/services/management/myAPICredentialApi.ts b/src/services/management/myAPICredentialApi.ts index 4d80fd02f..e01f51baa 100644 --- a/src/services/management/myAPICredentialApi.ts +++ b/src/services/management/myAPICredentialApi.ts @@ -16,7 +16,6 @@ import { CreateAllowedOriginRequest, GenerateClientKeyResponse, MeApiCredential, - RestServiceError, ObjectSerializer } from "../../typings/management/models"; import { IRequest } from "../../typings/requestOptions"; diff --git a/src/services/management/paymentMethodsMerchantLevelApi.ts b/src/services/management/paymentMethodsMerchantLevelApi.ts index 4953f5af4..210b8134f 100644 --- a/src/services/management/paymentMethodsMerchantLevelApi.ts +++ b/src/services/management/paymentMethodsMerchantLevelApi.ts @@ -15,7 +15,6 @@ import { PaymentMethod, PaymentMethodResponse, PaymentMethodSetupInfo, - RestServiceError, UpdatePaymentMethodInfo, ObjectSerializer } from "../../typings/management/models"; diff --git a/src/services/management/payoutSettingsMerchantLevelApi.ts b/src/services/management/payoutSettingsMerchantLevelApi.ts index b70bce7f8..6574022ee 100644 --- a/src/services/management/payoutSettingsMerchantLevelApi.ts +++ b/src/services/management/payoutSettingsMerchantLevelApi.ts @@ -14,7 +14,6 @@ import { PayoutSettings, PayoutSettingsRequest, PayoutSettingsResponse, - RestServiceError, UpdatePayoutSettingsRequest, ObjectSerializer } from "../../typings/management/models"; diff --git a/src/services/management/splitConfigurationMerchantLevelApi.ts b/src/services/management/splitConfigurationMerchantLevelApi.ts index a266ee9be..202d77de0 100644 --- a/src/services/management/splitConfigurationMerchantLevelApi.ts +++ b/src/services/management/splitConfigurationMerchantLevelApi.ts @@ -10,8 +10,7 @@ import getJsonResponse from "../../helpers/getJsonResponse"; import Service from "../../service"; import Client from "../../client"; -import { - RestServiceError, +import { SplitConfiguration, SplitConfigurationList, SplitConfigurationRule, diff --git a/src/services/management/terminalActionsCompanyLevelApi.ts b/src/services/management/terminalActionsCompanyLevelApi.ts index 5cdad0cac..ff1903e73 100644 --- a/src/services/management/terminalActionsCompanyLevelApi.ts +++ b/src/services/management/terminalActionsCompanyLevelApi.ts @@ -13,7 +13,6 @@ import Client from "../../client"; import { ExternalTerminalAction, ListExternalTerminalActionsResponse, - RestServiceError, ObjectSerializer } from "../../typings/management/models"; import { IRequest } from "../../typings/requestOptions"; diff --git a/src/services/management/terminalActionsTerminalLevelApi.ts b/src/services/management/terminalActionsTerminalLevelApi.ts index 783686fe0..b9e729cf2 100644 --- a/src/services/management/terminalActionsTerminalLevelApi.ts +++ b/src/services/management/terminalActionsTerminalLevelApi.ts @@ -10,8 +10,7 @@ import getJsonResponse from "../../helpers/getJsonResponse"; import Service from "../../service"; import Client from "../../client"; -import { - RestServiceError, +import { ScheduleTerminalActionsRequest, ScheduleTerminalActionsResponse, ObjectSerializer diff --git a/src/services/management/terminalOrdersCompanyLevelApi.ts b/src/services/management/terminalOrdersCompanyLevelApi.ts index 6b353199d..f444bb764 100644 --- a/src/services/management/terminalOrdersCompanyLevelApi.ts +++ b/src/services/management/terminalOrdersCompanyLevelApi.ts @@ -12,7 +12,6 @@ import Service from "../../service"; import Client from "../../client"; import { BillingEntitiesResponse, - RestServiceError, ShippingLocation, ShippingLocationsResponse, TerminalModelsResponse, diff --git a/src/services/management/terminalOrdersMerchantLevelApi.ts b/src/services/management/terminalOrdersMerchantLevelApi.ts index 6caf70726..06e39cea5 100644 --- a/src/services/management/terminalOrdersMerchantLevelApi.ts +++ b/src/services/management/terminalOrdersMerchantLevelApi.ts @@ -12,7 +12,6 @@ import Service from "../../service"; import Client from "../../client"; import { BillingEntitiesResponse, - RestServiceError, ShippingLocation, ShippingLocationsResponse, TerminalModelsResponse, diff --git a/src/services/management/terminalSettingsCompanyLevelApi.ts b/src/services/management/terminalSettingsCompanyLevelApi.ts index 5fb48db84..e56221a1e 100644 --- a/src/services/management/terminalSettingsCompanyLevelApi.ts +++ b/src/services/management/terminalSettingsCompanyLevelApi.ts @@ -12,7 +12,6 @@ import Service from "../../service"; import Client from "../../client"; import { Logo, - RestServiceError, TerminalSettings, ObjectSerializer } from "../../typings/management/models"; diff --git a/src/services/management/terminalSettingsMerchantLevelApi.ts b/src/services/management/terminalSettingsMerchantLevelApi.ts index cf97028e8..6c41e12fd 100644 --- a/src/services/management/terminalSettingsMerchantLevelApi.ts +++ b/src/services/management/terminalSettingsMerchantLevelApi.ts @@ -12,7 +12,6 @@ import Service from "../../service"; import Client from "../../client"; import { Logo, - RestServiceError, TerminalSettings, ObjectSerializer } from "../../typings/management/models"; diff --git a/src/services/management/terminalSettingsStoreLevelApi.ts b/src/services/management/terminalSettingsStoreLevelApi.ts index 7f8711311..89b2f4373 100644 --- a/src/services/management/terminalSettingsStoreLevelApi.ts +++ b/src/services/management/terminalSettingsStoreLevelApi.ts @@ -12,7 +12,6 @@ import Service from "../../service"; import Client from "../../client"; import { Logo, - RestServiceError, TerminalSettings, ObjectSerializer } from "../../typings/management/models"; diff --git a/src/services/management/terminalSettingsTerminalLevelApi.ts b/src/services/management/terminalSettingsTerminalLevelApi.ts index 0e706e759..1893a17c6 100644 --- a/src/services/management/terminalSettingsTerminalLevelApi.ts +++ b/src/services/management/terminalSettingsTerminalLevelApi.ts @@ -12,7 +12,6 @@ import Service from "../../service"; import Client from "../../client"; import { Logo, - RestServiceError, TerminalSettings, ObjectSerializer } from "../../typings/management/models"; diff --git a/src/services/management/terminalsTerminalLevelApi.ts b/src/services/management/terminalsTerminalLevelApi.ts index b230c217b..c0ef8f83f 100644 --- a/src/services/management/terminalsTerminalLevelApi.ts +++ b/src/services/management/terminalsTerminalLevelApi.ts @@ -12,7 +12,6 @@ import Service from "../../service"; import Client from "../../client"; import { ListTerminalsResponse, - RestServiceError, TerminalReassignmentRequest, ObjectSerializer } from "../../typings/management/models"; diff --git a/src/services/management/usersCompanyLevelApi.ts b/src/services/management/usersCompanyLevelApi.ts index 55f9a62c4..9af238a0a 100644 --- a/src/services/management/usersCompanyLevelApi.ts +++ b/src/services/management/usersCompanyLevelApi.ts @@ -15,7 +15,6 @@ import { CreateCompanyUserRequest, CreateCompanyUserResponse, ListCompanyUsersResponse, - RestServiceError, UpdateCompanyUserRequest, ObjectSerializer } from "../../typings/management/models"; diff --git a/src/services/management/usersMerchantLevelApi.ts b/src/services/management/usersMerchantLevelApi.ts index ebb82d2bc..7726040e5 100644 --- a/src/services/management/usersMerchantLevelApi.ts +++ b/src/services/management/usersMerchantLevelApi.ts @@ -14,7 +14,6 @@ import { CreateMerchantUserRequest, CreateUserResponse, ListMerchantUsersResponse, - RestServiceError, UpdateMerchantUserRequest, User, ObjectSerializer diff --git a/src/services/management/webhooksCompanyLevelApi.ts b/src/services/management/webhooksCompanyLevelApi.ts index c3c85c61d..802aebf34 100644 --- a/src/services/management/webhooksCompanyLevelApi.ts +++ b/src/services/management/webhooksCompanyLevelApi.ts @@ -14,7 +14,6 @@ import { CreateCompanyWebhookRequest, GenerateHmacKeyResponse, ListWebhooksResponse, - RestServiceError, TestCompanyWebhookRequest, TestWebhookResponse, UpdateCompanyWebhookRequest, diff --git a/src/services/management/webhooksMerchantLevelApi.ts b/src/services/management/webhooksMerchantLevelApi.ts index 9b0b2dc52..e41f15630 100644 --- a/src/services/management/webhooksMerchantLevelApi.ts +++ b/src/services/management/webhooksMerchantLevelApi.ts @@ -14,7 +14,6 @@ import { CreateMerchantWebhookRequest, GenerateHmacKeyResponse, ListWebhooksResponse, - RestServiceError, TestWebhookRequest, TestWebhookResponse, UpdateMerchantWebhookRequest, diff --git a/src/services/paymentApi.ts b/src/services/paymentApi.ts index d06272faa..d0b9076d7 100644 --- a/src/services/paymentApi.ts +++ b/src/services/paymentApi.ts @@ -23,7 +23,6 @@ import { PaymentRequest3d } from "../typings/payment/models"; import { PaymentRequest3ds2 } from "../typings/payment/models"; import { PaymentResult } from "../typings/payment/models"; import { RefundRequest } from "../typings/payment/models"; -import { ServiceError } from "../typings/payment/models"; import { TechnicalCancelRequest } from "../typings/payment/models"; import { ThreeDS2ResultRequest } from "../typings/payment/models"; import { ThreeDS2ResultResponse } from "../typings/payment/models"; diff --git a/src/services/paymentsAppApi.ts b/src/services/paymentsAppApi.ts index a8cc47838..fc21763bf 100644 --- a/src/services/paymentsAppApi.ts +++ b/src/services/paymentsAppApi.ts @@ -12,7 +12,6 @@ import getJsonResponse from "../helpers/getJsonResponse"; import Service from "../service"; import { BoardingTokenRequest } from "../typings/paymentsApp/models"; import { BoardingTokenResponse } from "../typings/paymentsApp/models"; -import { DefaultErrorResponseEntity } from "../typings/paymentsApp/models"; import { PaymentsAppResponse } from "../typings/paymentsApp/models"; import { IRequest } from "../typings/requestOptions"; import Resource from "./resource"; diff --git a/src/services/payout/initializationApi.ts b/src/services/payout/initializationApi.ts index d4441c599..03fce51d8 100644 --- a/src/services/payout/initializationApi.ts +++ b/src/services/payout/initializationApi.ts @@ -10,8 +10,7 @@ import getJsonResponse from "../../helpers/getJsonResponse"; import Service from "../../service"; import Client from "../../client"; -import { - ServiceError, +import { StoreDetailAndSubmitRequest, StoreDetailAndSubmitResponse, StoreDetailRequest, diff --git a/src/services/payout/instantPayoutsApi.ts b/src/services/payout/instantPayoutsApi.ts index 2b58a4edd..421a4147f 100644 --- a/src/services/payout/instantPayoutsApi.ts +++ b/src/services/payout/instantPayoutsApi.ts @@ -13,7 +13,6 @@ import Client from "../../client"; import { PayoutRequest, PayoutResponse, - ServiceError, ObjectSerializer } from "../../typings/payout/models"; import { IRequest } from "../../typings/requestOptions"; diff --git a/src/services/payout/reviewingApi.ts b/src/services/payout/reviewingApi.ts index e1903496a..a5e014232 100644 --- a/src/services/payout/reviewingApi.ts +++ b/src/services/payout/reviewingApi.ts @@ -13,7 +13,6 @@ import Client from "../../client"; import { ModifyRequest, ModifyResponse, - ServiceError, ObjectSerializer } from "../../typings/payout/models"; import { IRequest } from "../../typings/requestOptions"; diff --git a/src/services/recurringApi.ts b/src/services/recurringApi.ts index daf1c7005..f4d672a04 100644 --- a/src/services/recurringApi.ts +++ b/src/services/recurringApi.ts @@ -22,7 +22,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"; import { IRequest } from "../typings/requestOptions"; import Resource from "./resource"; import { ObjectSerializer } from "../typings/recurring/models"; diff --git a/src/services/storedValueApi.ts b/src/services/storedValueApi.ts index e675d176e..28425347d 100644 --- a/src/services/storedValueApi.ts +++ b/src/services/storedValueApi.ts @@ -10,7 +10,6 @@ import Client from "../client"; import getJsonResponse from "../helpers/getJsonResponse"; import Service from "../service"; -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/terminalManagementApi.ts b/src/services/terminalManagementApi.ts index b654d9cb8..7effe9e62 100644 --- a/src/services/terminalManagementApi.ts +++ b/src/services/terminalManagementApi.ts @@ -20,7 +20,6 @@ import { GetTerminalDetailsRequest } from "../typings/terminalManagement/models" import { GetTerminalDetailsResponse } from "../typings/terminalManagement/models"; import { GetTerminalsUnderAccountRequest } from "../typings/terminalManagement/models"; import { GetTerminalsUnderAccountResponse } from "../typings/terminalManagement/models"; -import { ServiceError } from "../typings/terminalManagement/models"; import { IRequest } from "../typings/requestOptions"; import Resource from "./resource"; import { ObjectSerializer } from "../typings/terminalManagement/models"; diff --git a/src/services/transfers/capitalApi.ts b/src/services/transfers/capitalApi.ts index b7f19bc5c..a5a3e2c3e 100644 --- a/src/services/transfers/capitalApi.ts +++ b/src/services/transfers/capitalApi.ts @@ -14,7 +14,6 @@ import { CapitalGrant, CapitalGrantInfo, CapitalGrants, - RestServiceError, ObjectSerializer } from "../../typings/transfers/models"; import { IRequest } from "../../typings/requestOptions"; diff --git a/src/services/transfers/transactionsApi.ts b/src/services/transfers/transactionsApi.ts index 18a397b64..3146cedb6 100644 --- a/src/services/transfers/transactionsApi.ts +++ b/src/services/transfers/transactionsApi.ts @@ -10,8 +10,7 @@ import getJsonResponse from "../../helpers/getJsonResponse"; import Service from "../../service"; import Client from "../../client"; -import { - RestServiceError, +import { Transaction, TransactionSearchResponse, ObjectSerializer diff --git a/src/services/transfers/transfersApi.ts b/src/services/transfers/transfersApi.ts index 1a6bcea2e..1d51f9e68 100644 --- a/src/services/transfers/transfersApi.ts +++ b/src/services/transfers/transfersApi.ts @@ -16,11 +16,9 @@ import { FindTransfersResponse, ReturnTransferRequest, ReturnTransferResponse, - ServiceError, Transfer, TransferData, TransferInfo, - TransferServiceRestServiceError, ObjectSerializer } from "../../typings/transfers/models"; import { IRequest } from "../../typings/requestOptions"; @@ -83,7 +81,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(balancePlatform?: string, accountHolderId?: string, balanceAccountId?: string, paymentInstrumentId?: string, reference?: string, category?: 'bank' | 'card' | 'grants' | 'internal' | 'issuedCard' | 'migration' | 'platformPayment' | 'topUp' | 'upgrade', createdSince?: Date, createdUntil?: Date, cursor?: string, limit?: number, requestOptions?: IRequest.Options): Promise { + public async getAllTransfers(balancePlatform?: string, accountHolderId?: string, balanceAccountId?: string, paymentInstrumentId?: string, reference?: string, category?: "bank" | "card" | "grants" | "internal" | "issuedCard" | "migration" | "platformPayment" | "topUp" | "upgrade", createdSince?: Date, createdUntil?: Date, cursor?: string, limit?: number, requestOptions?: IRequest.Options): Promise { const endpoint = `${this.baseUrl}/transfers`; const resource = new Resource(this, endpoint); const hasDefinedQueryParams = balancePlatform ?? accountHolderId ?? balanceAccountId ?? paymentInstrumentId ?? reference ?? category ?? createdSince ?? createdUntil ?? cursor ?? limit; From 36011d5d3398e1cabc76d6f1bf130853388eba98 Mon Sep 17 00:00:00 2001 From: Beppe Catanese <1771700+gcatanese@users.noreply.github.com> Date: Mon, 23 Dec 2024 12:47:25 +0100 Subject: [PATCH 3/4] Remove duplicate imports --- src/typings/balancePlatform/transferRoute.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/src/typings/balancePlatform/transferRoute.ts b/src/typings/balancePlatform/transferRoute.ts index 01786c0e8..2b8862ae9 100644 --- a/src/typings/balancePlatform/transferRoute.ts +++ b/src/typings/balancePlatform/transferRoute.ts @@ -8,7 +8,6 @@ */ import { AddressRequirement } from './addressRequirement'; -import { AddressRequirement | AmountMinMaxRequirement | AmountNonZeroDecimalsRequirement | BankAccountIdentificationTypeRequirement | IbanAccountIdentificationRequirement | PaymentInstrumentRequirement | USInternationalAchAddressRequirement } from './addressRequirement | AmountMinMaxRequirement | AmountNonZeroDecimalsRequirement | BankAccountIdentificationTypeRequirement | IbanAccountIdentificationRequirement | PaymentInstrumentRequirement | USInternationalAchAddressRequirement'; import { AmountMinMaxRequirement } from './amountMinMaxRequirement'; import { AmountNonZeroDecimalsRequirement } from './amountNonZeroDecimalsRequirement'; import { BankAccountIdentificationTypeRequirement } from './bankAccountIdentificationTypeRequirement'; From 12e423be796e2250a7d5c41f5d5c9b056024b0b8 Mon Sep 17 00:00:00 2001 From: Beppe Catanese <1771700+gcatanese@users.noreply.github.com> Date: Mon, 23 Dec 2024 13:05:39 +0100 Subject: [PATCH 4/4] Trigger format if there are commits --- .github/workflows/format.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/format.yml b/.github/workflows/format.yml index 247a1316b..0ea8ce7d4 100644 --- a/.github/workflows/format.yml +++ b/.github/workflows/format.yml @@ -7,7 +7,7 @@ on: jobs: format: - if: ${{ ! startsWith(github.event.head_commit.message, 'style(fmt)') }} + if: ${{ github.event.commits != null && !startsWith(github.event.head_commit.message, 'style(fmt)') }} permissions: contents: write runs-on: ubuntu-latest @@ -26,4 +26,4 @@ jobs: git config user.email "${{ secrets.ADYEN_AUTOMATION_BOT_EMAIL }}" git add . git commit -m "style(fmt): code formatted" - git push \ No newline at end of file + git push