diff --git a/src/__mocks__/legalEntityManagement/responses.ts b/src/__mocks__/legalEntityManagement/responses.ts index 4e0c20ff8..6f95d3451 100644 --- a/src/__mocks__/legalEntityManagement/responses.ts +++ b/src/__mocks__/legalEntityManagement/responses.ts @@ -1,17 +1,19 @@ export const businessLine = { - "capability": "receivePayments", - "id": "123456789", - "industryCode": "123456789", - "legalEntityId": "123456789", - "salesChannels": ["string"], - "sourceOfFunds": { - "acquiringBusinessLineId": "string", - "adyenProcessedFunds": false, - "description": "string", - "type": "business" - }, - "webData": [{ "webAddress": "string" }], - "webDataExemption": { "reason": "noOnlinePresence" } + "service": "banking", + "industryCode": "4531", + "legalEntityId": "LE00000000000000000000001", + "sourceOfFunds": { + "adyenProcessedFunds": false, + "description": "Funds from my flower shop business", + "type": "business" + }, + "webData": [ + { + "webAddress": "https://www.adyen.com", + "webAddressId": "SE322JV223222J5H8V87B3DHN" + } + ], + "id": "SE322KH223222F5GV2SQ924F6" }; export const document = { @@ -235,21 +237,25 @@ export const legalEntityUnknownEnum = { }; export const businessLines = { - "businessLines": [{ - "capability": "receivePayments", - "id": "123456789", - "industryCode": "123456789", - "legalEntityId": "123456789", - "salesChannels": ["string"], - "sourceOfFunds": { - "acquiringBusinessLineId": "string", - "adyenProcessedFunds": false, - "description": "string", - "type": "business" - }, - "webData": [{ "webAddress": "string" }], - "webDataExemption": { "reason": "noOnlinePresence" } - }] + "businessLines": [ + businessLine, + { + "service": "paymentProcessing", + "industryCode": "339E", + "legalEntityId": "LE00000000000000000000001", + "salesChannels": [ + "eCommerce", + "ecomMoto" + ], + "webData": [ + { + "webAddress": "https://yoururl.com", + "webAddressId": "SE908HJ723222F5GVGPNR55YH" + } + ], + "id": "SE322JV223222F5GVGPNRB9GJ" + } + ] }; export const transferInstrument = { diff --git a/src/__tests__/legalEntityManagement.spec.ts b/src/__tests__/legalEntityManagement.spec.ts index edbd341ea..177f6c47e 100644 --- a/src/__tests__/legalEntityManagement.spec.ts +++ b/src/__tests__/legalEntityManagement.spec.ts @@ -33,7 +33,7 @@ beforeEach((): void => { nock.activate(); } client = createClient(); - scope = nock("https://kyc-test.adyen.com/lem/v3"); + scope = nock("https://kyc-test.adyen.com/lem/v4"); legalEntityManagement = new LegalEntityManagementAPI(client); }); @@ -115,21 +115,11 @@ describe("Legal Entity Management", (): void => { const response: models.BusinessLines = await legalEntityManagement.LegalEntitiesApi.getAllBusinessLinesUnderLegalEntity(id); - expect(response.businessLines).toEqual( [{ - "capability": "receivePayments", - "id": "123456789", - "industryCode": "123456789", - "legalEntityId": "123456789", - "salesChannels": ["string"], - "sourceOfFunds": { - "acquiringBusinessLineId": "string", - "adyenProcessedFunds": false, - "description": "string", - "type": "business" - }, - "webData": [{ "webAddress": "string" }], - "webDataExemption": { "reason": "noOnlinePresence" } - }]); + expect(response.businessLines.length).toBe(2); + expect(response.businessLines[0]).toBeTruthy; + expect(response.businessLines[0].id).toBe("SE322KH223222F5GV2SQ924F6"); + expect(response.businessLines[0].industryCode).toBe("4531"); + expect(response.businessLines[0].sourceOfFunds?.adyenProcessedFunds).toBe(false); }); }); @@ -207,7 +197,6 @@ describe("Legal Entity Management", (): void => { .reply(200, businessLine); const request: models.BusinessLineInfo = { - capability: models.BusinessLineInfo.CapabilityEnum.ReceivePayments, industryCode: id, legalEntityId: id, service: models.BusinessLine.ServiceEnum.Banking @@ -215,10 +204,9 @@ describe("Legal Entity Management", (): void => { const response: models.BusinessLine = await legalEntityManagement.BusinessLinesApi.createBusinessLine(request); - expect(response.id).toBe(id); - expect(response.capability).toBe(models.BusinessLineInfo.CapabilityEnum.ReceivePayments); - expect(response.industryCode).toBe(id); - expect(response.legalEntityId).toBe(id); + expect(response.id).toBe("SE322KH223222F5GV2SQ924F6"); + expect(response.industryCode).toBe("4531"); + expect(response.legalEntityId).toBe("LE00000000000000000000001"); }); it("should support GET /businessLines/{id}", async (): Promise => { @@ -227,8 +215,8 @@ describe("Legal Entity Management", (): void => { const response: models.BusinessLine = await legalEntityManagement.BusinessLinesApi.getBusinessLine(id); - expect(response.id).toBe(id); - expect(response.capability).toBe("receivePayments"); + expect(response.id).toBe("SE322KH223222F5GV2SQ924F6"); + expect(response.service).toBe("banking"); }); it("should support PATCH /businessLines/{id}", async (): Promise => { @@ -236,7 +224,6 @@ describe("Legal Entity Management", (): void => { .reply(200, businessLine); const request: models.BusinessLineInfo = { - capability: models.BusinessLineInfo.CapabilityEnum.ReceivePayments, industryCode: id, service: models.BusinessLine.ServiceEnum.Banking, legalEntityId: id @@ -244,10 +231,9 @@ describe("Legal Entity Management", (): void => { const response: models.BusinessLine = await legalEntityManagement.BusinessLinesApi.updateBusinessLine(id, request); - expect(response.id).toBe(id); - expect(response.capability).toBe(models.BusinessLineInfo.CapabilityEnum.ReceivePayments); - expect(response.industryCode).toBe(id); - expect(response.legalEntityId).toBe(id); + expect(response.id).toBe("SE322KH223222F5GV2SQ924F6"); + expect(response.industryCode).toBe("4531"); + expect(response.legalEntityId).toBe("LE00000000000000000000001"); }); }); diff --git a/src/services/legalEntityManagement/businessLinesApi.ts b/src/services/legalEntityManagement/businessLinesApi.ts index fb9a9e5cf..9d9f1713a 100644 --- a/src/services/legalEntityManagement/businessLinesApi.ts +++ b/src/services/legalEntityManagement/businessLinesApi.ts @@ -1,5 +1,5 @@ /* - * The version of the OpenAPI document: v3 + * The version of the OpenAPI document: v4 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -24,7 +24,7 @@ import { BusinessLineInfoUpdate } from "../../typings/legalEntityManagement/mode */ export class BusinessLinesApi extends Service { - private readonly API_BASEPATH: string = "https://kyc-test.adyen.com/lem/v3"; + private readonly API_BASEPATH: string = "https://kyc-test.adyen.com/lem/v4"; private baseUrl: string; public constructor(client: Client){ diff --git a/src/services/legalEntityManagement/documentsApi.ts b/src/services/legalEntityManagement/documentsApi.ts index 064290fb7..2b77b939f 100644 --- a/src/services/legalEntityManagement/documentsApi.ts +++ b/src/services/legalEntityManagement/documentsApi.ts @@ -1,5 +1,5 @@ /* - * The version of the OpenAPI document: v3 + * The version of the OpenAPI document: v4 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -22,7 +22,7 @@ import { Document } from "../../typings/legalEntityManagement/models"; */ export class DocumentsApi extends Service { - private readonly API_BASEPATH: string = "https://kyc-test.adyen.com/lem/v3"; + private readonly API_BASEPATH: string = "https://kyc-test.adyen.com/lem/v4"; private baseUrl: string; public constructor(client: Client){ diff --git a/src/services/legalEntityManagement/hostedOnboardingApi.ts b/src/services/legalEntityManagement/hostedOnboardingApi.ts index ad88a1e84..7c52bc63d 100644 --- a/src/services/legalEntityManagement/hostedOnboardingApi.ts +++ b/src/services/legalEntityManagement/hostedOnboardingApi.ts @@ -1,5 +1,5 @@ /* - * The version of the OpenAPI document: v3 + * The version of the OpenAPI document: v4 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -25,7 +25,7 @@ import { OnboardingThemes } from "../../typings/legalEntityManagement/models"; */ export class HostedOnboardingApi extends Service { - private readonly API_BASEPATH: string = "https://kyc-test.adyen.com/lem/v3"; + private readonly API_BASEPATH: string = "https://kyc-test.adyen.com/lem/v4"; private baseUrl: string; public constructor(client: Client){ diff --git a/src/services/legalEntityManagement/index.ts b/src/services/legalEntityManagement/index.ts index 7b900d2ad..edb8e6984 100644 --- a/src/services/legalEntityManagement/index.ts +++ b/src/services/legalEntityManagement/index.ts @@ -1,5 +1,5 @@ /* - * The version of the OpenAPI document: v3 + * The version of the OpenAPI document: v4 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/services/legalEntityManagement/legalEntitiesApi.ts b/src/services/legalEntityManagement/legalEntitiesApi.ts index 9948a00e2..05866b989 100644 --- a/src/services/legalEntityManagement/legalEntitiesApi.ts +++ b/src/services/legalEntityManagement/legalEntitiesApi.ts @@ -1,5 +1,5 @@ /* - * The version of the OpenAPI document: v3 + * The version of the OpenAPI document: v4 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -27,7 +27,7 @@ import { VerificationErrors } from "../../typings/legalEntityManagement/models"; */ export class LegalEntitiesApi extends Service { - private readonly API_BASEPATH: string = "https://kyc-test.adyen.com/lem/v3"; + private readonly API_BASEPATH: string = "https://kyc-test.adyen.com/lem/v4"; private baseUrl: string; public constructor(client: Client){ diff --git a/src/services/legalEntityManagement/pCIQuestionnairesApi.ts b/src/services/legalEntityManagement/pCIQuestionnairesApi.ts index 04df88f5b..38c01faa4 100644 --- a/src/services/legalEntityManagement/pCIQuestionnairesApi.ts +++ b/src/services/legalEntityManagement/pCIQuestionnairesApi.ts @@ -1,5 +1,5 @@ /* - * The version of the OpenAPI document: v3 + * The version of the OpenAPI document: v4 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -29,7 +29,7 @@ import { PciSigningResponse } from "../../typings/legalEntityManagement/models"; */ export class PCIQuestionnairesApi extends Service { - private readonly API_BASEPATH: string = "https://kyc-test.adyen.com/lem/v3"; + private readonly API_BASEPATH: string = "https://kyc-test.adyen.com/lem/v4"; private baseUrl: string; public constructor(client: Client){ diff --git a/src/services/legalEntityManagement/taxEDeliveryConsentApi.ts b/src/services/legalEntityManagement/taxEDeliveryConsentApi.ts index 55d2fa4b0..092cd7c1b 100644 --- a/src/services/legalEntityManagement/taxEDeliveryConsentApi.ts +++ b/src/services/legalEntityManagement/taxEDeliveryConsentApi.ts @@ -1,5 +1,5 @@ /* - * The version of the OpenAPI document: v3 + * The version of the OpenAPI document: v4 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -23,7 +23,7 @@ import { SetTaxElectronicDeliveryConsentRequest } from "../../typings/legalEntit */ export class TaxEDeliveryConsentApi extends Service { - private readonly API_BASEPATH: string = "https://kyc-test.adyen.com/lem/v3"; + private readonly API_BASEPATH: string = "https://kyc-test.adyen.com/lem/v4"; private baseUrl: string; public constructor(client: Client){ diff --git a/src/services/legalEntityManagement/termsOfServiceApi.ts b/src/services/legalEntityManagement/termsOfServiceApi.ts index bb9e5078b..fdba882c1 100644 --- a/src/services/legalEntityManagement/termsOfServiceApi.ts +++ b/src/services/legalEntityManagement/termsOfServiceApi.ts @@ -1,5 +1,5 @@ /* - * The version of the OpenAPI document: v3 + * The version of the OpenAPI document: v4 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -28,7 +28,7 @@ import { GetTermsOfServiceDocumentResponse } from "../../typings/legalEntityMana */ export class TermsOfServiceApi extends Service { - private readonly API_BASEPATH: string = "https://kyc-test.adyen.com/lem/v3"; + private readonly API_BASEPATH: string = "https://kyc-test.adyen.com/lem/v4"; private baseUrl: string; public constructor(client: Client){ diff --git a/src/services/legalEntityManagement/transferInstrumentsApi.ts b/src/services/legalEntityManagement/transferInstrumentsApi.ts index bb67e4173..fa08dc974 100644 --- a/src/services/legalEntityManagement/transferInstrumentsApi.ts +++ b/src/services/legalEntityManagement/transferInstrumentsApi.ts @@ -1,5 +1,5 @@ /* - * The version of the OpenAPI document: v3 + * The version of the OpenAPI document: v4 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -23,7 +23,7 @@ import { TransferInstrumentInfo } from "../../typings/legalEntityManagement/mode */ export class TransferInstrumentsApi extends Service { - private readonly API_BASEPATH: string = "https://kyc-test.adyen.com/lem/v3"; + private readonly API_BASEPATH: string = "https://kyc-test.adyen.com/lem/v4"; private baseUrl: string; public constructor(client: Client){ diff --git a/src/typings/legalEntityManagement/aULocalAccountIdentification.ts b/src/typings/legalEntityManagement/aULocalAccountIdentification.ts index c3477804d..b50f7d664 100644 --- a/src/typings/legalEntityManagement/aULocalAccountIdentification.ts +++ b/src/typings/legalEntityManagement/aULocalAccountIdentification.ts @@ -1,5 +1,5 @@ /* - * The version of the OpenAPI document: v3 + * The version of the OpenAPI document: v4 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/typings/legalEntityManagement/acceptTermsOfServiceRequest.ts b/src/typings/legalEntityManagement/acceptTermsOfServiceRequest.ts index 58eccb3d7..611de063e 100644 --- a/src/typings/legalEntityManagement/acceptTermsOfServiceRequest.ts +++ b/src/typings/legalEntityManagement/acceptTermsOfServiceRequest.ts @@ -1,5 +1,5 @@ /* - * The version of the OpenAPI document: v3 + * The version of the OpenAPI document: v4 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/typings/legalEntityManagement/acceptTermsOfServiceResponse.ts b/src/typings/legalEntityManagement/acceptTermsOfServiceResponse.ts index f729981d4..f0554c637 100644 --- a/src/typings/legalEntityManagement/acceptTermsOfServiceResponse.ts +++ b/src/typings/legalEntityManagement/acceptTermsOfServiceResponse.ts @@ -1,5 +1,5 @@ /* - * The version of the OpenAPI document: v3 + * The version of the OpenAPI document: v4 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/typings/legalEntityManagement/additionalBankIdentification.ts b/src/typings/legalEntityManagement/additionalBankIdentification.ts index 77446af42..c4f5bf11e 100644 --- a/src/typings/legalEntityManagement/additionalBankIdentification.ts +++ b/src/typings/legalEntityManagement/additionalBankIdentification.ts @@ -1,5 +1,5 @@ /* - * The version of the OpenAPI document: v3 + * The version of the OpenAPI document: v4 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/typings/legalEntityManagement/address.ts b/src/typings/legalEntityManagement/address.ts index 235592230..6bd5ff53b 100644 --- a/src/typings/legalEntityManagement/address.ts +++ b/src/typings/legalEntityManagement/address.ts @@ -1,5 +1,5 @@ /* - * The version of the OpenAPI document: v3 + * The version of the OpenAPI document: v4 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/typings/legalEntityManagement/amount.ts b/src/typings/legalEntityManagement/amount.ts index af1cf5255..75f484e17 100644 --- a/src/typings/legalEntityManagement/amount.ts +++ b/src/typings/legalEntityManagement/amount.ts @@ -1,5 +1,5 @@ /* - * The version of the OpenAPI document: v3 + * The version of the OpenAPI document: v4 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/typings/legalEntityManagement/attachment.ts b/src/typings/legalEntityManagement/attachment.ts index 5e4bd931d..a565e6eb0 100644 --- a/src/typings/legalEntityManagement/attachment.ts +++ b/src/typings/legalEntityManagement/attachment.ts @@ -1,5 +1,5 @@ /* - * The version of the OpenAPI document: v3 + * The version of the OpenAPI document: v4 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/typings/legalEntityManagement/bankAccountInfo.ts b/src/typings/legalEntityManagement/bankAccountInfo.ts index e3e8fbf40..8701405d3 100644 --- a/src/typings/legalEntityManagement/bankAccountInfo.ts +++ b/src/typings/legalEntityManagement/bankAccountInfo.ts @@ -1,5 +1,5 @@ /* - * The version of the OpenAPI document: v3 + * The version of the OpenAPI document: v4 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/typings/legalEntityManagement/bankAccountInfoAccountIdentification.ts b/src/typings/legalEntityManagement/bankAccountInfoAccountIdentification.ts index ea3a30e7e..b7a974f12 100644 --- a/src/typings/legalEntityManagement/bankAccountInfoAccountIdentification.ts +++ b/src/typings/legalEntityManagement/bankAccountInfoAccountIdentification.ts @@ -1,5 +1,5 @@ /* - * The version of the OpenAPI document: v3 + * The version of the OpenAPI document: v4 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/typings/legalEntityManagement/birthData.ts b/src/typings/legalEntityManagement/birthData.ts index 438716276..9856f59b7 100644 --- a/src/typings/legalEntityManagement/birthData.ts +++ b/src/typings/legalEntityManagement/birthData.ts @@ -1,5 +1,5 @@ /* - * The version of the OpenAPI document: v3 + * The version of the OpenAPI document: v4 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/typings/legalEntityManagement/businessLine.ts b/src/typings/legalEntityManagement/businessLine.ts index 2476b63cc..0b24790a5 100644 --- a/src/typings/legalEntityManagement/businessLine.ts +++ b/src/typings/legalEntityManagement/businessLine.ts @@ -1,5 +1,5 @@ /* - * The version of the OpenAPI document: v3 + * The version of the OpenAPI document: v4 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -14,13 +14,6 @@ import { WebDataExemption } from "./webDataExemption"; export class BusinessLine { - /** - * The capability for which you are creating the business line. Possible values: **receivePayments**, **receiveFromPlatformPayments**, **issueBankAccount** - * - * @deprecated since Legal Entity Management API v3 - * Use `service` instead. - */ - "capability"?: BusinessLine.CapabilityEnum; /** * The unique identifier of the business line. */ @@ -42,7 +35,7 @@ export class BusinessLine { */ "salesChannels"?: Array; /** - * The service for which you are creating the business line. Possible values: * **paymentProcessing** * **banking** + * The service for which you are creating the business line. Possible values: * **paymentProcessing** * **issuing** * **banking** */ "service": BusinessLine.ServiceEnum; "sourceOfFunds"?: SourceOfFunds | null; @@ -57,12 +50,6 @@ export class BusinessLine { static readonly mapping: {[index: string]: string} | undefined = undefined; static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ - { - "name": "capability", - "baseName": "capability", - "type": "BusinessLine.CapabilityEnum", - "format": "" - }, { "name": "id", "baseName": "id", @@ -127,13 +114,9 @@ export class BusinessLine { } export namespace BusinessLine { - export enum CapabilityEnum { - ReceivePayments = 'receivePayments', - ReceiveFromPlatformPayments = 'receiveFromPlatformPayments', - IssueBankAccount = 'issueBankAccount' - } export enum ServiceEnum { PaymentProcessing = 'paymentProcessing', + Issuing = 'issuing', Banking = 'banking' } } diff --git a/src/typings/legalEntityManagement/businessLineInfo.ts b/src/typings/legalEntityManagement/businessLineInfo.ts index 00beab89d..76d4482f2 100644 --- a/src/typings/legalEntityManagement/businessLineInfo.ts +++ b/src/typings/legalEntityManagement/businessLineInfo.ts @@ -1,5 +1,5 @@ /* - * The version of the OpenAPI document: v3 + * The version of the OpenAPI document: v4 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,13 +13,6 @@ import { WebDataExemption } from "./webDataExemption"; export class BusinessLineInfo { - /** - * The capability for which you are creating the business line. Possible values: **receivePayments**, **receiveFromPlatformPayments**, **issueBankAccount** - * - * @deprecated since Legal Entity Management API v3 - * Use `service` instead. - */ - "capability"?: BusinessLineInfo.CapabilityEnum; /** * A code that represents the industry of the legal entity for [marketplaces](https://docs.adyen.com/marketplaces/verification-requirements/reference-additional-products/#list-industry-codes) or [platforms](https://docs.adyen.com/platforms/verification-requirements/reference-additional-products/#list-industry-codes). For example, **4431A** for computer software stores. */ @@ -33,7 +26,7 @@ export class BusinessLineInfo { */ "salesChannels"?: Array; /** - * The service for which you are creating the business line. Possible values: * **paymentProcessing** * **banking** + * The service for which you are creating the business line. Possible values: * **paymentProcessing** * **issuing** * **banking** */ "service": BusinessLineInfo.ServiceEnum; "sourceOfFunds"?: SourceOfFunds | null; @@ -48,12 +41,6 @@ export class BusinessLineInfo { static readonly mapping: {[index: string]: string} | undefined = undefined; static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ - { - "name": "capability", - "baseName": "capability", - "type": "BusinessLineInfo.CapabilityEnum", - "format": "" - }, { "name": "industryCode", "baseName": "industryCode", @@ -106,13 +93,9 @@ export class BusinessLineInfo { } export namespace BusinessLineInfo { - export enum CapabilityEnum { - ReceivePayments = 'receivePayments', - ReceiveFromPlatformPayments = 'receiveFromPlatformPayments', - IssueBankAccount = 'issueBankAccount' - } export enum ServiceEnum { PaymentProcessing = 'paymentProcessing', + Issuing = 'issuing', Banking = 'banking' } } diff --git a/src/typings/legalEntityManagement/businessLineInfoUpdate.ts b/src/typings/legalEntityManagement/businessLineInfoUpdate.ts index bb3b0f58a..40fb24024 100644 --- a/src/typings/legalEntityManagement/businessLineInfoUpdate.ts +++ b/src/typings/legalEntityManagement/businessLineInfoUpdate.ts @@ -1,5 +1,5 @@ /* - * The version of the OpenAPI document: v3 + * The version of the OpenAPI document: v4 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/typings/legalEntityManagement/businessLines.ts b/src/typings/legalEntityManagement/businessLines.ts index 1754c8d64..824adad15 100644 --- a/src/typings/legalEntityManagement/businessLines.ts +++ b/src/typings/legalEntityManagement/businessLines.ts @@ -1,5 +1,5 @@ /* - * The version of the OpenAPI document: v3 + * The version of the OpenAPI document: v4 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/typings/legalEntityManagement/cALocalAccountIdentification.ts b/src/typings/legalEntityManagement/cALocalAccountIdentification.ts index b77883e97..5c0954c76 100644 --- a/src/typings/legalEntityManagement/cALocalAccountIdentification.ts +++ b/src/typings/legalEntityManagement/cALocalAccountIdentification.ts @@ -1,5 +1,5 @@ /* - * The version of the OpenAPI document: v3 + * The version of the OpenAPI document: v4 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/typings/legalEntityManagement/cZLocalAccountIdentification.ts b/src/typings/legalEntityManagement/cZLocalAccountIdentification.ts index 18f7602aa..d17d2f0a1 100644 --- a/src/typings/legalEntityManagement/cZLocalAccountIdentification.ts +++ b/src/typings/legalEntityManagement/cZLocalAccountIdentification.ts @@ -1,5 +1,5 @@ /* - * The version of the OpenAPI document: v3 + * The version of the OpenAPI document: v4 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/typings/legalEntityManagement/calculatePciStatusRequest.ts b/src/typings/legalEntityManagement/calculatePciStatusRequest.ts index ab055179e..abccae8f1 100644 --- a/src/typings/legalEntityManagement/calculatePciStatusRequest.ts +++ b/src/typings/legalEntityManagement/calculatePciStatusRequest.ts @@ -1,5 +1,5 @@ /* - * The version of the OpenAPI document: v3 + * The version of the OpenAPI document: v4 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/typings/legalEntityManagement/calculatePciStatusResponse.ts b/src/typings/legalEntityManagement/calculatePciStatusResponse.ts index 844d8dcf0..ab5773775 100644 --- a/src/typings/legalEntityManagement/calculatePciStatusResponse.ts +++ b/src/typings/legalEntityManagement/calculatePciStatusResponse.ts @@ -1,5 +1,5 @@ /* - * The version of the OpenAPI document: v3 + * The version of the OpenAPI document: v4 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/typings/legalEntityManagement/calculateTermsOfServiceStatusResponse.ts b/src/typings/legalEntityManagement/calculateTermsOfServiceStatusResponse.ts index 8d916e9e6..af1ef62b9 100644 --- a/src/typings/legalEntityManagement/calculateTermsOfServiceStatusResponse.ts +++ b/src/typings/legalEntityManagement/calculateTermsOfServiceStatusResponse.ts @@ -1,5 +1,5 @@ /* - * The version of the OpenAPI document: v3 + * The version of the OpenAPI document: v4 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/typings/legalEntityManagement/capabilityProblem.ts b/src/typings/legalEntityManagement/capabilityProblem.ts index 1b518026c..a486e3cdd 100644 --- a/src/typings/legalEntityManagement/capabilityProblem.ts +++ b/src/typings/legalEntityManagement/capabilityProblem.ts @@ -1,5 +1,5 @@ /* - * The version of the OpenAPI document: v3 + * The version of the OpenAPI document: v4 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/typings/legalEntityManagement/capabilityProblemEntity.ts b/src/typings/legalEntityManagement/capabilityProblemEntity.ts index da0c32ae3..7e459dc12 100644 --- a/src/typings/legalEntityManagement/capabilityProblemEntity.ts +++ b/src/typings/legalEntityManagement/capabilityProblemEntity.ts @@ -1,5 +1,5 @@ /* - * The version of the OpenAPI document: v3 + * The version of the OpenAPI document: v4 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/typings/legalEntityManagement/capabilityProblemEntityRecursive.ts b/src/typings/legalEntityManagement/capabilityProblemEntityRecursive.ts index 1c75d2037..6e8df7390 100644 --- a/src/typings/legalEntityManagement/capabilityProblemEntityRecursive.ts +++ b/src/typings/legalEntityManagement/capabilityProblemEntityRecursive.ts @@ -1,5 +1,5 @@ /* - * The version of the OpenAPI document: v3 + * The version of the OpenAPI document: v4 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/typings/legalEntityManagement/capabilitySettings.ts b/src/typings/legalEntityManagement/capabilitySettings.ts index b5ce3bb1a..386f0c475 100644 --- a/src/typings/legalEntityManagement/capabilitySettings.ts +++ b/src/typings/legalEntityManagement/capabilitySettings.ts @@ -1,5 +1,5 @@ /* - * The version of the OpenAPI document: v3 + * The version of the OpenAPI document: v4 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/typings/legalEntityManagement/checkTaxElectronicDeliveryConsentResponse.ts b/src/typings/legalEntityManagement/checkTaxElectronicDeliveryConsentResponse.ts index 6e1a07321..067ebc035 100644 --- a/src/typings/legalEntityManagement/checkTaxElectronicDeliveryConsentResponse.ts +++ b/src/typings/legalEntityManagement/checkTaxElectronicDeliveryConsentResponse.ts @@ -1,5 +1,5 @@ /* - * The version of the OpenAPI document: v3 + * The version of the OpenAPI document: v4 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/typings/legalEntityManagement/dKLocalAccountIdentification.ts b/src/typings/legalEntityManagement/dKLocalAccountIdentification.ts index 446a92493..88c961d73 100644 --- a/src/typings/legalEntityManagement/dKLocalAccountIdentification.ts +++ b/src/typings/legalEntityManagement/dKLocalAccountIdentification.ts @@ -1,5 +1,5 @@ /* - * The version of the OpenAPI document: v3 + * The version of the OpenAPI document: v4 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/typings/legalEntityManagement/dataReviewConfirmationResponse.ts b/src/typings/legalEntityManagement/dataReviewConfirmationResponse.ts index f61cd3a62..b275c1748 100644 --- a/src/typings/legalEntityManagement/dataReviewConfirmationResponse.ts +++ b/src/typings/legalEntityManagement/dataReviewConfirmationResponse.ts @@ -1,5 +1,5 @@ /* - * The version of the OpenAPI document: v3 + * The version of the OpenAPI document: v4 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/typings/legalEntityManagement/document.ts b/src/typings/legalEntityManagement/document.ts index 0acacb68c..c43a44891 100644 --- a/src/typings/legalEntityManagement/document.ts +++ b/src/typings/legalEntityManagement/document.ts @@ -1,5 +1,5 @@ /* - * The version of the OpenAPI document: v3 + * The version of the OpenAPI document: v4 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -61,7 +61,7 @@ export class Document { "number"?: string; "owner"?: OwnerEntity | null; /** - * Type of document, used when providing an ID number or uploading a document. The possible values depend on the legal entity type. * For **organization**, the `type` values can be **proofOfAddress**, **registrationDocument**, **vatDocument**, **proofOfOrganizationTaxInfo**, **proofOfOwnership**, **proofOfIndustry**, **proofOfSignatory**, or **proofOfFundingOrWealthSource**. * For **individual**, the `type` values can be **identityCard**, **driversLicense**, **passport**, **liveSelfie**, **proofOfNationalIdNumber**, **proofOfResidency**, **proofOfIndustry**, **proofOfIndividualTaxId**, **proofOfFundingOrWealthSource** or **proofOfRelationship**. * For **soleProprietorship**, the `type` values can be **constitutionalDocument**, **proofOfAddress**, or **proofOfIndustry**. * For **trust**, the `type` value is **constitutionalDocument**. * For **unincorporatedPartnership**, the `type` value is **constitutionalDocument**. * Use **bankStatement** to upload documents for a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). + * Type of document, used when providing an ID number or uploading a document. The possible values depend on the legal entity type. * For **organization**, the `type` values can be **proofOfAddress**, **registrationDocument**, **vatDocument**, **proofOfOrganizationTaxInfo**, **proofOfOwnership**, **proofOfIndustry**, **proofOfSignatory**, **proofOfDirector**, or **proofOfFundingOrWealthSource**. * For **individual**, the `type` values can be **identityCard**, **driversLicense**, **passport**, **liveSelfie**, **proofOfNationalIdNumber**, **proofOfResidency**, **proofOfIndustry**, **proofOfIndividualTaxId**, **proofOfFundingOrWealthSource** or **proofOfRelationship**. * For **soleProprietorship**, the `type` values can be **constitutionalDocument**, **proofOfAddress**, or **proofOfIndustry**. * For **trust**, the `type` value is **constitutionalDocument**. * For **unincorporatedPartnership**, the `type` value is **constitutionalDocument**. * Use **bankStatement** to upload documents for a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id). */ "type": Document.TypeEnum; @@ -177,6 +177,7 @@ export namespace Document { ProofOfIndustry = 'proofOfIndustry', ConstitutionalDocument = 'constitutionalDocument', ProofOfFundingOrWealthSource = 'proofOfFundingOrWealthSource', - ProofOfRelationship = 'proofOfRelationship' + ProofOfRelationship = 'proofOfRelationship', + ProofOfDirector = 'proofOfDirector' } } diff --git a/src/typings/legalEntityManagement/documentPage.ts b/src/typings/legalEntityManagement/documentPage.ts index 73ae89a7b..0f0270476 100644 --- a/src/typings/legalEntityManagement/documentPage.ts +++ b/src/typings/legalEntityManagement/documentPage.ts @@ -1,5 +1,5 @@ /* - * The version of the OpenAPI document: v3 + * The version of the OpenAPI document: v4 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/typings/legalEntityManagement/documentReference.ts b/src/typings/legalEntityManagement/documentReference.ts index 7fb981c0e..546549953 100644 --- a/src/typings/legalEntityManagement/documentReference.ts +++ b/src/typings/legalEntityManagement/documentReference.ts @@ -1,5 +1,5 @@ /* - * The version of the OpenAPI document: v3 + * The version of the OpenAPI document: v4 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/typings/legalEntityManagement/entityReference.ts b/src/typings/legalEntityManagement/entityReference.ts index bd4dbc0bf..d53e20186 100644 --- a/src/typings/legalEntityManagement/entityReference.ts +++ b/src/typings/legalEntityManagement/entityReference.ts @@ -1,5 +1,5 @@ /* - * The version of the OpenAPI document: v3 + * The version of the OpenAPI document: v4 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/typings/legalEntityManagement/financialReport.ts b/src/typings/legalEntityManagement/financialReport.ts index 848ed18c3..5411aa856 100644 --- a/src/typings/legalEntityManagement/financialReport.ts +++ b/src/typings/legalEntityManagement/financialReport.ts @@ -1,5 +1,5 @@ /* - * The version of the OpenAPI document: v3 + * The version of the OpenAPI document: v4 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/typings/legalEntityManagement/financier.ts b/src/typings/legalEntityManagement/financier.ts new file mode 100644 index 000000000..6c2533877 --- /dev/null +++ b/src/typings/legalEntityManagement/financier.ts @@ -0,0 +1,65 @@ +/* + * The version of the OpenAPI document: v4 + * + * + * 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"; + + +export class Financier { + "amount": Amount; + /** + * The financier\'s first name. + */ + "firstName": string; + /** + * The financier\'s last name. + */ + "lastName": string; + /** + * The location of the financier. + */ + "location": string; + + static readonly discriminator: string | undefined = undefined; + + static readonly mapping: {[index: string]: string} | undefined = undefined; + + static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + { + "name": "amount", + "baseName": "amount", + "type": "Amount", + "format": "" + }, + { + "name": "firstName", + "baseName": "firstName", + "type": "string", + "format": "" + }, + { + "name": "lastName", + "baseName": "lastName", + "type": "string", + "format": "" + }, + { + "name": "location", + "baseName": "location", + "type": "string", + "format": "" + } ]; + + static getAttributeTypeMap() { + return Financier.attributeTypeMap; + } + + public constructor() { + } +} + diff --git a/src/typings/legalEntityManagement/generatePciDescriptionRequest.ts b/src/typings/legalEntityManagement/generatePciDescriptionRequest.ts index 689446147..2787c0bd2 100644 --- a/src/typings/legalEntityManagement/generatePciDescriptionRequest.ts +++ b/src/typings/legalEntityManagement/generatePciDescriptionRequest.ts @@ -1,5 +1,5 @@ /* - * The version of the OpenAPI document: v3 + * The version of the OpenAPI document: v4 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/typings/legalEntityManagement/generatePciDescriptionResponse.ts b/src/typings/legalEntityManagement/generatePciDescriptionResponse.ts index 9abc9bfce..acc485da8 100644 --- a/src/typings/legalEntityManagement/generatePciDescriptionResponse.ts +++ b/src/typings/legalEntityManagement/generatePciDescriptionResponse.ts @@ -1,5 +1,5 @@ /* - * The version of the OpenAPI document: v3 + * The version of the OpenAPI document: v4 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/typings/legalEntityManagement/getAcceptedTermsOfServiceDocumentResponse.ts b/src/typings/legalEntityManagement/getAcceptedTermsOfServiceDocumentResponse.ts index 9a97584b5..e5fd7c4ce 100644 --- a/src/typings/legalEntityManagement/getAcceptedTermsOfServiceDocumentResponse.ts +++ b/src/typings/legalEntityManagement/getAcceptedTermsOfServiceDocumentResponse.ts @@ -1,5 +1,5 @@ /* - * The version of the OpenAPI document: v3 + * The version of the OpenAPI document: v4 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/typings/legalEntityManagement/getPciQuestionnaireInfosResponse.ts b/src/typings/legalEntityManagement/getPciQuestionnaireInfosResponse.ts index 3ed31f971..e85d4d931 100644 --- a/src/typings/legalEntityManagement/getPciQuestionnaireInfosResponse.ts +++ b/src/typings/legalEntityManagement/getPciQuestionnaireInfosResponse.ts @@ -1,5 +1,5 @@ /* - * The version of the OpenAPI document: v3 + * The version of the OpenAPI document: v4 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/typings/legalEntityManagement/getPciQuestionnaireResponse.ts b/src/typings/legalEntityManagement/getPciQuestionnaireResponse.ts index 30037f9b7..5ed61e90b 100644 --- a/src/typings/legalEntityManagement/getPciQuestionnaireResponse.ts +++ b/src/typings/legalEntityManagement/getPciQuestionnaireResponse.ts @@ -1,5 +1,5 @@ /* - * The version of the OpenAPI document: v3 + * The version of the OpenAPI document: v4 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/typings/legalEntityManagement/getTermsOfServiceAcceptanceInfosResponse.ts b/src/typings/legalEntityManagement/getTermsOfServiceAcceptanceInfosResponse.ts index 2360fa69d..1fbd37b36 100644 --- a/src/typings/legalEntityManagement/getTermsOfServiceAcceptanceInfosResponse.ts +++ b/src/typings/legalEntityManagement/getTermsOfServiceAcceptanceInfosResponse.ts @@ -1,5 +1,5 @@ /* - * The version of the OpenAPI document: v3 + * The version of the OpenAPI document: v4 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/typings/legalEntityManagement/getTermsOfServiceDocumentRequest.ts b/src/typings/legalEntityManagement/getTermsOfServiceDocumentRequest.ts index cb715ffdd..549581652 100644 --- a/src/typings/legalEntityManagement/getTermsOfServiceDocumentRequest.ts +++ b/src/typings/legalEntityManagement/getTermsOfServiceDocumentRequest.ts @@ -1,5 +1,5 @@ /* - * The version of the OpenAPI document: v3 + * The version of the OpenAPI document: v4 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/typings/legalEntityManagement/getTermsOfServiceDocumentResponse.ts b/src/typings/legalEntityManagement/getTermsOfServiceDocumentResponse.ts index 2b65cefa6..b2dadc2cd 100644 --- a/src/typings/legalEntityManagement/getTermsOfServiceDocumentResponse.ts +++ b/src/typings/legalEntityManagement/getTermsOfServiceDocumentResponse.ts @@ -1,5 +1,5 @@ /* - * The version of the OpenAPI document: v3 + * The version of the OpenAPI document: v4 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/typings/legalEntityManagement/hKLocalAccountIdentification.ts b/src/typings/legalEntityManagement/hKLocalAccountIdentification.ts index 2e7942bb4..6363b305c 100644 --- a/src/typings/legalEntityManagement/hKLocalAccountIdentification.ts +++ b/src/typings/legalEntityManagement/hKLocalAccountIdentification.ts @@ -1,5 +1,5 @@ /* - * The version of the OpenAPI document: v3 + * The version of the OpenAPI document: v4 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/typings/legalEntityManagement/hULocalAccountIdentification.ts b/src/typings/legalEntityManagement/hULocalAccountIdentification.ts index 312e153ea..cb1195a7e 100644 --- a/src/typings/legalEntityManagement/hULocalAccountIdentification.ts +++ b/src/typings/legalEntityManagement/hULocalAccountIdentification.ts @@ -1,5 +1,5 @@ /* - * The version of the OpenAPI document: v3 + * The version of the OpenAPI document: v4 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/typings/legalEntityManagement/ibanAccountIdentification.ts b/src/typings/legalEntityManagement/ibanAccountIdentification.ts index 010b37fb3..a830acab1 100644 --- a/src/typings/legalEntityManagement/ibanAccountIdentification.ts +++ b/src/typings/legalEntityManagement/ibanAccountIdentification.ts @@ -1,5 +1,5 @@ /* - * The version of the OpenAPI document: v3 + * The version of the OpenAPI document: v4 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/typings/legalEntityManagement/identificationData.ts b/src/typings/legalEntityManagement/identificationData.ts index 9a47671e4..87cca2964 100644 --- a/src/typings/legalEntityManagement/identificationData.ts +++ b/src/typings/legalEntityManagement/identificationData.ts @@ -1,5 +1,5 @@ /* - * The version of the OpenAPI document: v3 + * The version of the OpenAPI document: v4 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/typings/legalEntityManagement/individual.ts b/src/typings/legalEntityManagement/individual.ts index 130cdca53..e98b0d999 100644 --- a/src/typings/legalEntityManagement/individual.ts +++ b/src/typings/legalEntityManagement/individual.ts @@ -1,5 +1,5 @@ /* - * The version of the OpenAPI document: v3 + * The version of the OpenAPI document: v4 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -12,6 +12,7 @@ import { BirthData } from "./birthData"; import { IdentificationData } from "./identificationData"; import { Name } from "./name"; import { PhoneNumber } from "./phoneNumber"; +import { Support } from "./support"; import { TaxInformation } from "./taxInformation"; import { WebData } from "./webData"; @@ -30,6 +31,7 @@ export class Individual { "nationality"?: string; "phone"?: PhoneNumber | null; "residentialAddress": Address; + "support"?: Support | null; /** * The tax information of the individual. */ @@ -83,6 +85,12 @@ export class Individual { "type": "Address", "format": "" }, + { + "name": "support", + "baseName": "support", + "type": "Support | null", + "format": "" + }, { "name": "taxInformation", "baseName": "taxInformation", diff --git a/src/typings/legalEntityManagement/legalEntity.ts b/src/typings/legalEntityManagement/legalEntity.ts index ad3424570..edac7788a 100644 --- a/src/typings/legalEntityManagement/legalEntity.ts +++ b/src/typings/legalEntityManagement/legalEntity.ts @@ -1,5 +1,5 @@ /* - * The version of the OpenAPI document: v3 + * The version of the OpenAPI document: v4 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/typings/legalEntityManagement/legalEntityAssociation.ts b/src/typings/legalEntityManagement/legalEntityAssociation.ts index 0e4b84d2e..06cf5150b 100644 --- a/src/typings/legalEntityManagement/legalEntityAssociation.ts +++ b/src/typings/legalEntityManagement/legalEntityAssociation.ts @@ -1,5 +1,5 @@ /* - * The version of the OpenAPI document: v3 + * The version of the OpenAPI document: v4 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/typings/legalEntityManagement/legalEntityCapability.ts b/src/typings/legalEntityManagement/legalEntityCapability.ts index 146b2c11e..67506312d 100644 --- a/src/typings/legalEntityManagement/legalEntityCapability.ts +++ b/src/typings/legalEntityManagement/legalEntityCapability.ts @@ -1,5 +1,5 @@ /* - * The version of the OpenAPI document: v3 + * The version of the OpenAPI document: v4 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/typings/legalEntityManagement/legalEntityInfo.ts b/src/typings/legalEntityManagement/legalEntityInfo.ts index 10e794650..7ba100fa4 100644 --- a/src/typings/legalEntityManagement/legalEntityInfo.ts +++ b/src/typings/legalEntityManagement/legalEntityInfo.ts @@ -1,5 +1,5 @@ /* - * The version of the OpenAPI document: v3 + * The version of the OpenAPI document: v4 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/typings/legalEntityManagement/legalEntityInfoRequiredType.ts b/src/typings/legalEntityManagement/legalEntityInfoRequiredType.ts index 38e3d27eb..10bbaf825 100644 --- a/src/typings/legalEntityManagement/legalEntityInfoRequiredType.ts +++ b/src/typings/legalEntityManagement/legalEntityInfoRequiredType.ts @@ -1,5 +1,5 @@ /* - * The version of the OpenAPI document: v3 + * The version of the OpenAPI document: v4 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/typings/legalEntityManagement/models.ts b/src/typings/legalEntityManagement/models.ts index 4f34440ef..f570b5133 100644 --- a/src/typings/legalEntityManagement/models.ts +++ b/src/typings/legalEntityManagement/models.ts @@ -29,6 +29,7 @@ export * from "./documentPage" export * from "./documentReference" export * from "./entityReference" export * from "./financialReport" +export * from "./financier" export * from "./generatePciDescriptionRequest" export * from "./generatePciDescriptionResponse" export * from "./getAcceptedTermsOfServiceDocumentResponse" @@ -71,6 +72,7 @@ export * from "./setTaxElectronicDeliveryConsentRequest" export * from "./soleProprietorship" export * from "./sourceOfFunds" export * from "./stockData" +export * from "./support" export * from "./supportingEntityCapability" export * from "./taxInformation" export * from "./taxReportingClassification" diff --git a/src/typings/legalEntityManagement/nOLocalAccountIdentification.ts b/src/typings/legalEntityManagement/nOLocalAccountIdentification.ts index 6f027dd1a..3c7aa537b 100644 --- a/src/typings/legalEntityManagement/nOLocalAccountIdentification.ts +++ b/src/typings/legalEntityManagement/nOLocalAccountIdentification.ts @@ -1,5 +1,5 @@ /* - * The version of the OpenAPI document: v3 + * The version of the OpenAPI document: v4 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/typings/legalEntityManagement/nZLocalAccountIdentification.ts b/src/typings/legalEntityManagement/nZLocalAccountIdentification.ts index 3d9551d56..965854e65 100644 --- a/src/typings/legalEntityManagement/nZLocalAccountIdentification.ts +++ b/src/typings/legalEntityManagement/nZLocalAccountIdentification.ts @@ -1,5 +1,5 @@ /* - * The version of the OpenAPI document: v3 + * The version of the OpenAPI document: v4 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/typings/legalEntityManagement/name.ts b/src/typings/legalEntityManagement/name.ts index bb7c02e19..d33687f6d 100644 --- a/src/typings/legalEntityManagement/name.ts +++ b/src/typings/legalEntityManagement/name.ts @@ -1,5 +1,5 @@ /* - * The version of the OpenAPI document: v3 + * The version of the OpenAPI document: v4 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/typings/legalEntityManagement/numberAndBicAccountIdentification.ts b/src/typings/legalEntityManagement/numberAndBicAccountIdentification.ts index c0becad2e..28e9374be 100644 --- a/src/typings/legalEntityManagement/numberAndBicAccountIdentification.ts +++ b/src/typings/legalEntityManagement/numberAndBicAccountIdentification.ts @@ -1,5 +1,5 @@ /* - * The version of the OpenAPI document: v3 + * The version of the OpenAPI document: v4 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/typings/legalEntityManagement/objectSerializer.ts b/src/typings/legalEntityManagement/objectSerializer.ts index 7aac50759..f49ab7a45 100644 --- a/src/typings/legalEntityManagement/objectSerializer.ts +++ b/src/typings/legalEntityManagement/objectSerializer.ts @@ -31,6 +31,7 @@ import { DocumentPage } from "./documentPage"; import { DocumentReference } from "./documentReference"; import { EntityReference } from "./entityReference"; import { FinancialReport } from "./financialReport"; +import { Financier } from "./financier"; import { GeneratePciDescriptionRequest } from "./generatePciDescriptionRequest"; import { GeneratePciDescriptionResponse } from "./generatePciDescriptionResponse"; import { GetAcceptedTermsOfServiceDocumentResponse } from "./getAcceptedTermsOfServiceDocumentResponse"; @@ -73,6 +74,7 @@ import { SetTaxElectronicDeliveryConsentRequest } from "./setTaxElectronicDelive import { SoleProprietorship } from "./soleProprietorship"; import { SourceOfFunds } from "./sourceOfFunds"; import { StockData } from "./stockData"; +import { Support } from "./support"; import { SupportingEntityCapability } from "./supportingEntityCapability"; import { TaxInformation } from "./taxInformation"; import { TaxReportingClassification } from "./taxReportingClassification"; @@ -110,9 +112,7 @@ let enumsMap: Set = new Set([ "AdditionalBankIdentification.TypeEnum", "BankAccountInfoAccountIdentification.TypeEnum", "BankAccountInfoAccountIdentification.AccountTypeEnum", - "BusinessLine.CapabilityEnum", "BusinessLine.ServiceEnum", - "BusinessLineInfo.CapabilityEnum", "BusinessLineInfo.ServiceEnum", "CALocalAccountIdentification.AccountTypeEnum", "CALocalAccountIdentification.TypeEnum", @@ -203,6 +203,7 @@ let typeMap: {[index: string]: any} = { "DocumentReference": DocumentReference, "EntityReference": EntityReference, "FinancialReport": FinancialReport, + "Financier": Financier, "GeneratePciDescriptionRequest": GeneratePciDescriptionRequest, "GeneratePciDescriptionResponse": GeneratePciDescriptionResponse, "GetAcceptedTermsOfServiceDocumentResponse": GetAcceptedTermsOfServiceDocumentResponse, @@ -245,6 +246,7 @@ let typeMap: {[index: string]: any} = { "SoleProprietorship": SoleProprietorship, "SourceOfFunds": SourceOfFunds, "StockData": StockData, + "Support": Support, "SupportingEntityCapability": SupportingEntityCapability, "TaxInformation": TaxInformation, "TaxReportingClassification": TaxReportingClassification, diff --git a/src/typings/legalEntityManagement/onboardingLink.ts b/src/typings/legalEntityManagement/onboardingLink.ts index 2827d4a20..c9317c1fc 100644 --- a/src/typings/legalEntityManagement/onboardingLink.ts +++ b/src/typings/legalEntityManagement/onboardingLink.ts @@ -1,5 +1,5 @@ /* - * The version of the OpenAPI document: v3 + * The version of the OpenAPI document: v4 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/typings/legalEntityManagement/onboardingLinkInfo.ts b/src/typings/legalEntityManagement/onboardingLinkInfo.ts index e4a3acc10..5c245013a 100644 --- a/src/typings/legalEntityManagement/onboardingLinkInfo.ts +++ b/src/typings/legalEntityManagement/onboardingLinkInfo.ts @@ -1,5 +1,5 @@ /* - * The version of the OpenAPI document: v3 + * The version of the OpenAPI document: v4 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/typings/legalEntityManagement/onboardingLinkSettings.ts b/src/typings/legalEntityManagement/onboardingLinkSettings.ts index fc10b8c37..f31a1c329 100644 --- a/src/typings/legalEntityManagement/onboardingLinkSettings.ts +++ b/src/typings/legalEntityManagement/onboardingLinkSettings.ts @@ -1,5 +1,5 @@ /* - * The version of the OpenAPI document: v3 + * The version of the OpenAPI document: v4 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/typings/legalEntityManagement/onboardingTheme.ts b/src/typings/legalEntityManagement/onboardingTheme.ts index 59b5a400e..2f0c0858c 100644 --- a/src/typings/legalEntityManagement/onboardingTheme.ts +++ b/src/typings/legalEntityManagement/onboardingTheme.ts @@ -1,5 +1,5 @@ /* - * The version of the OpenAPI document: v3 + * The version of the OpenAPI document: v4 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/typings/legalEntityManagement/onboardingThemes.ts b/src/typings/legalEntityManagement/onboardingThemes.ts index a0ea0a0c6..662c12289 100644 --- a/src/typings/legalEntityManagement/onboardingThemes.ts +++ b/src/typings/legalEntityManagement/onboardingThemes.ts @@ -1,5 +1,5 @@ /* - * The version of the OpenAPI document: v3 + * The version of the OpenAPI document: v4 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/typings/legalEntityManagement/organization.ts b/src/typings/legalEntityManagement/organization.ts index f0ed9f161..6f57c3c28 100644 --- a/src/typings/legalEntityManagement/organization.ts +++ b/src/typings/legalEntityManagement/organization.ts @@ -1,5 +1,5 @@ /* - * The version of the OpenAPI document: v3 + * The version of the OpenAPI document: v4 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -11,6 +11,7 @@ import { Address } from "./address"; import { FinancialReport } from "./financialReport"; import { PhoneNumber } from "./phoneNumber"; import { StockData } from "./stockData"; +import { Support } from "./support"; import { TaxInformation } from "./taxInformation"; import { TaxReportingClassification } from "./taxReportingClassification"; import { WebData } from "./webData"; @@ -34,6 +35,10 @@ export class Organization { */ "doingBusinessAs"?: string; /** + * Set this to **true** if the organization or legal arrangement does not have a `Doing business as` name. + */ + "doingBusinessAsAbsent"?: boolean | null; + /** * The email address of the legal entity. */ "email"?: string; @@ -52,7 +57,12 @@ export class Organization { * The organization\'s registration number. */ "registrationNumber"?: string; + /** + * Set this to **true** if the organization does not have a registration number available. Only applicable for organizations in New Zealand, and incorporated partnerships and government organizations in Australia. + */ + "registrationNumberAbsent"?: boolean | null; "stockData"?: StockData | null; + "support"?: Support | null; /** * The tax information of the organization. */ @@ -101,6 +111,12 @@ export class Organization { "type": "string", "format": "" }, + { + "name": "doingBusinessAsAbsent", + "baseName": "doingBusinessAsAbsent", + "type": "boolean | null", + "format": "" + }, { "name": "email", "baseName": "email", @@ -143,12 +159,24 @@ export class Organization { "type": "string", "format": "" }, + { + "name": "registrationNumberAbsent", + "baseName": "registrationNumberAbsent", + "type": "boolean | null", + "format": "" + }, { "name": "stockData", "baseName": "stockData", "type": "StockData | null", "format": "" }, + { + "name": "support", + "baseName": "support", + "type": "Support | null", + "format": "" + }, { "name": "taxInformation", "baseName": "taxInformation", diff --git a/src/typings/legalEntityManagement/ownerEntity.ts b/src/typings/legalEntityManagement/ownerEntity.ts index ed1466281..d044a802a 100644 --- a/src/typings/legalEntityManagement/ownerEntity.ts +++ b/src/typings/legalEntityManagement/ownerEntity.ts @@ -1,5 +1,5 @@ /* - * The version of the OpenAPI document: v3 + * The version of the OpenAPI document: v4 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/typings/legalEntityManagement/pLLocalAccountIdentification.ts b/src/typings/legalEntityManagement/pLLocalAccountIdentification.ts index 705582067..7621bec90 100644 --- a/src/typings/legalEntityManagement/pLLocalAccountIdentification.ts +++ b/src/typings/legalEntityManagement/pLLocalAccountIdentification.ts @@ -1,5 +1,5 @@ /* - * The version of the OpenAPI document: v3 + * The version of the OpenAPI document: v4 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/typings/legalEntityManagement/pciDocumentInfo.ts b/src/typings/legalEntityManagement/pciDocumentInfo.ts index e8425402c..1c3b0c0ef 100644 --- a/src/typings/legalEntityManagement/pciDocumentInfo.ts +++ b/src/typings/legalEntityManagement/pciDocumentInfo.ts @@ -1,5 +1,5 @@ /* - * The version of the OpenAPI document: v3 + * The version of the OpenAPI document: v4 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/typings/legalEntityManagement/pciSigningRequest.ts b/src/typings/legalEntityManagement/pciSigningRequest.ts index 8563eac2f..4c619234b 100644 --- a/src/typings/legalEntityManagement/pciSigningRequest.ts +++ b/src/typings/legalEntityManagement/pciSigningRequest.ts @@ -1,5 +1,5 @@ /* - * The version of the OpenAPI document: v3 + * The version of the OpenAPI document: v4 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/typings/legalEntityManagement/pciSigningResponse.ts b/src/typings/legalEntityManagement/pciSigningResponse.ts index 93ec9233e..4381ada22 100644 --- a/src/typings/legalEntityManagement/pciSigningResponse.ts +++ b/src/typings/legalEntityManagement/pciSigningResponse.ts @@ -1,5 +1,5 @@ /* - * The version of the OpenAPI document: v3 + * The version of the OpenAPI document: v4 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/typings/legalEntityManagement/phoneNumber.ts b/src/typings/legalEntityManagement/phoneNumber.ts index 6aa9ed7e1..f9ab734e2 100644 --- a/src/typings/legalEntityManagement/phoneNumber.ts +++ b/src/typings/legalEntityManagement/phoneNumber.ts @@ -1,5 +1,5 @@ /* - * The version of the OpenAPI document: v3 + * The version of the OpenAPI document: v4 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/typings/legalEntityManagement/remediatingAction.ts b/src/typings/legalEntityManagement/remediatingAction.ts index d75c02f6d..061ac2b2a 100644 --- a/src/typings/legalEntityManagement/remediatingAction.ts +++ b/src/typings/legalEntityManagement/remediatingAction.ts @@ -1,5 +1,5 @@ /* - * The version of the OpenAPI document: v3 + * The version of the OpenAPI document: v4 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/typings/legalEntityManagement/sELocalAccountIdentification.ts b/src/typings/legalEntityManagement/sELocalAccountIdentification.ts index ed3fb2de4..4f7fbc20c 100644 --- a/src/typings/legalEntityManagement/sELocalAccountIdentification.ts +++ b/src/typings/legalEntityManagement/sELocalAccountIdentification.ts @@ -1,5 +1,5 @@ /* - * The version of the OpenAPI document: v3 + * The version of the OpenAPI document: v4 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/typings/legalEntityManagement/sGLocalAccountIdentification.ts b/src/typings/legalEntityManagement/sGLocalAccountIdentification.ts index 1a2509e11..b4b83144d 100644 --- a/src/typings/legalEntityManagement/sGLocalAccountIdentification.ts +++ b/src/typings/legalEntityManagement/sGLocalAccountIdentification.ts @@ -1,5 +1,5 @@ /* - * The version of the OpenAPI document: v3 + * The version of the OpenAPI document: v4 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/typings/legalEntityManagement/serviceError.ts b/src/typings/legalEntityManagement/serviceError.ts index 1c561a505..a6ff948f0 100644 --- a/src/typings/legalEntityManagement/serviceError.ts +++ b/src/typings/legalEntityManagement/serviceError.ts @@ -1,5 +1,5 @@ /* - * The version of the OpenAPI document: v3 + * The version of the OpenAPI document: v4 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/typings/legalEntityManagement/setTaxElectronicDeliveryConsentRequest.ts b/src/typings/legalEntityManagement/setTaxElectronicDeliveryConsentRequest.ts index 6866bc0f9..ab2958c4f 100644 --- a/src/typings/legalEntityManagement/setTaxElectronicDeliveryConsentRequest.ts +++ b/src/typings/legalEntityManagement/setTaxElectronicDeliveryConsentRequest.ts @@ -1,5 +1,5 @@ /* - * The version of the OpenAPI document: v3 + * The version of the OpenAPI document: v4 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/typings/legalEntityManagement/soleProprietorship.ts b/src/typings/legalEntityManagement/soleProprietorship.ts index 7b2b00e38..7b75067bc 100644 --- a/src/typings/legalEntityManagement/soleProprietorship.ts +++ b/src/typings/legalEntityManagement/soleProprietorship.ts @@ -1,5 +1,5 @@ /* - * The version of the OpenAPI document: v3 + * The version of the OpenAPI document: v4 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -26,6 +26,10 @@ export class SoleProprietorship { */ "doingBusinessAs"?: string; /** + * Set this to **true** if the legal arrangement does not have a `Doing business as` name. + */ + "doingBusinessAsAbsent"?: boolean | null; + /** * The information from the financial report of the sole proprietorship. */ "financialReports"?: Array; @@ -79,6 +83,12 @@ export class SoleProprietorship { "type": "string", "format": "" }, + { + "name": "doingBusinessAsAbsent", + "baseName": "doingBusinessAsAbsent", + "type": "boolean | null", + "format": "" + }, { "name": "financialReports", "baseName": "financialReports", diff --git a/src/typings/legalEntityManagement/sourceOfFunds.ts b/src/typings/legalEntityManagement/sourceOfFunds.ts index 1836f8b8f..e4dca1ea7 100644 --- a/src/typings/legalEntityManagement/sourceOfFunds.ts +++ b/src/typings/legalEntityManagement/sourceOfFunds.ts @@ -1,5 +1,5 @@ /* - * The version of the OpenAPI document: v3 + * The version of the OpenAPI document: v4 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -7,56 +7,143 @@ * Do not edit this class manually. */ +import { Amount } from "./amount"; +import { Financier } from "./financier"; + export class SourceOfFunds { /** - * The unique identifier of the business line that is the source of funds.This must be a business line for a **receivePayments** or **receiveFromPlatformPayments** capability. - * - * @deprecated since Legal Entity Management API v3 - * This field will be removed in v4. + * Indicates whether the funds are coming from transactions processed by Adyen. If **false**, the `type` is required. + */ + "adyenProcessedFunds": boolean; + "amount"?: Amount | null; + /** + * The number of months that the asset has been in possession of the user. For example, if the source of funds is of type **cryptocurrencyIncome** then `assetMonthsHeld` is the number of months the user has owned the cryptocurrency. + */ + "assetMonthsHeld"?: number; + /** + * The cryptocurrency exchange where the funds were acquired. Required if `type` is **cryptocurrencyIncome**. + */ + "cryptocurrencyExchange"?: string; + /** + * The date the funds were received, in YYYY-MM-DD format. Required if `type` is **donations** or **inheritance**. */ - "acquiringBusinessLineId"?: string; + "dateOfFundsReceived"?: string; /** - * Indicates whether the funds are coming from transactions processed by Adyen. If **false**, a `description` is required. + * The date the funds were received, in YYYY-MM-DD format. Required if `type` is **assetSale** or **gamblingWinnings**. For example, if the source of funds is of type **assetSale**, the dateOfSourceEvent is the date of the sale. If the source of funds is of type **gamblingWinnings**, the dateOfSourceEvent is the date of winnings. */ - "adyenProcessedFunds"?: boolean; + "dateOfSourceEvent"?: string; /** - * Text describing the source of funds. For example, for `type` **business**, provide a description of where the business transactions come from, such as payments through bank transfer. Required when `adyenProcessedFunds` is **false**. + * Text describing the source of funds. Required if `type` is **business** or **assetSale**. For example, for `type` **business**, provide a description of where the business transactions come from, such as payments through bank transfer. For `type` **assetSale**, provide a description of the asset. For example, the address of a residential property if it is a property sale. */ "description"?: string; /** - * The type of the source of funds. Possible value: **business**. + * Information about the financiers. Required if `type` is **thirdPartyFunding**. + */ + "financiers"?: Array; + /** + * The legal entity ID representing the originator of the source of funds. Required if `type` is **donations** or **inheritance**. For example, if the source of funds is **inheritance**, then `originatorOfFundsReference` should be the legal entity reference of the benefactor. + */ + "originatorLegalEntityId"?: string; + /** + * The reason for receiving the funds. Required if `type` is **donations**. + */ + "purpose"?: string; + /** + * The relationship of the originator of the funds to the recipient. Required if `type` is **donations** or **inheritance**. + */ + "relationship"?: string; + /** + * The type of the source of funds. Possible values: * **business** * **employment** * **donations** * **inheritance** * **financialAid** * **rentalIncome** * **dividendIncome** * **royaltyIncome** * **thirdPartyFunding** * **pensionIncome** * **insuranceSettlement** * **cryptocurrencyIncome** * **assetSale** * **loans** * **gamblingWinnings** */ "type"?: SourceOfFunds.TypeEnum; + /** + * The location of the gambling site. Required if `type` is **gamblingWinnings**. If the source of funds is online gambling, provide the website of the gambling company. + */ + "website"?: string; static readonly discriminator: string | undefined = undefined; static readonly mapping: {[index: string]: string} | undefined = undefined; static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ - { - "name": "acquiringBusinessLineId", - "baseName": "acquiringBusinessLineId", - "type": "string", - "format": "" - }, { "name": "adyenProcessedFunds", "baseName": "adyenProcessedFunds", "type": "boolean", "format": "" }, + { + "name": "amount", + "baseName": "amount", + "type": "Amount | null", + "format": "" + }, + { + "name": "assetMonthsHeld", + "baseName": "assetMonthsHeld", + "type": "number", + "format": "int32" + }, + { + "name": "cryptocurrencyExchange", + "baseName": "cryptocurrencyExchange", + "type": "string", + "format": "" + }, + { + "name": "dateOfFundsReceived", + "baseName": "dateOfFundsReceived", + "type": "string", + "format": "date" + }, + { + "name": "dateOfSourceEvent", + "baseName": "dateOfSourceEvent", + "type": "string", + "format": "date" + }, { "name": "description", "baseName": "description", "type": "string", "format": "" }, + { + "name": "financiers", + "baseName": "financiers", + "type": "Array", + "format": "" + }, + { + "name": "originatorLegalEntityId", + "baseName": "originatorLegalEntityId", + "type": "string", + "format": "" + }, + { + "name": "purpose", + "baseName": "purpose", + "type": "string", + "format": "" + }, + { + "name": "relationship", + "baseName": "relationship", + "type": "string", + "format": "" + }, { "name": "type", "baseName": "type", "type": "SourceOfFunds.TypeEnum", "format": "" + }, + { + "name": "website", + "baseName": "website", + "type": "string", + "format": "" } ]; static getAttributeTypeMap() { @@ -69,6 +156,20 @@ export class SourceOfFunds { export namespace SourceOfFunds { export enum TypeEnum { - Business = 'business' + Business = 'business', + Employment = 'employment', + Donations = 'donations', + Inheritance = 'inheritance', + FinancialAid = 'financialAid', + RentalIncome = 'rentalIncome', + DividendIncome = 'dividendIncome', + RoyaltyIncome = 'royaltyIncome', + ThirdPartyFunding = 'thirdPartyFunding', + PensionIncome = 'pensionIncome', + InsuranceSettlement = 'insuranceSettlement', + CryptocurrencyIncome = 'cryptocurrencyIncome', + AssetSale = 'assetSale', + Loans = 'loans', + GamblingWinnings = 'gamblingWinnings' } } diff --git a/src/typings/legalEntityManagement/stockData.ts b/src/typings/legalEntityManagement/stockData.ts index 8dd02f43e..2260e2532 100644 --- a/src/typings/legalEntityManagement/stockData.ts +++ b/src/typings/legalEntityManagement/stockData.ts @@ -1,5 +1,5 @@ /* - * The version of the OpenAPI document: v3 + * The version of the OpenAPI document: v4 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/typings/legalEntityManagement/support.ts b/src/typings/legalEntityManagement/support.ts new file mode 100644 index 000000000..35b640718 --- /dev/null +++ b/src/typings/legalEntityManagement/support.ts @@ -0,0 +1,45 @@ +/* + * The version of the OpenAPI document: v4 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { PhoneNumber } from "./phoneNumber"; + + +export class Support { + /** + * The email address of the legal entity. + */ + "email"?: string; + "phone"?: PhoneNumber | null; + + static readonly discriminator: string | undefined = undefined; + + static readonly mapping: {[index: string]: string} | undefined = undefined; + + static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + { + "name": "email", + "baseName": "email", + "type": "string", + "format": "" + }, + { + "name": "phone", + "baseName": "phone", + "type": "PhoneNumber | null", + "format": "" + } ]; + + static getAttributeTypeMap() { + return Support.attributeTypeMap; + } + + public constructor() { + } +} + diff --git a/src/typings/legalEntityManagement/supportingEntityCapability.ts b/src/typings/legalEntityManagement/supportingEntityCapability.ts index c04421ad9..70774ca5b 100644 --- a/src/typings/legalEntityManagement/supportingEntityCapability.ts +++ b/src/typings/legalEntityManagement/supportingEntityCapability.ts @@ -1,5 +1,5 @@ /* - * The version of the OpenAPI document: v3 + * The version of the OpenAPI document: v4 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/typings/legalEntityManagement/taxInformation.ts b/src/typings/legalEntityManagement/taxInformation.ts index 615991a66..2f79d8adc 100644 --- a/src/typings/legalEntityManagement/taxInformation.ts +++ b/src/typings/legalEntityManagement/taxInformation.ts @@ -1,5 +1,5 @@ /* - * The version of the OpenAPI document: v3 + * The version of the OpenAPI document: v4 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -18,6 +18,10 @@ export class TaxInformation { */ "number"?: string; /** + * Set this to **true** if the legal entity or legal arrangement does not have a tax ID number (TIN). Only applicable in Australia. + */ + "numberAbsent"?: boolean; + /** * The TIN type depending on the country where it was issued. Only provide if the country has multiple tax IDs: Singapore, Sweden, the UK, or the US. For example, provide **SSN**, **EIN**, or **ITIN** for the US. */ "type"?: string; @@ -39,6 +43,12 @@ export class TaxInformation { "type": "string", "format": "" }, + { + "name": "numberAbsent", + "baseName": "numberAbsent", + "type": "boolean", + "format": "" + }, { "name": "type", "baseName": "type", diff --git a/src/typings/legalEntityManagement/taxReportingClassification.ts b/src/typings/legalEntityManagement/taxReportingClassification.ts index a8e4a2956..4894ae48c 100644 --- a/src/typings/legalEntityManagement/taxReportingClassification.ts +++ b/src/typings/legalEntityManagement/taxReportingClassification.ts @@ -1,5 +1,5 @@ /* - * The version of the OpenAPI document: v3 + * The version of the OpenAPI document: v4 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/typings/legalEntityManagement/termsOfServiceAcceptanceInfo.ts b/src/typings/legalEntityManagement/termsOfServiceAcceptanceInfo.ts index 433f86706..b4b2e5e15 100644 --- a/src/typings/legalEntityManagement/termsOfServiceAcceptanceInfo.ts +++ b/src/typings/legalEntityManagement/termsOfServiceAcceptanceInfo.ts @@ -1,5 +1,5 @@ /* - * The version of the OpenAPI document: v3 + * The version of the OpenAPI document: v4 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/typings/legalEntityManagement/transferInstrument.ts b/src/typings/legalEntityManagement/transferInstrument.ts index 743d6cc91..287fa5db3 100644 --- a/src/typings/legalEntityManagement/transferInstrument.ts +++ b/src/typings/legalEntityManagement/transferInstrument.ts @@ -1,5 +1,5 @@ /* - * The version of the OpenAPI document: v3 + * The version of the OpenAPI document: v4 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/typings/legalEntityManagement/transferInstrumentInfo.ts b/src/typings/legalEntityManagement/transferInstrumentInfo.ts index 42ca973ac..e4dedd9c9 100644 --- a/src/typings/legalEntityManagement/transferInstrumentInfo.ts +++ b/src/typings/legalEntityManagement/transferInstrumentInfo.ts @@ -1,5 +1,5 @@ /* - * The version of the OpenAPI document: v3 + * The version of the OpenAPI document: v4 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/typings/legalEntityManagement/transferInstrumentReference.ts b/src/typings/legalEntityManagement/transferInstrumentReference.ts index 2547727ef..d83a54c35 100644 --- a/src/typings/legalEntityManagement/transferInstrumentReference.ts +++ b/src/typings/legalEntityManagement/transferInstrumentReference.ts @@ -1,5 +1,5 @@ /* - * The version of the OpenAPI document: v3 + * The version of the OpenAPI document: v4 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/typings/legalEntityManagement/trust.ts b/src/typings/legalEntityManagement/trust.ts index f4c6b5c42..24402f73b 100644 --- a/src/typings/legalEntityManagement/trust.ts +++ b/src/typings/legalEntityManagement/trust.ts @@ -1,5 +1,5 @@ /* - * The version of the OpenAPI document: v3 + * The version of the OpenAPI document: v4 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -30,6 +30,10 @@ export class Trust { */ "doingBusinessAs"?: string; /** + * Set this to **true** if the legal arrangement does not have a `Doing business as` name. + */ + "doingBusinessAsAbsent"?: boolean | null; + /** * The legal name. */ "name": string; @@ -89,6 +93,12 @@ export class Trust { "type": "string", "format": "" }, + { + "name": "doingBusinessAsAbsent", + "baseName": "doingBusinessAsAbsent", + "type": "boolean | null", + "format": "" + }, { "name": "name", "baseName": "name", diff --git a/src/typings/legalEntityManagement/uKLocalAccountIdentification.ts b/src/typings/legalEntityManagement/uKLocalAccountIdentification.ts index 86a079b8c..a7f4de18e 100644 --- a/src/typings/legalEntityManagement/uKLocalAccountIdentification.ts +++ b/src/typings/legalEntityManagement/uKLocalAccountIdentification.ts @@ -1,5 +1,5 @@ /* - * The version of the OpenAPI document: v3 + * The version of the OpenAPI document: v4 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/typings/legalEntityManagement/uSLocalAccountIdentification.ts b/src/typings/legalEntityManagement/uSLocalAccountIdentification.ts index 70431f551..763c1223d 100644 --- a/src/typings/legalEntityManagement/uSLocalAccountIdentification.ts +++ b/src/typings/legalEntityManagement/uSLocalAccountIdentification.ts @@ -1,5 +1,5 @@ /* - * The version of the OpenAPI document: v3 + * The version of the OpenAPI document: v4 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/typings/legalEntityManagement/undefinedBeneficiary.ts b/src/typings/legalEntityManagement/undefinedBeneficiary.ts index 71a72ef17..bdc520235 100644 --- a/src/typings/legalEntityManagement/undefinedBeneficiary.ts +++ b/src/typings/legalEntityManagement/undefinedBeneficiary.ts @@ -1,5 +1,5 @@ /* - * The version of the OpenAPI document: v3 + * The version of the OpenAPI document: v4 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/typings/legalEntityManagement/unincorporatedPartnership.ts b/src/typings/legalEntityManagement/unincorporatedPartnership.ts index ada802871..8c3964aca 100644 --- a/src/typings/legalEntityManagement/unincorporatedPartnership.ts +++ b/src/typings/legalEntityManagement/unincorporatedPartnership.ts @@ -1,5 +1,5 @@ /* - * The version of the OpenAPI document: v3 + * The version of the OpenAPI document: v4 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -29,6 +29,10 @@ export class UnincorporatedPartnership { */ "doingBusinessAs"?: string; /** + * Set this to **true** if the legal arrangement does not have a `Doing business as` name. + */ + "doingBusinessAsAbsent"?: boolean | null; + /** * The legal name. */ "name": string; @@ -84,6 +88,12 @@ export class UnincorporatedPartnership { "type": "string", "format": "" }, + { + "name": "doingBusinessAsAbsent", + "baseName": "doingBusinessAsAbsent", + "type": "boolean | null", + "format": "" + }, { "name": "name", "baseName": "name", diff --git a/src/typings/legalEntityManagement/verificationDeadline.ts b/src/typings/legalEntityManagement/verificationDeadline.ts index 624739ec9..12caba216 100644 --- a/src/typings/legalEntityManagement/verificationDeadline.ts +++ b/src/typings/legalEntityManagement/verificationDeadline.ts @@ -1,5 +1,5 @@ /* - * The version of the OpenAPI document: v3 + * The version of the OpenAPI document: v4 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/typings/legalEntityManagement/verificationError.ts b/src/typings/legalEntityManagement/verificationError.ts index 846e0c5c1..c61b6a481 100644 --- a/src/typings/legalEntityManagement/verificationError.ts +++ b/src/typings/legalEntityManagement/verificationError.ts @@ -1,5 +1,5 @@ /* - * The version of the OpenAPI document: v3 + * The version of the OpenAPI document: v4 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/typings/legalEntityManagement/verificationErrorRecursive.ts b/src/typings/legalEntityManagement/verificationErrorRecursive.ts index ca0a95748..6d9ef5d00 100644 --- a/src/typings/legalEntityManagement/verificationErrorRecursive.ts +++ b/src/typings/legalEntityManagement/verificationErrorRecursive.ts @@ -1,5 +1,5 @@ /* - * The version of the OpenAPI document: v3 + * The version of the OpenAPI document: v4 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/typings/legalEntityManagement/verificationErrors.ts b/src/typings/legalEntityManagement/verificationErrors.ts index 11b8584c1..98d46b2cc 100644 --- a/src/typings/legalEntityManagement/verificationErrors.ts +++ b/src/typings/legalEntityManagement/verificationErrors.ts @@ -1,5 +1,5 @@ /* - * The version of the OpenAPI document: v3 + * The version of the OpenAPI document: v4 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/typings/legalEntityManagement/webData.ts b/src/typings/legalEntityManagement/webData.ts index cfcd6d1e6..961eb3e43 100644 --- a/src/typings/legalEntityManagement/webData.ts +++ b/src/typings/legalEntityManagement/webData.ts @@ -1,5 +1,5 @@ /* - * The version of the OpenAPI document: v3 + * The version of the OpenAPI document: v4 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/typings/legalEntityManagement/webDataExemption.ts b/src/typings/legalEntityManagement/webDataExemption.ts index c19c23b9a..901621575 100644 --- a/src/typings/legalEntityManagement/webDataExemption.ts +++ b/src/typings/legalEntityManagement/webDataExemption.ts @@ -1,5 +1,5 @@ /* - * The version of the OpenAPI document: v3 + * The version of the OpenAPI document: v4 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).