From 488a6c432c26898d69ece4fa53adb08626fe9068 Mon Sep 17 00:00:00 2001 From: Adyen Automation Date: Mon, 14 Aug 2023 08:47:15 +0000 Subject: [PATCH 1/2] [create-pull-request] automated change --- .../balancePlatform/accountHoldersApi.ts | 9 +- .../balancePlatform/balanceAccountsApi.ts | 9 +- .../bankAccountValidationApi.ts | 3 +- src/services/balancePlatform/index.ts | 5 + .../balancePlatform/networkTokensApi.ts | 64 +++++++ .../balancePlatform/paymentInstrumentsApi.ts | 19 ++ src/typings/balancePlatform/accountHolder.ts | 11 +- .../balancePlatform/accountHolderInfo.ts | 11 +- .../accountHolderUpdateRequest.ts | 128 ++++++++++++++ .../bRLocalAccountIdentification.ts | 62 +++++++ src/typings/balancePlatform/balance.ts | 9 + src/typings/balancePlatform/balanceAccount.ts | 18 +- .../balancePlatform/balanceAccountBase.ts | 18 +- .../balancePlatform/balanceAccountInfo.ts | 18 +- .../balanceAccountUpdateRequest.ts | 9 +- ...kAccountIdentificationValidationRequest.ts | 8 +- src/typings/balancePlatform/card.ts | 11 +- src/typings/balancePlatform/cardInfo.ts | 11 +- .../balancePlatform/cronSweepSchedule.ts | 48 ----- .../dKLocalAccountIdentification.ts | 53 ++++++ src/typings/balancePlatform/deviceInfo.ts | 120 +++++++++++++ .../getNetworkTokenResponse.ts | 28 +++ .../hKLocalAccountIdentification.ts | 53 ++++++ .../listNetworkTokensResponse.ts | 31 ++++ src/typings/balancePlatform/models.ts | 52 +++++- .../nZLocalAccountIdentification.ts | 62 +++++++ src/typings/balancePlatform/networkToken.ts | 99 +++++++++++ .../platformPaymentConfiguration.ts | 39 +++++ .../balancePlatform/sweepConfigurationV2.ts | 8 +- src/typings/balancePlatform/sweepSchedule.ts | 13 +- .../balancePlatform/transactionRule.ts | 1 + .../balancePlatform/transactionRuleInfo.ts | 1 + .../updateNetworkTokenRequest.ts | 37 ++++ .../updateSweepConfigurationV2.ts | 165 ++++++++++++++++++ .../balancePlatform/verificationDeadline.ts | 9 + .../transfers/bRLocalAccountIdentification.ts | 6 +- src/typings/transfers/bankAccountV3.ts | 5 +- .../transfers/hKLocalAccountIdentification.ts | 53 ++++++ src/typings/transfers/models.ts | 4 + src/typings/transfers/transaction.ts | 18 ++ src/typings/transfers/transfer.ts | 4 + 41 files changed, 1247 insertions(+), 85 deletions(-) create mode 100644 src/services/balancePlatform/networkTokensApi.ts create mode 100644 src/typings/balancePlatform/accountHolderUpdateRequest.ts create mode 100644 src/typings/balancePlatform/bRLocalAccountIdentification.ts delete mode 100644 src/typings/balancePlatform/cronSweepSchedule.ts create mode 100644 src/typings/balancePlatform/dKLocalAccountIdentification.ts create mode 100644 src/typings/balancePlatform/deviceInfo.ts create mode 100644 src/typings/balancePlatform/getNetworkTokenResponse.ts create mode 100644 src/typings/balancePlatform/hKLocalAccountIdentification.ts create mode 100644 src/typings/balancePlatform/listNetworkTokensResponse.ts create mode 100644 src/typings/balancePlatform/nZLocalAccountIdentification.ts create mode 100644 src/typings/balancePlatform/networkToken.ts create mode 100644 src/typings/balancePlatform/platformPaymentConfiguration.ts create mode 100644 src/typings/balancePlatform/updateNetworkTokenRequest.ts create mode 100644 src/typings/balancePlatform/updateSweepConfigurationV2.ts create mode 100644 src/typings/transfers/hKLocalAccountIdentification.ts diff --git a/src/services/balancePlatform/accountHoldersApi.ts b/src/services/balancePlatform/accountHoldersApi.ts index 6c1dd6c1e..4fe12f26a 100644 --- a/src/services/balancePlatform/accountHoldersApi.ts +++ b/src/services/balancePlatform/accountHoldersApi.ts @@ -12,6 +12,7 @@ import Service from "../../service"; import Client from "../../client"; import { AccountHolder } from "../../typings/balancePlatform/models"; import { AccountHolderInfo } from "../../typings/balancePlatform/models"; +import { AccountHolderUpdateRequest } from "../../typings/balancePlatform/models"; import { PaginatedBalanceAccountsResponse } from "../../typings/balancePlatform/models"; import { IRequest } from "../../typings/requestOptions"; import Resource from "../resource"; @@ -68,16 +69,16 @@ export class AccountHoldersApi extends Service { /** * @summary Update an account holder * @param id {@link string } The unique identifier of the account holder. - * @param accountHolder {@link AccountHolder } + * @param accountHolderUpdateRequest {@link AccountHolderUpdateRequest } * @param requestOptions {@link IRequest.Options} * @return {@link AccountHolder } */ - public async updateAccountHolder(id: string, accountHolder: AccountHolder, requestOptions?: IRequest.Options): Promise { + public async updateAccountHolder(id: string, accountHolderUpdateRequest: AccountHolderUpdateRequest, requestOptions?: IRequest.Options): Promise { const endpoint = `${this.baseUrl}/accountHolders/{id}` .replace("{" + "id" + "}", encodeURIComponent(String(id))); const resource = new Resource(this, endpoint); - const request: AccountHolder = ObjectSerializer.serialize(accountHolder, "AccountHolder"); - const response = await getJsonResponse( + const request: AccountHolderUpdateRequest = ObjectSerializer.serialize(accountHolderUpdateRequest, "AccountHolderUpdateRequest"); + const response = await getJsonResponse( resource, request, { ...requestOptions, method: "PATCH" } diff --git a/src/services/balancePlatform/balanceAccountsApi.ts b/src/services/balancePlatform/balanceAccountsApi.ts index 145f37440..fc1f216fe 100644 --- a/src/services/balancePlatform/balanceAccountsApi.ts +++ b/src/services/balancePlatform/balanceAccountsApi.ts @@ -16,6 +16,7 @@ import { BalanceAccountUpdateRequest } from "../../typings/balancePlatform/model import { BalanceSweepConfigurationsResponse } from "../../typings/balancePlatform/models"; import { PaginatedPaymentInstrumentsResponse } from "../../typings/balancePlatform/models"; import { SweepConfigurationV2 } from "../../typings/balancePlatform/models"; +import { UpdateSweepConfigurationV2 } from "../../typings/balancePlatform/models"; import { IRequest } from "../../typings/requestOptions"; import Resource from "../resource"; import { ObjectSerializer } from "../../typings/balancePlatform/models"; @@ -130,17 +131,17 @@ export class BalanceAccountsApi extends Service { * @summary Update a sweep * @param balanceAccountId {@link string } The unique identifier of the balance account. * @param sweepId {@link string } The unique identifier of the sweep. - * @param sweepConfigurationV2 {@link SweepConfigurationV2 } + * @param updateSweepConfigurationV2 {@link UpdateSweepConfigurationV2 } * @param requestOptions {@link IRequest.Options} * @return {@link SweepConfigurationV2 } */ - public async updateSweep(balanceAccountId: string, sweepId: string, sweepConfigurationV2: SweepConfigurationV2, requestOptions?: IRequest.Options): Promise { + public async updateSweep(balanceAccountId: string, sweepId: string, updateSweepConfigurationV2: UpdateSweepConfigurationV2, requestOptions?: IRequest.Options): Promise { const endpoint = `${this.baseUrl}/balanceAccounts/{balanceAccountId}/sweeps/{sweepId}` .replace("{" + "balanceAccountId" + "}", encodeURIComponent(String(balanceAccountId))) .replace("{" + "sweepId" + "}", encodeURIComponent(String(sweepId))); const resource = new Resource(this, endpoint); - const request: SweepConfigurationV2 = ObjectSerializer.serialize(sweepConfigurationV2, "SweepConfigurationV2"); - const response = await getJsonResponse( + const request: UpdateSweepConfigurationV2 = ObjectSerializer.serialize(updateSweepConfigurationV2, "UpdateSweepConfigurationV2"); + const response = await getJsonResponse( resource, request, { ...requestOptions, method: "PATCH" } diff --git a/src/services/balancePlatform/bankAccountValidationApi.ts b/src/services/balancePlatform/bankAccountValidationApi.ts index d924a421d..6bc0b5405 100644 --- a/src/services/balancePlatform/bankAccountValidationApi.ts +++ b/src/services/balancePlatform/bankAccountValidationApi.ts @@ -29,13 +29,12 @@ export class BankAccountValidationApi extends Service { * @summary Validate a bank account * @param bankAccountIdentificationValidationRequest {@link BankAccountIdentificationValidationRequest } * @param requestOptions {@link IRequest.Options} - * @return {@link void } */ public async validateBankAccountIdentification(bankAccountIdentificationValidationRequest: BankAccountIdentificationValidationRequest, requestOptions?: IRequest.Options): Promise { const endpoint = `${this.baseUrl}/validateBankAccountIdentification`; const resource = new Resource(this, endpoint); const request: BankAccountIdentificationValidationRequest = ObjectSerializer.serialize(bankAccountIdentificationValidationRequest, "BankAccountIdentificationValidationRequest"); - await getJsonResponse( + await getJsonResponse( resource, request, { ...requestOptions, method: "POST" } diff --git a/src/services/balancePlatform/index.ts b/src/services/balancePlatform/index.ts index dd7f039b4..1a2cefbb2 100644 --- a/src/services/balancePlatform/index.ts +++ b/src/services/balancePlatform/index.ts @@ -12,6 +12,7 @@ import { BalanceAccountsApi } from "./balanceAccountsApi"; import { BankAccountValidationApi } from "./bankAccountValidationApi"; import { GrantAccountsApi } from "./grantAccountsApi"; import { GrantOffersApi } from "./grantOffersApi"; +import { NetworkTokensApi } from "./networkTokensApi"; import { PaymentInstrumentGroupsApi } from "./paymentInstrumentGroupsApi"; import { PaymentInstrumentsApi } from "./paymentInstrumentsApi"; import { PlatformApi } from "./platformApi"; @@ -46,6 +47,10 @@ export default class BalancePlatformAPI extends Service { return new GrantOffersApi(this.client); } + public get NetworkTokensApi() { + return new NetworkTokensApi(this.client); + } + public get PaymentInstrumentGroupsApi() { return new PaymentInstrumentGroupsApi(this.client); } diff --git a/src/services/balancePlatform/networkTokensApi.ts b/src/services/balancePlatform/networkTokensApi.ts new file mode 100644 index 000000000..e1fea00e4 --- /dev/null +++ b/src/services/balancePlatform/networkTokensApi.ts @@ -0,0 +1,64 @@ +/* + * The version of the OpenAPI document: v2 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import getJsonResponse from "../../helpers/getJsonResponse"; +import Service from "../../service"; +import Client from "../../client"; +import { GetNetworkTokenResponse } from "../../typings/balancePlatform/models"; +import { UpdateNetworkTokenRequest } from "../../typings/balancePlatform/models"; +import { IRequest } from "../../typings/requestOptions"; +import Resource from "../resource"; +import { ObjectSerializer } from "../../typings/balancePlatform/models"; + +export class NetworkTokensApi extends Service { + + private readonly API_BASEPATH: string = "https://balanceplatform-api-test.adyen.com/bcl/v2"; + private baseUrl: string; + + public constructor(client: Client){ + super(client); + this.baseUrl = this.createBaseUrl(this.API_BASEPATH); + } + + /** + * @summary Get a network token + * @param networkTokenId {@link string } The unique identifier of the network token. + * @param requestOptions {@link IRequest.Options} + * @return {@link GetNetworkTokenResponse } + */ + public async getNetworkToken(networkTokenId: string, requestOptions?: IRequest.Options): Promise { + const endpoint = `${this.baseUrl}/networkTokens/{networkTokenId}` + .replace("{" + "networkTokenId" + "}", encodeURIComponent(String(networkTokenId))); + const resource = new Resource(this, endpoint); + const response = await getJsonResponse( + resource, + "", + { ...requestOptions, method: "GET" } + ); + return ObjectSerializer.deserialize(response, "GetNetworkTokenResponse"); + } + + /** + * @summary Update a network token + * @param networkTokenId {@link string } The unique identifier of the network token. + * @param updateNetworkTokenRequest {@link UpdateNetworkTokenRequest } + * @param requestOptions {@link IRequest.Options} + */ + public async updateNetworkToken(networkTokenId: string, updateNetworkTokenRequest: UpdateNetworkTokenRequest, requestOptions?: IRequest.Options): Promise { + const endpoint = `${this.baseUrl}/networkTokens/{networkTokenId}` + .replace("{" + "networkTokenId" + "}", encodeURIComponent(String(networkTokenId))); + const resource = new Resource(this, endpoint); + const request: UpdateNetworkTokenRequest = ObjectSerializer.serialize(updateNetworkTokenRequest, "UpdateNetworkTokenRequest"); + await getJsonResponse( + resource, + request, + { ...requestOptions, method: "PATCH" } + ); + } +} diff --git a/src/services/balancePlatform/paymentInstrumentsApi.ts b/src/services/balancePlatform/paymentInstrumentsApi.ts index 10e564cb1..7777a26d4 100644 --- a/src/services/balancePlatform/paymentInstrumentsApi.ts +++ b/src/services/balancePlatform/paymentInstrumentsApi.ts @@ -10,6 +10,7 @@ import getJsonResponse from "../../helpers/getJsonResponse"; import Service from "../../service"; import Client from "../../client"; +import { ListNetworkTokensResponse } from "../../typings/balancePlatform/models"; import { PaymentInstrument } from "../../typings/balancePlatform/models"; import { PaymentInstrumentInfo } from "../../typings/balancePlatform/models"; import { PaymentInstrumentRevealInfo } from "../../typings/balancePlatform/models"; @@ -48,6 +49,24 @@ export class PaymentInstrumentsApi extends Service { return ObjectSerializer.deserialize(response, "PaymentInstrument"); } + /** + * @summary List network tokens + * @param id {@link string } The unique identifier of the payment instrument. + * @param requestOptions {@link IRequest.Options} + * @return {@link ListNetworkTokensResponse } + */ + public async listNetworkTokens(id: string, requestOptions?: IRequest.Options): Promise { + const endpoint = `${this.baseUrl}/paymentInstruments/{id}/networkTokens` + .replace("{" + "id" + "}", encodeURIComponent(String(id))); + const resource = new Resource(this, endpoint); + const response = await getJsonResponse( + resource, + "", + { ...requestOptions, method: "GET" } + ); + return ObjectSerializer.deserialize(response, "ListNetworkTokensResponse"); + } + /** * @summary Get the PAN of a payment instrument * @param id {@link string } The unique identifier of the payment instrument. diff --git a/src/typings/balancePlatform/accountHolder.ts b/src/typings/balancePlatform/accountHolder.ts index 2808041c1..066a58912 100644 --- a/src/typings/balancePlatform/accountHolder.ts +++ b/src/typings/balancePlatform/accountHolder.ts @@ -34,10 +34,14 @@ export class AccountHolder { */ 'legalEntityId': string; /** - * A set of key and value pairs for general use by the merchant. 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. + * 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; }; /** + * The unique identifier of the migrated account holder in the classic integration. + */ + 'migratedAccountHolderCode'?: string; + /** * The ID of the account holder\'s primary balance account. By default, this is set to the first balance account that you create for the account holder. To assign a different balance account, send a PATCH request. */ 'primaryBalanceAccount'?: string; @@ -96,6 +100,11 @@ export class AccountHolder { "baseName": "metadata", "type": "{ [key: string]: string; }" }, + { + "name": "migratedAccountHolderCode", + "baseName": "migratedAccountHolderCode", + "type": "string" + }, { "name": "primaryBalanceAccount", "baseName": "primaryBalanceAccount", diff --git a/src/typings/balancePlatform/accountHolderInfo.ts b/src/typings/balancePlatform/accountHolderInfo.ts index 6d5449e70..50c124dd5 100644 --- a/src/typings/balancePlatform/accountHolderInfo.ts +++ b/src/typings/balancePlatform/accountHolderInfo.ts @@ -29,10 +29,14 @@ export class AccountHolderInfo { */ 'legalEntityId': string; /** - * A set of key and value pairs for general use by the merchant. 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. + * 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; }; /** + * The unique identifier of the migrated account holder in the classic integration. + */ + 'migratedAccountHolderCode'?: string; + /** * Your reference for the account holder, maximum 150 characters. */ 'reference'?: string; @@ -74,6 +78,11 @@ export class AccountHolderInfo { "baseName": "metadata", "type": "{ [key: string]: string; }" }, + { + "name": "migratedAccountHolderCode", + "baseName": "migratedAccountHolderCode", + "type": "string" + }, { "name": "reference", "baseName": "reference", diff --git a/src/typings/balancePlatform/accountHolderUpdateRequest.ts b/src/typings/balancePlatform/accountHolderUpdateRequest.ts new file mode 100644 index 000000000..db432648c --- /dev/null +++ b/src/typings/balancePlatform/accountHolderUpdateRequest.ts @@ -0,0 +1,128 @@ +/* + * The version of the OpenAPI document: v2 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { AccountHolderCapability } from './accountHolderCapability'; +import { ContactDetails } from './contactDetails'; +import { VerificationDeadline } from './verificationDeadline'; + +export class AccountHolderUpdateRequest { + /** + * The unique identifier of the [balance platform](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/get/balancePlatforms/{id}__queryParam_id) to which the account holder belongs. Required in the request if your API credentials can be used for multiple balance platforms. + */ + 'balancePlatform'?: string; + /** + * Contains key-value pairs that specify the actions that an account holder can do in your platform. The key is a capability required for your integration. For example, **issueCard** for Issuing. The value is an object containing the settings for the capability. + */ + 'capabilities'?: { [key: string]: AccountHolderCapability; }; + 'contactDetails'?: ContactDetails; + /** + * Your description for the account holder, maximum 300 characters. + */ + 'description'?: string; + /** + * 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; }; + /** + * The unique identifier of the migrated account holder in the classic integration. + */ + 'migratedAccountHolderCode'?: string; + /** + * The ID of the account holder\'s primary balance account. By default, this is set to the first balance account that you create for the account holder. To assign a different balance account, send a PATCH request. + */ + 'primaryBalanceAccount'?: string; + /** + * Your reference for the account holder, maximum 150 characters. + */ + 'reference'?: string; + /** + * The status of the account holder. Possible values: * **active**: The account holder is active. This is the default status when creating an account holder. * **inactive (Deprecated)**: The account holder is temporarily inactive due to missing KYC details. You can set the account back to active by providing the missing KYC details. * **suspended**: The account holder is permanently deactivated by Adyen. This action cannot be undone. * **closed**: The account holder is permanently deactivated by you. This action cannot be undone. + */ + 'status'?: AccountHolderUpdateRequest.StatusEnum; + /** + * The time zone of the account holder. For example, **Europe/Amsterdam**. Defaults to the time zone of the balance platform if no time zone is set. For possible values, see the [list of time zone codes](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). + */ + 'timeZone'?: string; + /** + * List of verification deadlines and the capabilities that will be disallowed if verification errors are not resolved. + */ + 'verificationDeadlines'?: Array; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "balancePlatform", + "baseName": "balancePlatform", + "type": "string" + }, + { + "name": "capabilities", + "baseName": "capabilities", + "type": "{ [key: string]: AccountHolderCapability; }" + }, + { + "name": "contactDetails", + "baseName": "contactDetails", + "type": "ContactDetails" + }, + { + "name": "description", + "baseName": "description", + "type": "string" + }, + { + "name": "metadata", + "baseName": "metadata", + "type": "{ [key: string]: string; }" + }, + { + "name": "migratedAccountHolderCode", + "baseName": "migratedAccountHolderCode", + "type": "string" + }, + { + "name": "primaryBalanceAccount", + "baseName": "primaryBalanceAccount", + "type": "string" + }, + { + "name": "reference", + "baseName": "reference", + "type": "string" + }, + { + "name": "status", + "baseName": "status", + "type": "AccountHolderUpdateRequest.StatusEnum" + }, + { + "name": "timeZone", + "baseName": "timeZone", + "type": "string" + }, + { + "name": "verificationDeadlines", + "baseName": "verificationDeadlines", + "type": "Array" + } ]; + + static getAttributeTypeMap() { + return AccountHolderUpdateRequest.attributeTypeMap; + } +} + +export namespace AccountHolderUpdateRequest { + export enum StatusEnum { + Active = 'active', + Closed = 'closed', + Inactive = 'inactive', + Suspended = 'suspended' + } +} diff --git a/src/typings/balancePlatform/bRLocalAccountIdentification.ts b/src/typings/balancePlatform/bRLocalAccountIdentification.ts new file mode 100644 index 000000000..c6ec80979 --- /dev/null +++ b/src/typings/balancePlatform/bRLocalAccountIdentification.ts @@ -0,0 +1,62 @@ +/* + * The version of the OpenAPI document: v2 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class BRLocalAccountIdentification { + /** + * The bank account number, without separators or whitespace. + */ + 'accountNumber': string; + /** + * The 3-digit bank code, with leading zeros. + */ + 'bankCode': string; + /** + * The bank account branch number, without separators or whitespace. + */ + 'branchNumber': string; + /** + * **brLocal** + */ + 'type': BRLocalAccountIdentification.TypeEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "accountNumber", + "baseName": "accountNumber", + "type": "string" + }, + { + "name": "bankCode", + "baseName": "bankCode", + "type": "string" + }, + { + "name": "branchNumber", + "baseName": "branchNumber", + "type": "string" + }, + { + "name": "type", + "baseName": "type", + "type": "BRLocalAccountIdentification.TypeEnum" + } ]; + + static getAttributeTypeMap() { + return BRLocalAccountIdentification.attributeTypeMap; + } +} + +export namespace BRLocalAccountIdentification { + export enum TypeEnum { + BrLocal = 'brLocal' + } +} diff --git a/src/typings/balancePlatform/balance.ts b/src/typings/balancePlatform/balance.ts index f29041b31..7a32623c5 100644 --- a/src/typings/balancePlatform/balance.ts +++ b/src/typings/balancePlatform/balance.ts @@ -22,6 +22,10 @@ export class Balance { */ 'currency': string; /** + * The amount pending to be paid out but not yet available in the balance. + */ + 'pending'?: number; + /** * The amount reserved for payments that have been authorised, but have not been captured yet. */ 'reserved': number; @@ -44,6 +48,11 @@ export class Balance { "baseName": "currency", "type": "string" }, + { + "name": "pending", + "baseName": "pending", + "type": "number" + }, { "name": "reserved", "baseName": "reserved", diff --git a/src/typings/balancePlatform/balanceAccount.ts b/src/typings/balancePlatform/balanceAccount.ts index d4b267a6e..f0699ebc6 100644 --- a/src/typings/balancePlatform/balanceAccount.ts +++ b/src/typings/balancePlatform/balanceAccount.ts @@ -8,6 +8,7 @@ */ import { Balance } from './balance'; +import { PlatformPaymentConfiguration } from './platformPaymentConfiguration'; export class BalanceAccount { /** @@ -31,10 +32,15 @@ export class BalanceAccount { */ 'id': string; /** - * A set of key and value pairs for general use by the merchant. 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. + * 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; }; /** + * The unique identifier of the account of the migrated account holder in the classic integration. + */ + 'migratedAccountCode'?: string; + 'platformPaymentConfiguration'?: PlatformPaymentConfiguration; + /** * Your reference for the balance account, maximum 150 characters. */ 'reference'?: string; @@ -80,6 +86,16 @@ export class BalanceAccount { "baseName": "metadata", "type": "{ [key: string]: string; }" }, + { + "name": "migratedAccountCode", + "baseName": "migratedAccountCode", + "type": "string" + }, + { + "name": "platformPaymentConfiguration", + "baseName": "platformPaymentConfiguration", + "type": "PlatformPaymentConfiguration" + }, { "name": "reference", "baseName": "reference", diff --git a/src/typings/balancePlatform/balanceAccountBase.ts b/src/typings/balancePlatform/balanceAccountBase.ts index 67e6b6260..137661ec0 100644 --- a/src/typings/balancePlatform/balanceAccountBase.ts +++ b/src/typings/balancePlatform/balanceAccountBase.ts @@ -7,6 +7,7 @@ * Do not edit this class manually. */ +import { PlatformPaymentConfiguration } from './platformPaymentConfiguration'; export class BalanceAccountBase { /** @@ -26,10 +27,15 @@ export class BalanceAccountBase { */ 'id': string; /** - * A set of key and value pairs for general use by the merchant. 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. + * 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; }; /** + * The unique identifier of the account of the migrated account holder in the classic integration. + */ + 'migratedAccountCode'?: string; + 'platformPaymentConfiguration'?: PlatformPaymentConfiguration; + /** * Your reference for the balance account, maximum 150 characters. */ 'reference'?: string; @@ -70,6 +76,16 @@ export class BalanceAccountBase { "baseName": "metadata", "type": "{ [key: string]: string; }" }, + { + "name": "migratedAccountCode", + "baseName": "migratedAccountCode", + "type": "string" + }, + { + "name": "platformPaymentConfiguration", + "baseName": "platformPaymentConfiguration", + "type": "PlatformPaymentConfiguration" + }, { "name": "reference", "baseName": "reference", diff --git a/src/typings/balancePlatform/balanceAccountInfo.ts b/src/typings/balancePlatform/balanceAccountInfo.ts index ab1f1dbdf..bb24910e3 100644 --- a/src/typings/balancePlatform/balanceAccountInfo.ts +++ b/src/typings/balancePlatform/balanceAccountInfo.ts @@ -7,6 +7,7 @@ * Do not edit this class manually. */ +import { PlatformPaymentConfiguration } from './platformPaymentConfiguration'; export class BalanceAccountInfo { /** @@ -22,10 +23,15 @@ export class BalanceAccountInfo { */ 'description'?: string; /** - * A set of key and value pairs for general use by the merchant. 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. + * 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; }; /** + * The unique identifier of the account of the migrated account holder in the classic integration. + */ + 'migratedAccountCode'?: string; + 'platformPaymentConfiguration'?: PlatformPaymentConfiguration; + /** * Your reference for the balance account, maximum 150 characters. */ 'reference'?: string; @@ -57,6 +63,16 @@ export class BalanceAccountInfo { "baseName": "metadata", "type": "{ [key: string]: string; }" }, + { + "name": "migratedAccountCode", + "baseName": "migratedAccountCode", + "type": "string" + }, + { + "name": "platformPaymentConfiguration", + "baseName": "platformPaymentConfiguration", + "type": "PlatformPaymentConfiguration" + }, { "name": "reference", "baseName": "reference", diff --git a/src/typings/balancePlatform/balanceAccountUpdateRequest.ts b/src/typings/balancePlatform/balanceAccountUpdateRequest.ts index bff4ba684..916c8cedd 100644 --- a/src/typings/balancePlatform/balanceAccountUpdateRequest.ts +++ b/src/typings/balancePlatform/balanceAccountUpdateRequest.ts @@ -7,6 +7,7 @@ * Do not edit this class manually. */ +import { PlatformPaymentConfiguration } from './platformPaymentConfiguration'; export class BalanceAccountUpdateRequest { /** @@ -22,9 +23,10 @@ export class BalanceAccountUpdateRequest { */ 'description'?: string; /** - * A set of key and value pairs for general use by the merchant. 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. + * 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; /** * Your reference to the balance account, maximum 150 characters. */ @@ -61,6 +63,11 @@ export class BalanceAccountUpdateRequest { "baseName": "metadata", "type": "{ [key: string]: string; }" }, + { + "name": "platformPaymentConfiguration", + "baseName": "platformPaymentConfiguration", + "type": "PlatformPaymentConfiguration" + }, { "name": "reference", "baseName": "reference", diff --git a/src/typings/balancePlatform/bankAccountIdentificationValidationRequest.ts b/src/typings/balancePlatform/bankAccountIdentificationValidationRequest.ts index 6daf4d77e..1962bbd42 100644 --- a/src/typings/balancePlatform/bankAccountIdentificationValidationRequest.ts +++ b/src/typings/balancePlatform/bankAccountIdentificationValidationRequest.ts @@ -8,11 +8,15 @@ */ import { AULocalAccountIdentification } from './aULocalAccountIdentification'; +import { BRLocalAccountIdentification } from './bRLocalAccountIdentification'; import { CALocalAccountIdentification } from './cALocalAccountIdentification'; import { CZLocalAccountIdentification } from './cZLocalAccountIdentification'; +import { DKLocalAccountIdentification } from './dKLocalAccountIdentification'; +import { HKLocalAccountIdentification } from './hKLocalAccountIdentification'; import { HULocalAccountIdentification } from './hULocalAccountIdentification'; import { IbanAccountIdentification } from './ibanAccountIdentification'; import { NOLocalAccountIdentification } from './nOLocalAccountIdentification'; +import { NZLocalAccountIdentification } from './nZLocalAccountIdentification'; import { NumberAndBicAccountIdentification } from './numberAndBicAccountIdentification'; import { PLLocalAccountIdentification } from './pLLocalAccountIdentification'; import { SELocalAccountIdentification } from './sELocalAccountIdentification'; @@ -24,7 +28,7 @@ export class BankAccountIdentificationValidationRequest { /** * Bank account identification. */ - 'accountIdentification': AULocalAccountIdentification | CALocalAccountIdentification | CZLocalAccountIdentification | HULocalAccountIdentification | IbanAccountIdentification | NOLocalAccountIdentification | NumberAndBicAccountIdentification | PLLocalAccountIdentification | SELocalAccountIdentification | SGLocalAccountIdentification | UKLocalAccountIdentification | USLocalAccountIdentification; + 'accountIdentification': AULocalAccountIdentification | BRLocalAccountIdentification | CALocalAccountIdentification | CZLocalAccountIdentification | DKLocalAccountIdentification | HKLocalAccountIdentification | HULocalAccountIdentification | IbanAccountIdentification | NOLocalAccountIdentification | NZLocalAccountIdentification | NumberAndBicAccountIdentification | PLLocalAccountIdentification | SELocalAccountIdentification | SGLocalAccountIdentification | UKLocalAccountIdentification | USLocalAccountIdentification; static discriminator: string | undefined = undefined; @@ -32,7 +36,7 @@ export class BankAccountIdentificationValidationRequest { { "name": "accountIdentification", "baseName": "accountIdentification", - "type": "AULocalAccountIdentification | CALocalAccountIdentification | CZLocalAccountIdentification | HULocalAccountIdentification | IbanAccountIdentification | NOLocalAccountIdentification | NumberAndBicAccountIdentification | PLLocalAccountIdentification | SELocalAccountIdentification | SGLocalAccountIdentification | UKLocalAccountIdentification | USLocalAccountIdentification" + "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/card.ts b/src/typings/balancePlatform/card.ts index 9d24f2620..53b0cde7c 100644 --- a/src/typings/balancePlatform/card.ts +++ b/src/typings/balancePlatform/card.ts @@ -23,7 +23,7 @@ export class Card { */ 'brand': string; /** - * The brand variant of the physical or the virtual card. >Contact your Adyen Implementation Manager to get the values that are relevant to your integration. Examples: **visadebit**, **mcprepaid**. + * The brand variant of the physical or the virtual card. For example, **visadebit** or **mcprepaid**. >Reach out to your Adyen contact to get the values relevant for your integration. */ 'brandVariant': string; /** @@ -49,6 +49,10 @@ export class Card { * The primary account number (PAN) of the card. > The PAN is masked by default and returned only for single-use virtual cards. */ 'number': string; + /** + * Allocates a specific product range for either a physical or a virtual card. Possible values: **fullySupported**, **secureCorporate**. >Reach out to your Adyen contact to get the values relevant for your integration. + */ + 'threeDSecure'?: string; static discriminator: string | undefined = undefined; @@ -112,6 +116,11 @@ export class Card { "name": "number", "baseName": "number", "type": "string" + }, + { + "name": "threeDSecure", + "baseName": "threeDSecure", + "type": "string" } ]; static getAttributeTypeMap() { diff --git a/src/typings/balancePlatform/cardInfo.ts b/src/typings/balancePlatform/cardInfo.ts index a1a1266eb..dc2764ea5 100644 --- a/src/typings/balancePlatform/cardInfo.ts +++ b/src/typings/balancePlatform/cardInfo.ts @@ -18,7 +18,7 @@ export class CardInfo { */ 'brand': string; /** - * The brand variant of the physical or the virtual card. >Contact your Adyen Implementation Manager to get the values that are relevant to your integration. Examples: **visadebit**, **mcprepaid**. + * The brand variant of the physical or the virtual card. For example, **visadebit** or **mcprepaid**. >Reach out to your Adyen contact to get the values relevant for your integration. */ 'brandVariant': string; /** @@ -31,6 +31,10 @@ export class CardInfo { * The form factor of the card. Possible values: **virtual**, **physical**. */ 'formFactor': CardInfo.FormFactorEnum; + /** + * Allocates a specific product range for either a physical or a virtual card. Possible values: **fullySupported**, **secureCorporate**. >Reach out to your Adyen contact to get the values relevant for your integration. + */ + 'threeDSecure'?: string; static discriminator: string | undefined = undefined; @@ -69,6 +73,11 @@ export class CardInfo { "name": "formFactor", "baseName": "formFactor", "type": "CardInfo.FormFactorEnum" + }, + { + "name": "threeDSecure", + "baseName": "threeDSecure", + "type": "string" } ]; static getAttributeTypeMap() { diff --git a/src/typings/balancePlatform/cronSweepSchedule.ts b/src/typings/balancePlatform/cronSweepSchedule.ts deleted file mode 100644 index 30cb8ad43..000000000 --- a/src/typings/balancePlatform/cronSweepSchedule.ts +++ /dev/null @@ -1,48 +0,0 @@ -/* - * The version of the OpenAPI document: v2 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit this class manually. - */ - - -export class CronSweepSchedule { - /** - * A [cron expression](https://en.wikipedia.org/wiki/Cron#CRON_expression) that is used to set the sweep schedule. The schedule uses the time zone of the balance account. For example, **30 17 * * MON** schedules a sweep every Monday at 17:30. The expression must have five values separated by a single space in the following order: * Minute: **0-59** * Hour: **0-23** * Day of the month: **1-31** * Month: **1-12** or **JAN-DEC** * Day of the week: **0-7** (0 and 7 are Sunday) or **MON-SUN**. The following non-standard characters are supported: *****, **L**, **#**, **W** and **_/_**. See [crontab guru](https://crontab.guru/) for more examples. - */ - 'cronExpression': string; - /** - * The schedule type. Possible values: * **cron**: push out funds based on a cron expression. * **daily**: push out funds daily at 07:00 AM CET. * **weekly**: push out funds every Monday at 07:00 AM CET. * **monthly**: push out funds every first of the month at 07:00 AM CET. * **balance**: pull in funds instantly if the balance is less than or equal to the `triggerAmount`. You can only use this for sweeps of `type` **pull** and when the source is a `merchantAccount` or `transferInstrument`.If the source is transferInstrument, merchant account identifier is still required, with which you want to process the transaction. - */ - 'type'?: CronSweepSchedule.TypeEnum; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "cronExpression", - "baseName": "cronExpression", - "type": "string" - }, - { - "name": "type", - "baseName": "type", - "type": "CronSweepSchedule.TypeEnum" - } ]; - - static getAttributeTypeMap() { - return CronSweepSchedule.attributeTypeMap; - } -} - -export namespace CronSweepSchedule { - export enum TypeEnum { - Daily = 'daily', - Weekly = 'weekly', - Monthly = 'monthly', - Balance = 'balance', - Cron = 'cron' - } -} diff --git a/src/typings/balancePlatform/dKLocalAccountIdentification.ts b/src/typings/balancePlatform/dKLocalAccountIdentification.ts new file mode 100644 index 000000000..897a66c3f --- /dev/null +++ b/src/typings/balancePlatform/dKLocalAccountIdentification.ts @@ -0,0 +1,53 @@ +/* + * The version of the OpenAPI document: v2 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class DKLocalAccountIdentification { + /** + * The 4-10 digits bank account number (Kontonummer) (without separators or whitespace). + */ + 'accountNumber': string; + /** + * The 4-digit bank code (Registreringsnummer) (without separators or whitespace). + */ + 'bankCode': string; + /** + * **dkLocal** + */ + 'type': DKLocalAccountIdentification.TypeEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "accountNumber", + "baseName": "accountNumber", + "type": "string" + }, + { + "name": "bankCode", + "baseName": "bankCode", + "type": "string" + }, + { + "name": "type", + "baseName": "type", + "type": "DKLocalAccountIdentification.TypeEnum" + } ]; + + static getAttributeTypeMap() { + return DKLocalAccountIdentification.attributeTypeMap; + } +} + +export namespace DKLocalAccountIdentification { + export enum TypeEnum { + DkLocal = 'dkLocal' + } +} diff --git a/src/typings/balancePlatform/deviceInfo.ts b/src/typings/balancePlatform/deviceInfo.ts new file mode 100644 index 000000000..321d2167e --- /dev/null +++ b/src/typings/balancePlatform/deviceInfo.ts @@ -0,0 +1,120 @@ +/* + * The version of the OpenAPI document: v2 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class DeviceInfo { + /** + * The technology used to capture the card details. + */ + 'cardCaptureTechnology'?: string; + /** + * The name of the device. + */ + 'deviceName'?: string; + /** + * The form factor of the device to be provisioned. + */ + 'formFactor'?: string; + /** + * The IMEI number of the device being provisioned. + */ + 'imei'?: string; + /** + * The 2-digit device type provided on the ISO messages that the token is being provisioned to. + */ + 'isoDeviceType'?: string; + /** + * The MSISDN of the device being provisioned. + */ + 'msisdn'?: string; + /** + * The name of the device operating system. + */ + 'osName'?: string; + /** + * The version of the device operating system. + */ + 'osVersion'?: string; + /** + * Different types of payments supported for the network token. + */ + 'paymentTypes'?: Array; + /** + * The serial number of the device. + */ + 'serialNumber'?: string; + /** + * The architecture or technology used for network token storage. + */ + 'storageTechnology'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "cardCaptureTechnology", + "baseName": "cardCaptureTechnology", + "type": "string" + }, + { + "name": "deviceName", + "baseName": "deviceName", + "type": "string" + }, + { + "name": "formFactor", + "baseName": "formFactor", + "type": "string" + }, + { + "name": "imei", + "baseName": "imei", + "type": "string" + }, + { + "name": "isoDeviceType", + "baseName": "isoDeviceType", + "type": "string" + }, + { + "name": "msisdn", + "baseName": "msisdn", + "type": "string" + }, + { + "name": "osName", + "baseName": "osName", + "type": "string" + }, + { + "name": "osVersion", + "baseName": "osVersion", + "type": "string" + }, + { + "name": "paymentTypes", + "baseName": "paymentTypes", + "type": "Array" + }, + { + "name": "serialNumber", + "baseName": "serialNumber", + "type": "string" + }, + { + "name": "storageTechnology", + "baseName": "storageTechnology", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return DeviceInfo.attributeTypeMap; + } +} + diff --git a/src/typings/balancePlatform/getNetworkTokenResponse.ts b/src/typings/balancePlatform/getNetworkTokenResponse.ts new file mode 100644 index 000000000..e1abd2920 --- /dev/null +++ b/src/typings/balancePlatform/getNetworkTokenResponse.ts @@ -0,0 +1,28 @@ +/* + * The version of the OpenAPI document: v2 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { NetworkToken } from './networkToken'; + +export class GetNetworkTokenResponse { + 'token': NetworkToken; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "token", + "baseName": "token", + "type": "NetworkToken" + } ]; + + static getAttributeTypeMap() { + return GetNetworkTokenResponse.attributeTypeMap; + } +} + diff --git a/src/typings/balancePlatform/hKLocalAccountIdentification.ts b/src/typings/balancePlatform/hKLocalAccountIdentification.ts new file mode 100644 index 000000000..68113a68f --- /dev/null +++ b/src/typings/balancePlatform/hKLocalAccountIdentification.ts @@ -0,0 +1,53 @@ +/* + * The version of the OpenAPI document: v2 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class HKLocalAccountIdentification { + /** + * The 6- to 19-character bank account number (alphanumeric), without separators or whitespace. + */ + 'accountNumber': string; + /** + * The 6-digit bank code including the 3-digit bank code and 3-digit branch code, without separators or whitespace. + */ + 'bankCode': string; + /** + * **hkLocal** + */ + 'type': HKLocalAccountIdentification.TypeEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "accountNumber", + "baseName": "accountNumber", + "type": "string" + }, + { + "name": "bankCode", + "baseName": "bankCode", + "type": "string" + }, + { + "name": "type", + "baseName": "type", + "type": "HKLocalAccountIdentification.TypeEnum" + } ]; + + static getAttributeTypeMap() { + return HKLocalAccountIdentification.attributeTypeMap; + } +} + +export namespace HKLocalAccountIdentification { + export enum TypeEnum { + HkLocal = 'hkLocal' + } +} diff --git a/src/typings/balancePlatform/listNetworkTokensResponse.ts b/src/typings/balancePlatform/listNetworkTokensResponse.ts new file mode 100644 index 000000000..94d2a2cda --- /dev/null +++ b/src/typings/balancePlatform/listNetworkTokensResponse.ts @@ -0,0 +1,31 @@ +/* + * The version of the OpenAPI document: v2 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { NetworkToken } from './networkToken'; + +export class ListNetworkTokensResponse { + /** + * List of network tokens. + */ + 'networkTokens'?: Array; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "networkTokens", + "baseName": "networkTokens", + "type": "Array" + } ]; + + static getAttributeTypeMap() { + return ListNetworkTokensResponse.attributeTypeMap; + } +} + diff --git a/src/typings/balancePlatform/models.ts b/src/typings/balancePlatform/models.ts index 27d5d3ad5..7b4e6cc63 100644 --- a/src/typings/balancePlatform/models.ts +++ b/src/typings/balancePlatform/models.ts @@ -12,12 +12,14 @@ export * from './aULocalAccountIdentification'; export * from './accountHolder'; export * from './accountHolderCapability'; export * from './accountHolderInfo'; +export * from './accountHolderUpdateRequest'; export * from './accountSupportingEntityCapability'; export * from './activeNetworkTokensRestriction'; export * from './additionalBankIdentification'; export * from './address'; export * from './amount'; export * from './authentication'; +export * from './bRLocalAccountIdentification'; export * from './balance'; export * from './balanceAccount'; export * from './balanceAccountBase'; @@ -38,31 +40,37 @@ export * from './cardConfiguration'; export * from './cardInfo'; export * from './contactDetails'; export * from './countriesRestriction'; -export * from './cronSweepSchedule'; +export * from './dKLocalAccountIdentification'; export * from './dayOfWeekRestriction'; export * from './deliveryAddress'; export * from './deliveryContact'; +export * from './deviceInfo'; export * from './differentCurrenciesRestriction'; export * from './duration'; export * from './entryModesRestriction'; export * from './expiry'; export * from './fee'; +export * from './getNetworkTokenResponse'; export * from './grantLimit'; export * from './grantOffer'; export * from './grantOffers'; +export * from './hKLocalAccountIdentification'; export * from './hULocalAccountIdentification'; export * from './ibanAccountIdentification'; export * from './internationalTransactionRestriction'; export * from './invalidField'; export * from './jSONObject'; export * from './jSONPath'; +export * from './listNetworkTokensResponse'; export * from './matchingTransactionsRestriction'; export * from './mccsRestriction'; export * from './merchantAcquirerPair'; export * from './merchantNamesRestriction'; export * from './merchantsRestriction'; export * from './nOLocalAccountIdentification'; +export * from './nZLocalAccountIdentification'; export * from './name'; +export * from './networkToken'; export * from './numberAndBicAccountIdentification'; export * from './pLLocalAccountIdentification'; export * from './paginatedAccountHoldersResponse'; @@ -76,6 +84,7 @@ export * from './paymentInstrumentRevealInfo'; export * from './paymentInstrumentUpdateRequest'; export * from './phone'; export * from './phoneNumber'; +export * from './platformPaymentConfiguration'; export * from './processingTypesRestriction'; export * from './repayment'; export * from './repaymentTerm'; @@ -99,7 +108,9 @@ export * from './transactionRuleRestrictions'; export * from './transactionRulesResponse'; export * from './uKLocalAccountIdentification'; export * from './uSLocalAccountIdentification'; +export * from './updateNetworkTokenRequest'; export * from './updatePaymentInstrument'; +export * from './updateSweepConfigurationV2'; export * from './verificationDeadline'; @@ -107,12 +118,14 @@ import { AULocalAccountIdentification } from './aULocalAccountIdentification'; import { AccountHolder } from './accountHolder'; import { AccountHolderCapability } from './accountHolderCapability'; import { AccountHolderInfo } from './accountHolderInfo'; +import { AccountHolderUpdateRequest } from './accountHolderUpdateRequest'; import { AccountSupportingEntityCapability } from './accountSupportingEntityCapability'; import { ActiveNetworkTokensRestriction } from './activeNetworkTokensRestriction'; import { AdditionalBankIdentification } from './additionalBankIdentification'; import { Address } from './address'; import { Amount } from './amount'; import { Authentication } from './authentication'; +import { BRLocalAccountIdentification } from './bRLocalAccountIdentification'; import { Balance } from './balance'; import { BalanceAccount } from './balanceAccount'; import { BalanceAccountBase } from './balanceAccountBase'; @@ -133,31 +146,37 @@ import { CardConfiguration } from './cardConfiguration'; import { CardInfo } from './cardInfo'; import { ContactDetails } from './contactDetails'; import { CountriesRestriction } from './countriesRestriction'; -import { CronSweepSchedule } from './cronSweepSchedule'; +import { DKLocalAccountIdentification } from './dKLocalAccountIdentification'; import { DayOfWeekRestriction } from './dayOfWeekRestriction'; import { DeliveryAddress } from './deliveryAddress'; import { DeliveryContact } from './deliveryContact'; +import { DeviceInfo } from './deviceInfo'; import { DifferentCurrenciesRestriction } from './differentCurrenciesRestriction'; import { Duration } from './duration'; import { EntryModesRestriction } from './entryModesRestriction'; import { Expiry } from './expiry'; import { Fee } from './fee'; +import { GetNetworkTokenResponse } from './getNetworkTokenResponse'; import { GrantLimit } from './grantLimit'; import { GrantOffer } from './grantOffer'; import { GrantOffers } from './grantOffers'; +import { HKLocalAccountIdentification } from './hKLocalAccountIdentification'; import { HULocalAccountIdentification } from './hULocalAccountIdentification'; import { IbanAccountIdentification } from './ibanAccountIdentification'; import { InternationalTransactionRestriction } from './internationalTransactionRestriction'; import { InvalidField } from './invalidField'; import { JSONObject } from './jSONObject'; import { JSONPath } from './jSONPath'; +import { ListNetworkTokensResponse } from './listNetworkTokensResponse'; import { MatchingTransactionsRestriction } from './matchingTransactionsRestriction'; import { MccsRestriction } from './mccsRestriction'; import { MerchantAcquirerPair } from './merchantAcquirerPair'; import { MerchantNamesRestriction } from './merchantNamesRestriction'; import { MerchantsRestriction } from './merchantsRestriction'; import { NOLocalAccountIdentification } from './nOLocalAccountIdentification'; +import { NZLocalAccountIdentification } from './nZLocalAccountIdentification'; import { Name } from './name'; +import { NetworkToken } from './networkToken'; import { NumberAndBicAccountIdentification } from './numberAndBicAccountIdentification'; import { PLLocalAccountIdentification } from './pLLocalAccountIdentification'; import { PaginatedAccountHoldersResponse } from './paginatedAccountHoldersResponse'; @@ -171,6 +190,7 @@ import { PaymentInstrumentRevealInfo } from './paymentInstrumentRevealInfo'; import { PaymentInstrumentUpdateRequest } from './paymentInstrumentUpdateRequest'; import { Phone } from './phone'; import { PhoneNumber } from './phoneNumber'; +import { PlatformPaymentConfiguration } from './platformPaymentConfiguration'; import { ProcessingTypesRestriction } from './processingTypesRestriction'; import { Repayment } from './repayment'; import { RepaymentTerm } from './repaymentTerm'; @@ -194,7 +214,9 @@ import { TransactionRuleRestrictions } from './transactionRuleRestrictions'; import { TransactionRulesResponse } from './transactionRulesResponse'; import { UKLocalAccountIdentification } from './uKLocalAccountIdentification'; import { USLocalAccountIdentification } from './uSLocalAccountIdentification'; +import { UpdateNetworkTokenRequest } from './updateNetworkTokenRequest'; import { UpdatePaymentInstrument } from './updatePaymentInstrument'; +import { UpdateSweepConfigurationV2 } from './updateSweepConfigurationV2'; import { VerificationDeadline } from './verificationDeadline'; /* tslint:disable:no-unused-variable */ @@ -215,10 +237,12 @@ let enumsMap: {[index: string]: any} = { "AccountHolderCapability.AllowedLevelEnum": AccountHolderCapability.AllowedLevelEnum, "AccountHolderCapability.RequestedLevelEnum": AccountHolderCapability.RequestedLevelEnum, "AccountHolderCapability.VerificationStatusEnum": AccountHolderCapability.VerificationStatusEnum, + "AccountHolderUpdateRequest.StatusEnum": AccountHolderUpdateRequest.StatusEnum, "AccountSupportingEntityCapability.AllowedLevelEnum": AccountSupportingEntityCapability.AllowedLevelEnum, "AccountSupportingEntityCapability.RequestedLevelEnum": AccountSupportingEntityCapability.RequestedLevelEnum, "AccountSupportingEntityCapability.VerificationStatusEnum": AccountSupportingEntityCapability.VerificationStatusEnum, "AdditionalBankIdentification.TypeEnum": AdditionalBankIdentification.TypeEnum, + "BRLocalAccountIdentification.TypeEnum": BRLocalAccountIdentification.TypeEnum, "BalanceAccount.StatusEnum": BalanceAccount.StatusEnum, "BalanceAccountBase.StatusEnum": BalanceAccountBase.StatusEnum, "BalanceAccountUpdateRequest.StatusEnum": BalanceAccountUpdateRequest.StatusEnum, @@ -229,14 +253,17 @@ let enumsMap: {[index: string]: any} = { "CapabilitySettings.IntervalEnum": CapabilitySettings.IntervalEnum, "Card.FormFactorEnum": Card.FormFactorEnum, "CardInfo.FormFactorEnum": CardInfo.FormFactorEnum, - "CronSweepSchedule.TypeEnum": CronSweepSchedule.TypeEnum, + "DKLocalAccountIdentification.TypeEnum": DKLocalAccountIdentification.TypeEnum, "DayOfWeekRestriction.ValueEnum": DayOfWeekRestriction.ValueEnum, "Duration.UnitEnum": Duration.UnitEnum, "EntryModesRestriction.ValueEnum": EntryModesRestriction.ValueEnum, "GrantOffer.ContractTypeEnum": GrantOffer.ContractTypeEnum, + "HKLocalAccountIdentification.TypeEnum": HKLocalAccountIdentification.TypeEnum, "HULocalAccountIdentification.TypeEnum": HULocalAccountIdentification.TypeEnum, "IbanAccountIdentification.TypeEnum": IbanAccountIdentification.TypeEnum, "NOLocalAccountIdentification.TypeEnum": NOLocalAccountIdentification.TypeEnum, + "NZLocalAccountIdentification.TypeEnum": NZLocalAccountIdentification.TypeEnum, + "NetworkToken.StatusEnum": NetworkToken.StatusEnum, "NumberAndBicAccountIdentification.TypeEnum": NumberAndBicAccountIdentification.TypeEnum, "PLLocalAccountIdentification.TypeEnum": PLLocalAccountIdentification.TypeEnum, "PaymentInstrument.StatusEnum": PaymentInstrument.StatusEnum, @@ -272,9 +299,15 @@ let enumsMap: {[index: string]: any} = { "UKLocalAccountIdentification.TypeEnum": UKLocalAccountIdentification.TypeEnum, "USLocalAccountIdentification.AccountTypeEnum": USLocalAccountIdentification.AccountTypeEnum, "USLocalAccountIdentification.TypeEnum": USLocalAccountIdentification.TypeEnum, + "UpdateNetworkTokenRequest.StatusEnum": UpdateNetworkTokenRequest.StatusEnum, "UpdatePaymentInstrument.StatusEnum": UpdatePaymentInstrument.StatusEnum, "UpdatePaymentInstrument.StatusReasonEnum": UpdatePaymentInstrument.StatusReasonEnum, "UpdatePaymentInstrument.TypeEnum": UpdatePaymentInstrument.TypeEnum, + "UpdateSweepConfigurationV2.CategoryEnum": UpdateSweepConfigurationV2.CategoryEnum, + "UpdateSweepConfigurationV2.PrioritiesEnum": UpdateSweepConfigurationV2.PrioritiesEnum, + "UpdateSweepConfigurationV2.ReasonEnum": UpdateSweepConfigurationV2.ReasonEnum, + "UpdateSweepConfigurationV2.StatusEnum": UpdateSweepConfigurationV2.StatusEnum, + "UpdateSweepConfigurationV2.TypeEnum": UpdateSweepConfigurationV2.TypeEnum, "VerificationDeadline.CapabilitiesEnum": VerificationDeadline.CapabilitiesEnum, } @@ -283,12 +316,14 @@ let typeMap: {[index: string]: any} = { "AccountHolder": AccountHolder, "AccountHolderCapability": AccountHolderCapability, "AccountHolderInfo": AccountHolderInfo, + "AccountHolderUpdateRequest": AccountHolderUpdateRequest, "AccountSupportingEntityCapability": AccountSupportingEntityCapability, "ActiveNetworkTokensRestriction": ActiveNetworkTokensRestriction, "AdditionalBankIdentification": AdditionalBankIdentification, "Address": Address, "Amount": Amount, "Authentication": Authentication, + "BRLocalAccountIdentification": BRLocalAccountIdentification, "Balance": Balance, "BalanceAccount": BalanceAccount, "BalanceAccountBase": BalanceAccountBase, @@ -309,31 +344,37 @@ let typeMap: {[index: string]: any} = { "CardInfo": CardInfo, "ContactDetails": ContactDetails, "CountriesRestriction": CountriesRestriction, - "CronSweepSchedule": CronSweepSchedule, + "DKLocalAccountIdentification": DKLocalAccountIdentification, "DayOfWeekRestriction": DayOfWeekRestriction, "DeliveryAddress": DeliveryAddress, "DeliveryContact": DeliveryContact, + "DeviceInfo": DeviceInfo, "DifferentCurrenciesRestriction": DifferentCurrenciesRestriction, "Duration": Duration, "EntryModesRestriction": EntryModesRestriction, "Expiry": Expiry, "Fee": Fee, + "GetNetworkTokenResponse": GetNetworkTokenResponse, "GrantLimit": GrantLimit, "GrantOffer": GrantOffer, "GrantOffers": GrantOffers, + "HKLocalAccountIdentification": HKLocalAccountIdentification, "HULocalAccountIdentification": HULocalAccountIdentification, "IbanAccountIdentification": IbanAccountIdentification, "InternationalTransactionRestriction": InternationalTransactionRestriction, "InvalidField": InvalidField, "JSONObject": JSONObject, "JSONPath": JSONPath, + "ListNetworkTokensResponse": ListNetworkTokensResponse, "MatchingTransactionsRestriction": MatchingTransactionsRestriction, "MccsRestriction": MccsRestriction, "MerchantAcquirerPair": MerchantAcquirerPair, "MerchantNamesRestriction": MerchantNamesRestriction, "MerchantsRestriction": MerchantsRestriction, "NOLocalAccountIdentification": NOLocalAccountIdentification, + "NZLocalAccountIdentification": NZLocalAccountIdentification, "Name": Name, + "NetworkToken": NetworkToken, "NumberAndBicAccountIdentification": NumberAndBicAccountIdentification, "PLLocalAccountIdentification": PLLocalAccountIdentification, "PaginatedAccountHoldersResponse": PaginatedAccountHoldersResponse, @@ -347,6 +388,7 @@ let typeMap: {[index: string]: any} = { "PaymentInstrumentUpdateRequest": PaymentInstrumentUpdateRequest, "Phone": Phone, "PhoneNumber": PhoneNumber, + "PlatformPaymentConfiguration": PlatformPaymentConfiguration, "ProcessingTypesRestriction": ProcessingTypesRestriction, "Repayment": Repayment, "RepaymentTerm": RepaymentTerm, @@ -370,7 +412,9 @@ let typeMap: {[index: string]: any} = { "TransactionRulesResponse": TransactionRulesResponse, "UKLocalAccountIdentification": UKLocalAccountIdentification, "USLocalAccountIdentification": USLocalAccountIdentification, + "UpdateNetworkTokenRequest": UpdateNetworkTokenRequest, "UpdatePaymentInstrument": UpdatePaymentInstrument, + "UpdateSweepConfigurationV2": UpdateSweepConfigurationV2, "VerificationDeadline": VerificationDeadline, } diff --git a/src/typings/balancePlatform/nZLocalAccountIdentification.ts b/src/typings/balancePlatform/nZLocalAccountIdentification.ts new file mode 100644 index 000000000..b5beb4565 --- /dev/null +++ b/src/typings/balancePlatform/nZLocalAccountIdentification.ts @@ -0,0 +1,62 @@ +/* + * The version of the OpenAPI document: v2 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class NZLocalAccountIdentification { + /** + * The 7-digit bank account number, without separators or whitespace. + */ + 'accountNumber': string; + /** + * The 2- to 3-digit account suffix, without separators or whitespace. + */ + 'accountSuffix': string; + /** + * The 6-digit bank code including the 2-digit bank code and 4-digit branch code, without separators or whitespace. + */ + 'bankCode': string; + /** + * **nzLocal** + */ + 'type': NZLocalAccountIdentification.TypeEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "accountNumber", + "baseName": "accountNumber", + "type": "string" + }, + { + "name": "accountSuffix", + "baseName": "accountSuffix", + "type": "string" + }, + { + "name": "bankCode", + "baseName": "bankCode", + "type": "string" + }, + { + "name": "type", + "baseName": "type", + "type": "NZLocalAccountIdentification.TypeEnum" + } ]; + + static getAttributeTypeMap() { + return NZLocalAccountIdentification.attributeTypeMap; + } +} + +export namespace NZLocalAccountIdentification { + export enum TypeEnum { + NzLocal = 'nzLocal' + } +} diff --git a/src/typings/balancePlatform/networkToken.ts b/src/typings/balancePlatform/networkToken.ts new file mode 100644 index 000000000..872902bec --- /dev/null +++ b/src/typings/balancePlatform/networkToken.ts @@ -0,0 +1,99 @@ +/* + * The version of the OpenAPI document: v2 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { DeviceInfo } from './deviceInfo'; + +export class NetworkToken { + /** + * The card brand variant of the payment instrument associated with the network token. For example, **mc_prepaid_mrw**. + */ + 'brandVariant'?: string; + /** + * 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; + /** + * The unique identifier of the network token. + */ + 'id'?: string; + /** + * The unique identifier of the payment instrument to which this network token belongs to. + */ + 'paymentInstrumentId'?: string; + /** + * The status of the network token. Possible values: **active**, **inactive**, **suspended**, **closed**. + */ + 'status'?: NetworkToken.StatusEnum; + /** + * The last four digits of the network token `id`. + */ + 'tokenLastFour'?: string; + /** + * The type of wallet the network token is associated with. For example, **applePay**. + */ + 'type'?: string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "brandVariant", + "baseName": "brandVariant", + "type": "string" + }, + { + "name": "creationDate", + "baseName": "creationDate", + "type": "Date" + }, + { + "name": "device", + "baseName": "device", + "type": "DeviceInfo" + }, + { + "name": "id", + "baseName": "id", + "type": "string" + }, + { + "name": "paymentInstrumentId", + "baseName": "paymentInstrumentId", + "type": "string" + }, + { + "name": "status", + "baseName": "status", + "type": "NetworkToken.StatusEnum" + }, + { + "name": "tokenLastFour", + "baseName": "tokenLastFour", + "type": "string" + }, + { + "name": "type", + "baseName": "type", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return NetworkToken.attributeTypeMap; + } +} + +export namespace NetworkToken { + export enum StatusEnum { + Active = 'active', + Inactive = 'inactive', + Suspended = 'suspended', + Closed = 'closed' + } +} diff --git a/src/typings/balancePlatform/platformPaymentConfiguration.ts b/src/typings/balancePlatform/platformPaymentConfiguration.ts new file mode 100644 index 000000000..b30d6e647 --- /dev/null +++ b/src/typings/balancePlatform/platformPaymentConfiguration.ts @@ -0,0 +1,39 @@ +/* + * The version of the OpenAPI document: v2 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class PlatformPaymentConfiguration { + /** + * Specifies at what time a [sales day](https://docs.adyen.com/marketplaces-and-platforms/receive-funds/sales-day-settlement#sales-day) ends. Possible values: Time in **\"HH:MM\"** format. **HH** ranges from **00** to **07**. **MM** must be **00**. Default value: **\"00:00\"**. + */ + 'salesDayClosingTime'?: string; + /** + * Specifies after how many business days the funds in a [settlement batch](https://docs.adyen.com/marketplaces-and-platforms/receive-funds/sales-day-settlement#settlement-batch) are made available. Possible values: **0** to **10**, or **null**. * Setting this value to an integer enables [Sales day settlement](https://docs.adyen.com/marketplaces-and-platforms/receive-funds/sales-day-settlement). * Setting this value to **null** enables [Pass-through settlement](https://docs.adyen.com/marketplaces-and-platforms/receive-funds/pass-through-settlement). Default value: **null**. + */ + 'settlementDelayDays'?: number; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "salesDayClosingTime", + "baseName": "salesDayClosingTime", + "type": "string" + }, + { + "name": "settlementDelayDays", + "baseName": "settlementDelayDays", + "type": "number" + } ]; + + static getAttributeTypeMap() { + return PlatformPaymentConfiguration.attributeTypeMap; + } +} + diff --git a/src/typings/balancePlatform/sweepConfigurationV2.ts b/src/typings/balancePlatform/sweepConfigurationV2.ts index d6d2c05e8..85a62f480 100644 --- a/src/typings/balancePlatform/sweepConfigurationV2.ts +++ b/src/typings/balancePlatform/sweepConfigurationV2.ts @@ -8,7 +8,6 @@ */ import { Amount } from './amount'; -import { CronSweepSchedule } from './cronSweepSchedule'; import { SweepCounterparty } from './sweepCounterparty'; import { SweepSchedule } from './sweepSchedule'; @@ -38,10 +37,7 @@ export class SweepConfigurationV2 { * The reason for disabling the sweep. */ 'reason'?: SweepConfigurationV2.ReasonEnum; - /** - * The schedule when the `triggerAmount` is evaluated. If the balance meets the threshold, funds are pushed out of or pulled in to the balance account. - */ - 'schedule': CronSweepSchedule | SweepSchedule; + 'schedule': SweepSchedule; /** * 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. */ @@ -95,7 +91,7 @@ export class SweepConfigurationV2 { { "name": "schedule", "baseName": "schedule", - "type": "CronSweepSchedule | SweepSchedule" + "type": "SweepSchedule" }, { "name": "status", diff --git a/src/typings/balancePlatform/sweepSchedule.ts b/src/typings/balancePlatform/sweepSchedule.ts index b8ad1ab7b..19c16bb48 100644 --- a/src/typings/balancePlatform/sweepSchedule.ts +++ b/src/typings/balancePlatform/sweepSchedule.ts @@ -10,13 +10,22 @@ export class SweepSchedule { /** - * The schedule type. Possible values: * **cron**: push out funds based on a cron expression. * **daily**: push out funds daily at 07:00 AM CET. * **weekly**: push out funds every Monday at 07:00 AM CET. * **monthly**: push out funds every first of the month at 07:00 AM CET. * **balance**: pull in funds instantly if the balance is less than or equal to the `triggerAmount`. You can only use this for sweeps of `type` **pull** and when the source is a `merchantAccount` or `transferInstrument`.If the source is transferInstrument, merchant account identifier is still required, with which you want to process the transaction. + * A [cron expression](https://en.wikipedia.org/wiki/Cron#CRON_expression) that is used to set the sweep schedule. The schedule uses the time zone of the balance account. For example, **30 17 * * MON** schedules a sweep every Monday at 17:30. The expression must have five values separated by a single space in the following order: * Minute: **0-59** * Hour: **0-23** * Day of the month: **1-31** * Month: **1-12** or **JAN-DEC** * Day of the week: **0-7** (0 and 7 are Sunday) or **MON-SUN**. The following non-standard characters are supported: *****, **L**, **#**, **W** and **_/_**. See [crontab guru](https://crontab.guru/) for more examples. Required when `type` is **cron**. */ - 'type'?: SweepSchedule.TypeEnum; + 'cronExpression'?: string; + /** + * The schedule type. Possible values: * **cron**: push out funds based on a `cronExpression`. * **daily**: push out funds daily at 07:00 AM CET. * **weekly**: push out funds every Monday at 07:00 AM CET. * **monthly**: push out funds every first of the month at 07:00 AM CET. * **balance**: pull in funds instantly if the balance is less than or equal to the `triggerAmount`. You can only use this for sweeps of `type` **pull** and when the source is a `merchantAccount` or `transferInstrument`. If the source is transferInstrument, merchant account identifier is still required, with which you want to process the transaction. + */ + 'type': SweepSchedule.TypeEnum; static discriminator: string | undefined = undefined; static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "cronExpression", + "baseName": "cronExpression", + "type": "string" + }, { "name": "type", "baseName": "type", diff --git a/src/typings/balancePlatform/transactionRule.ts b/src/typings/balancePlatform/transactionRule.ts index 5ba099d68..6653ae64c 100644 --- a/src/typings/balancePlatform/transactionRule.ts +++ b/src/typings/balancePlatform/transactionRule.ts @@ -147,6 +147,7 @@ export namespace TransactionRule { export enum RequestTypeEnum { Authentication = 'authentication', Authorization = 'authorization', + BankTransfer = 'bankTransfer', Tokenization = 'tokenization' } export enum StatusEnum { diff --git a/src/typings/balancePlatform/transactionRuleInfo.ts b/src/typings/balancePlatform/transactionRuleInfo.ts index a93850039..f5837d43a 100644 --- a/src/typings/balancePlatform/transactionRuleInfo.ts +++ b/src/typings/balancePlatform/transactionRuleInfo.ts @@ -138,6 +138,7 @@ export namespace TransactionRuleInfo { export enum RequestTypeEnum { Authentication = 'authentication', Authorization = 'authorization', + BankTransfer = 'bankTransfer', Tokenization = 'tokenization' } export enum StatusEnum { diff --git a/src/typings/balancePlatform/updateNetworkTokenRequest.ts b/src/typings/balancePlatform/updateNetworkTokenRequest.ts new file mode 100644 index 000000000..d5e827f4c --- /dev/null +++ b/src/typings/balancePlatform/updateNetworkTokenRequest.ts @@ -0,0 +1,37 @@ +/* + * The version of the OpenAPI document: v2 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class UpdateNetworkTokenRequest { + /** + * The new status of the network token. Possible values: **active**, **suspended**, **closed**. The **closed** status is final and cannot be changed. + */ + 'status'?: UpdateNetworkTokenRequest.StatusEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "status", + "baseName": "status", + "type": "UpdateNetworkTokenRequest.StatusEnum" + } ]; + + static getAttributeTypeMap() { + return UpdateNetworkTokenRequest.attributeTypeMap; + } +} + +export namespace UpdateNetworkTokenRequest { + export enum StatusEnum { + Active = 'active', + Suspended = 'suspended', + Closed = 'closed' + } +} diff --git a/src/typings/balancePlatform/updateSweepConfigurationV2.ts b/src/typings/balancePlatform/updateSweepConfigurationV2.ts new file mode 100644 index 000000000..3a2544a98 --- /dev/null +++ b/src/typings/balancePlatform/updateSweepConfigurationV2.ts @@ -0,0 +1,165 @@ +/* + * The version of the OpenAPI document: v2 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { Amount } from './amount'; +import { SweepCounterparty } from './sweepCounterparty'; +import { SweepSchedule } from './sweepSchedule'; + +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; + /** + * 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). + */ + 'currency'?: string; + /** + * The message that will be used in the sweep transfer\'s description body with a maximum length of 140 characters. If the message is longer after replacing placeholders, the message will be cut off at 140 characters. + */ + 'description'?: string; + /** + * The unique identifier of the sweep. + */ + 'id'?: string; + /** + * The list of priorities for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. You can provide multiple priorities. Adyen will try to pay out using the priority listed first, and if that\'s not possible, it moves on to the next option in the order of provided priorities. Possible values: * **regular**: For normal, low-value transactions. * **fast**: Faster way to transfer funds but has higher fees. Recommended for high-priority, low-value transactions. * **wire**: Fastest way to transfer funds but has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: Instant way to transfer funds in [SEPA countries](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: High-value transfer to a recipient in a different country. * **internal**: Transfer to an Adyen-issued business bank account (by bank account number/IBAN). Set `category` to **bank**. For more details, see [optional priorities setup](https://docs.adyen.com/marketplaces-and-platforms/payout-to-users/scheduled-payouts#optional-priorities-setup). + */ + 'priorities'?: Array; + /** + * The reason for disabling the sweep. + */ + 'reason'?: UpdateSweepConfigurationV2.ReasonEnum; + 'schedule'?: SweepSchedule; + /** + * 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; + /** + * 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. + */ + 'type'?: UpdateSweepConfigurationV2.TypeEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "category", + "baseName": "category", + "type": "UpdateSweepConfigurationV2.CategoryEnum" + }, + { + "name": "counterparty", + "baseName": "counterparty", + "type": "SweepCounterparty" + }, + { + "name": "currency", + "baseName": "currency", + "type": "string" + }, + { + "name": "description", + "baseName": "description", + "type": "string" + }, + { + "name": "id", + "baseName": "id", + "type": "string" + }, + { + "name": "priorities", + "baseName": "priorities", + "type": "Array" + }, + { + "name": "reason", + "baseName": "reason", + "type": "UpdateSweepConfigurationV2.ReasonEnum" + }, + { + "name": "schedule", + "baseName": "schedule", + "type": "SweepSchedule" + }, + { + "name": "status", + "baseName": "status", + "type": "UpdateSweepConfigurationV2.StatusEnum" + }, + { + "name": "sweepAmount", + "baseName": "sweepAmount", + "type": "Amount" + }, + { + "name": "targetAmount", + "baseName": "targetAmount", + "type": "Amount" + }, + { + "name": "triggerAmount", + "baseName": "triggerAmount", + "type": "Amount" + }, + { + "name": "type", + "baseName": "type", + "type": "UpdateSweepConfigurationV2.TypeEnum" + } ]; + + static getAttributeTypeMap() { + return UpdateSweepConfigurationV2.attributeTypeMap; + } +} + +export namespace UpdateSweepConfigurationV2 { + export enum CategoryEnum { + Bank = 'bank', + Internal = 'internal', + PlatformPayment = 'platformPayment' + } + export enum PrioritiesEnum { + CrossBorder = 'crossBorder', + DirectDebit = 'directDebit', + Fast = 'fast', + Instant = 'instant', + Internal = 'internal', + Regular = 'regular', + Wire = 'wire' + } + export enum ReasonEnum { + AmountLimitExceeded = 'amountLimitExceeded', + Approved = 'approved', + CounterpartyAccountBlocked = 'counterpartyAccountBlocked', + CounterpartyAccountClosed = 'counterpartyAccountClosed', + CounterpartyAccountNotFound = 'counterpartyAccountNotFound', + CounterpartyAddressRequired = 'counterpartyAddressRequired', + CounterpartyBankTimedOut = 'counterpartyBankTimedOut', + CounterpartyBankUnavailable = 'counterpartyBankUnavailable', + Error = 'error', + NotEnoughBalance = 'notEnoughBalance', + RefusedByCounterpartyBank = 'refusedByCounterpartyBank', + RouteNotFound = 'routeNotFound', + Unknown = 'unknown' + } + export enum StatusEnum { + Active = 'active', + Inactive = 'inactive' + } + export enum TypeEnum { + Pull = 'pull', + Push = 'push' + } +} diff --git a/src/typings/balancePlatform/verificationDeadline.ts b/src/typings/balancePlatform/verificationDeadline.ts index 0dbf4a9c3..d54a1399f 100644 --- a/src/typings/balancePlatform/verificationDeadline.ts +++ b/src/typings/balancePlatform/verificationDeadline.ts @@ -14,6 +14,10 @@ export class VerificationDeadline { */ 'capabilities': Array; /** + * The unique identifiers of the bank account(s) that the deadline applies to + */ + 'entityIds'?: Array; + /** * The date that verification is due by before capabilities are disallowed. */ 'expiresAt': Date; @@ -26,6 +30,11 @@ export class VerificationDeadline { "baseName": "capabilities", "type": "Array" }, + { + "name": "entityIds", + "baseName": "entityIds", + "type": "Array" + }, { "name": "expiresAt", "baseName": "expiresAt", diff --git a/src/typings/transfers/bRLocalAccountIdentification.ts b/src/typings/transfers/bRLocalAccountIdentification.ts index 29af1e42d..459cfcbc7 100644 --- a/src/typings/transfers/bRLocalAccountIdentification.ts +++ b/src/typings/transfers/bRLocalAccountIdentification.ts @@ -10,15 +10,15 @@ export class BRLocalAccountIdentification { /** - * The bank account number (without separators or whitespace). + * The bank account number, without separators or whitespace. */ 'accountNumber': string; /** - * The 3-digit Brazilian bank code (with leading zeros). + * The 3-digit bank code, with leading zeros. */ 'bankCode': string; /** - * The bank account branch number (without separators or whitespace). + * The bank account branch number, without separators or whitespace. */ 'branchNumber': string; /** diff --git a/src/typings/transfers/bankAccountV3.ts b/src/typings/transfers/bankAccountV3.ts index 5563ffc2b..d8fb31967 100644 --- a/src/typings/transfers/bankAccountV3.ts +++ b/src/typings/transfers/bankAccountV3.ts @@ -12,6 +12,7 @@ import { BRLocalAccountIdentification } from './bRLocalAccountIdentification'; import { CALocalAccountIdentification } from './cALocalAccountIdentification'; import { CZLocalAccountIdentification } from './cZLocalAccountIdentification'; import { DKLocalAccountIdentification } from './dKLocalAccountIdentification'; +import { HKLocalAccountIdentification } from './hKLocalAccountIdentification'; import { HULocalAccountIdentification } from './hULocalAccountIdentification'; import { IbanAccountIdentification } from './ibanAccountIdentification'; import { NOLocalAccountIdentification } from './nOLocalAccountIdentification'; @@ -29,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 | HULocalAccountIdentification | IbanAccountIdentification | NOLocalAccountIdentification | NZLocalAccountIdentification | NumberAndBicAccountIdentification | PLLocalAccountIdentification | SELocalAccountIdentification | SGLocalAccountIdentification | UKLocalAccountIdentification | USLocalAccountIdentification; + 'accountIdentification': AULocalAccountIdentification | BRLocalAccountIdentification | CALocalAccountIdentification | CZLocalAccountIdentification | DKLocalAccountIdentification | HKLocalAccountIdentification | HULocalAccountIdentification | IbanAccountIdentification | NOLocalAccountIdentification | NZLocalAccountIdentification | NumberAndBicAccountIdentification | PLLocalAccountIdentification | SELocalAccountIdentification | SGLocalAccountIdentification | UKLocalAccountIdentification | USLocalAccountIdentification; static discriminator: string | undefined = undefined; @@ -42,7 +43,7 @@ export class BankAccountV3 { { "name": "accountIdentification", "baseName": "accountIdentification", - "type": "AULocalAccountIdentification | BRLocalAccountIdentification | CALocalAccountIdentification | CZLocalAccountIdentification | DKLocalAccountIdentification | HULocalAccountIdentification | IbanAccountIdentification | NOLocalAccountIdentification | NZLocalAccountIdentification | NumberAndBicAccountIdentification | PLLocalAccountIdentification | SELocalAccountIdentification | SGLocalAccountIdentification | UKLocalAccountIdentification | USLocalAccountIdentification" + "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/hKLocalAccountIdentification.ts b/src/typings/transfers/hKLocalAccountIdentification.ts new file mode 100644 index 000000000..d6a0826a7 --- /dev/null +++ b/src/typings/transfers/hKLocalAccountIdentification.ts @@ -0,0 +1,53 @@ +/* + * The version of the OpenAPI document: v3 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class HKLocalAccountIdentification { + /** + * The 6- to 19-character bank account number (alphanumeric), without separators or whitespace. + */ + 'accountNumber': string; + /** + * The 6-digit bank code including the 3-digit bank code and 3-digit branch code, without separators or whitespace. + */ + 'bankCode': string; + /** + * **hkLocal** + */ + 'type': HKLocalAccountIdentification.TypeEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "accountNumber", + "baseName": "accountNumber", + "type": "string" + }, + { + "name": "bankCode", + "baseName": "bankCode", + "type": "string" + }, + { + "name": "type", + "baseName": "type", + "type": "HKLocalAccountIdentification.TypeEnum" + } ]; + + static getAttributeTypeMap() { + return HKLocalAccountIdentification.attributeTypeMap; + } +} + +export namespace HKLocalAccountIdentification { + export enum TypeEnum { + HkLocal = 'hkLocal' + } +} diff --git a/src/typings/transfers/models.ts b/src/typings/transfers/models.ts index 78c1318c3..a055ef8e6 100644 --- a/src/typings/transfers/models.ts +++ b/src/typings/transfers/models.ts @@ -25,6 +25,7 @@ export * from './counterpartyInfoV3'; export * from './counterpartyV3'; export * from './dKLocalAccountIdentification'; export * from './fee'; +export * from './hKLocalAccountIdentification'; export * from './hULocalAccountIdentification'; export * from './ibanAccountIdentification'; export * from './invalidField'; @@ -73,6 +74,7 @@ import { CounterpartyInfoV3 } from './counterpartyInfoV3'; import { CounterpartyV3 } from './counterpartyV3'; import { DKLocalAccountIdentification } from './dKLocalAccountIdentification'; import { Fee } from './fee'; +import { HKLocalAccountIdentification } from './hKLocalAccountIdentification'; import { HULocalAccountIdentification } from './hULocalAccountIdentification'; import { IbanAccountIdentification } from './ibanAccountIdentification'; import { InvalidField } from './invalidField'; @@ -124,6 +126,7 @@ let enumsMap: {[index: string]: any} = { "CZLocalAccountIdentification.TypeEnum": CZLocalAccountIdentification.TypeEnum, "CapitalGrant.StatusEnum": CapitalGrant.StatusEnum, "DKLocalAccountIdentification.TypeEnum": DKLocalAccountIdentification.TypeEnum, + "HKLocalAccountIdentification.TypeEnum": HKLocalAccountIdentification.TypeEnum, "HULocalAccountIdentification.TypeEnum": HULocalAccountIdentification.TypeEnum, "IbanAccountIdentification.TypeEnum": IbanAccountIdentification.TypeEnum, "NOLocalAccountIdentification.TypeEnum": NOLocalAccountIdentification.TypeEnum, @@ -167,6 +170,7 @@ let typeMap: {[index: string]: any} = { "CounterpartyV3": CounterpartyV3, "DKLocalAccountIdentification": DKLocalAccountIdentification, "Fee": Fee, + "HKLocalAccountIdentification": HKLocalAccountIdentification, "HULocalAccountIdentification": HULocalAccountIdentification, "IbanAccountIdentification": IbanAccountIdentification, "InvalidField": InvalidField, diff --git a/src/typings/transfers/transaction.ts b/src/typings/transfers/transaction.ts index 2cccc464e..9bdb259de 100644 --- a/src/typings/transfers/transaction.ts +++ b/src/typings/transfers/transaction.ts @@ -38,10 +38,18 @@ export class Transaction { */ 'createdAt': Date; /** + * The date and time when the event was triggered, in ISO 8601 extended format. For example, **2020-12-18T10:15:30+01:00**. + */ + 'creationDate'?: Date; + /** * The `description` from the `/transfers` request. */ 'description'?: string; /** + * The PSP reference in the journal. + */ + 'eventId'?: string; + /** * Unique identifier of the transaction. */ 'id': string; @@ -118,11 +126,21 @@ export class Transaction { "baseName": "createdAt", "type": "Date" }, + { + "name": "creationDate", + "baseName": "creationDate", + "type": "Date" + }, { "name": "description", "baseName": "description", "type": "string" }, + { + "name": "eventId", + "baseName": "eventId", + "type": "string" + }, { "name": "id", "baseName": "id", diff --git a/src/typings/transfers/transfer.ts b/src/typings/transfers/transfer.ts index 55fe5ba4d..a2787b660 100644 --- a/src/typings/transfers/transfer.ts +++ b/src/typings/transfers/transfer.ts @@ -246,6 +246,10 @@ export namespace Transfer { MerchantPayinReversedPending = 'merchantPayinReversedPending', MiscCost = 'miscCost', MiscCostPending = 'miscCostPending', + OperationAuthorized = 'operationAuthorized', + OperationBooked = 'operationBooked', + OperationPending = 'operationPending', + OperationReceived = 'operationReceived', PaymentCost = 'paymentCost', PaymentCostPending = 'paymentCostPending', Received = 'received', From 7af23e74c484881d20584168ce7a2230622aa8d3 Mon Sep 17 00:00:00 2001 From: Alexandros Moraitis Date: Tue, 15 Aug 2023 08:29:57 +0000 Subject: [PATCH 2/2] fix unit test for balance platforms --- src/__tests__/balancePlatform.spec.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/__tests__/balancePlatform.spec.ts b/src/__tests__/balancePlatform.spec.ts index 8b66c7003..e2d8e1245 100644 --- a/src/__tests__/balancePlatform.spec.ts +++ b/src/__tests__/balancePlatform.spec.ts @@ -348,7 +348,7 @@ describe("Balance Platform", (): void => { "status": balancePlatform.SweepConfigurationV2.StatusEnum.Inactive, "currency": "EUR", "schedule": { - "type": balancePlatform.CronSweepSchedule.TypeEnum.Cron + "type": balancePlatform.SweepSchedule.TypeEnum.Cron } };