diff --git a/sdk-generation-log/capital.json b/sdk-generation-log/capital.json new file mode 100644 index 000000000..6bf4dcec9 --- /dev/null +++ b/sdk-generation-log/capital.json @@ -0,0 +1,8 @@ +{ + "service": "capital", + "project": "node", + "generatedAt": "2026-04-15T07:56:29Z", + "openapiCommitSha": "3550ecd3f320efaad6bee55ffed5122cb9ba09d5", + "automationCommitSha": "1ceda93a33430aa189b6141d5f6ea2e61051c7fd", + "libraryCommitSha": "e0c07e05d8c98b20f336ef0fa714fe95f4172c2f" +} diff --git a/src/services/capital/dynamicOffersApi.ts b/src/services/capital/dynamicOffersApi.ts new file mode 100644 index 000000000..fcf069dc0 --- /dev/null +++ b/src/services/capital/dynamicOffersApi.ts @@ -0,0 +1,109 @@ +/* + * The version of the OpenAPI document: v1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +import getJsonResponse from "../../helpers/getJsonResponse"; +import Service from "../../service"; +import Client from "../../client"; +import { IRequest } from "../../typings/requestOptions"; +import Resource from "../resource"; + +import { ObjectSerializer } from "../../typings/capital/objectSerializer"; +import { CalculateGrantOfferRequest } from "../../typings/capital/models"; +import { CalculatedGrantOffer } from "../../typings/capital/models"; +import { CreateGrantOfferRequest } from "../../typings/capital/models"; +import { FinancingType } from "../../typings/capital/models"; +import { GetDynamicOffersResponse } from "../../typings/capital/models"; +import { GrantOffer } from "../../typings/capital/models"; + +/** + * API handler for DynamicOffersApi + */ +export class DynamicOffersApi extends Service { + + private readonly API_BASEPATH: string = "https://balanceplatform-api-test.adyen.com/capital/v1"; + private baseUrl: string; + + public constructor(client: Client){ + super(client); + this.baseUrl = this.createBaseUrl(this.API_BASEPATH); + } + + /** + * @summary Calculate a preliminary offer for a selected financing amount + * @param id {@link string } The unique identifier of the dynamic offer from which the user selected the financing amount. + * @param calculateGrantOfferRequest {@link CalculateGrantOfferRequest } + * @param requestOptions {@link IRequest.Options } + * @return {@link CalculatedGrantOffer } + */ + public async calculatePreliminaryOfferFromDynamicOffer(id: string, calculateGrantOfferRequest: CalculateGrantOfferRequest, requestOptions?: IRequest.Options): Promise { + const endpoint = `${this.baseUrl}/dynamicOffers/{id}/calculate` + .replace("{" + "id" + "}", encodeURIComponent(String(id))); + const resource = new Resource(this, endpoint); + + const request: CalculateGrantOfferRequest = ObjectSerializer.serialize(calculateGrantOfferRequest, "CalculateGrantOfferRequest"); + const response = await getJsonResponse( + resource, + request, + { ...requestOptions, method: "POST" } + ); + + return ObjectSerializer.deserialize(response, "CalculatedGrantOffer"); + } + + /** + * @summary Create a static offer for a selected financing amount + * @param id {@link string } The unique identifier of the dynamic offer from which the user selected the financing amount. + * @param createGrantOfferRequest {@link CreateGrantOfferRequest } + * @param requestOptions {@link IRequest.Options } + * @return {@link GrantOffer } + */ + public async createStaticOfferFromDynamicOffer(id: string, createGrantOfferRequest: CreateGrantOfferRequest, requestOptions?: IRequest.Options): Promise { + const endpoint = `${this.baseUrl}/dynamicOffers/{id}/grantOffer` + .replace("{" + "id" + "}", encodeURIComponent(String(id))); + const resource = new Resource(this, endpoint); + + const request: CreateGrantOfferRequest = ObjectSerializer.serialize(createGrantOfferRequest, "CreateGrantOfferRequest"); + const response = await getJsonResponse( + resource, + request, + { ...requestOptions, method: "POST" } + ); + + return ObjectSerializer.deserialize(response, "GrantOffer"); + } + + /** + * @summary Get all available dynamic offers + * @param requestOptions {@link IRequest.Options } + * @param accountHolderId {@link string } (Required) The unique identifier of the account holder that the dynamic offer is for. + * @param financingType {@link FinancingType } The type of financing that the offer is for. If the value is not specified, returns all available types. Possible values: **businessFinancing** + * @return {@link GetDynamicOffersResponse } + */ + public async getAllDynamicOffers(accountHolderId: string, financingType?: FinancingType, requestOptions?: IRequest.Options): Promise { + const endpoint = `${this.baseUrl}/dynamicOffers`; + const resource = new Resource(this, endpoint); + + const hasDefinedQueryParams = accountHolderId ?? financingType; + if(hasDefinedQueryParams) { + if(!requestOptions) requestOptions = {}; + if(!requestOptions.params) requestOptions.params = {}; + if(accountHolderId) requestOptions.params["accountHolderId"] = accountHolderId; + if(financingType) requestOptions.params["financingType"] = financingType; + } + const response = await getJsonResponse( + resource, + "", + { ...requestOptions, method: "GET" } + ); + + return ObjectSerializer.deserialize(response, "GetDynamicOffersResponse"); + } + +} diff --git a/src/services/capital/grantOffersApi.ts b/src/services/capital/grantOffersApi.ts index 9853037b5..f1b953b53 100644 --- a/src/services/capital/grantOffersApi.ts +++ b/src/services/capital/grantOffersApi.ts @@ -32,12 +32,12 @@ export class GrantOffersApi extends Service { } /** - * @summary Get all available grant offers + * @summary Get all available static offers * @param requestOptions {@link IRequest.Options } - * @param accountHolderId {@link string } The unique identifier of the account holder for which you want to get the available grant offers. + * @param accountHolderId {@link string } (Required) The unique identifier of the account holder for which you want to get the available static offers. * @return {@link GrantOffers } */ - public async getAllGrantOffers(accountHolderId?: string, requestOptions?: IRequest.Options): Promise { + public async getAllGrantOffers(accountHolderId: string, requestOptions?: IRequest.Options): Promise { const endpoint = `${this.baseUrl}/grantOffers`; const resource = new Resource(this, endpoint); @@ -57,8 +57,8 @@ export class GrantOffersApi extends Service { } /** - * @summary Get the details of a grant offer - * @param id {@link string } The unique identifier of the grant offer. + * @summary Get the details of a static offer + * @param id {@link string } The unique identifier of the static offer. * @param requestOptions {@link IRequest.Options } * @return {@link GrantOffer } */ diff --git a/src/services/capital/index.ts b/src/services/capital/index.ts index 6d8ed270f..26d5ed93a 100644 --- a/src/services/capital/index.ts +++ b/src/services/capital/index.ts @@ -7,6 +7,7 @@ * Do not edit this class manually. */ +import { DynamicOffersApi } from "./dynamicOffersApi"; import { GrantAccountsApi } from "./grantAccountsApi"; import { GrantOffersApi } from "./grantOffersApi"; import { GrantsApi } from "./grantsApi"; @@ -20,6 +21,10 @@ export default class CapitalAPI extends Service { super(client); } + public get DynamicOffersApi() { + return new DynamicOffersApi(this.client); + } + public get GrantAccountsApi() { return new GrantAccountsApi(this.client); } diff --git a/src/typings/capital/additionalBankIdentification.ts b/src/typings/capital/additionalBankIdentification.ts index d167f0909..367b9d7c8 100644 --- a/src/typings/capital/additionalBankIdentification.ts +++ b/src/typings/capital/additionalBankIdentification.ts @@ -7,15 +7,16 @@ * Do not edit this class manually. */ -import { AdditionalBankIdentificationTypes } from "./additionalBankIdentificationTypes"; - export class AdditionalBankIdentification { /** * The value of the additional bank identification. */ "code"?: string; - "type"?: AdditionalBankIdentificationTypes; + /** + * The type of additional bank identification, depending on the country. Possible values: * **auBsbCode**: The 6-digit [Australian Bank State Branch (BSB) code](https://en.wikipedia.org/wiki/Bank_state_branch), without separators or spaces. * **caRoutingNumber**: The 9-digit [Canadian routing number](https://en.wikipedia.org/wiki/Routing_number_(Canada)), in EFT format, without separators or spaces. * **gbSortCode**: The 6-digit [UK sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or spaces * **usRoutingNumber**: The 9-digit [routing number](https://en.wikipedia.org/wiki/ABA_routing_transit_number), without separators or spaces. + */ + "type"?: AdditionalBankIdentification.TypeEnum; static readonly discriminator: string | undefined = undefined; @@ -31,7 +32,7 @@ export class AdditionalBankIdentification { { "name": "type", "baseName": "type", - "type": "AdditionalBankIdentificationTypes", + "type": "AdditionalBankIdentification.TypeEnum", "format": "" } ]; @@ -44,4 +45,10 @@ export class AdditionalBankIdentification { } export namespace AdditionalBankIdentification { + export enum TypeEnum { + AuBsbCode = 'auBsbCode', + CaRoutingNumber = 'caRoutingNumber', + GbSortCode = 'gbSortCode', + UsRoutingNumber = 'usRoutingNumber' + } } diff --git a/src/typings/capital/additionalBankIdentificationTypes.ts b/src/typings/capital/additionalBankIdentificationTypes.ts deleted file mode 100644 index 4517d5031..000000000 --- a/src/typings/capital/additionalBankIdentificationTypes.ts +++ /dev/null @@ -1,18 +0,0 @@ -/* - * The version of the OpenAPI document: v1 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit this class manually. - */ - -export enum AdditionalBankIdentificationTypes { - AuBsbCode = 'auBsbCode', - CaRoutingNumber = 'caRoutingNumber', - GbSortCode = 'gbSortCode', - HkBankCode = 'hkBankCode', - JpZenginCode = 'jpZenginCode', - NzBankBranchCode = 'nzBankBranchCode', - UsRoutingNumber = 'usRoutingNumber' -} diff --git a/src/typings/capital/calculateGrantOfferRequest.ts b/src/typings/capital/calculateGrantOfferRequest.ts new file mode 100644 index 000000000..6bd1cb9cb --- /dev/null +++ b/src/typings/capital/calculateGrantOfferRequest.ts @@ -0,0 +1,35 @@ +/* + * The version of the OpenAPI document: v1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { Amount } from "./amount"; + + +export class CalculateGrantOfferRequest { + "amount": Amount; + + 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": "" + } ]; + + static getAttributeTypeMap() { + return CalculateGrantOfferRequest.attributeTypeMap; + } + + public constructor() { + } +} + diff --git a/src/typings/capital/calculatedGrantOffer.ts b/src/typings/capital/calculatedGrantOffer.ts new file mode 100644 index 000000000..3d4a3d2e1 --- /dev/null +++ b/src/typings/capital/calculatedGrantOffer.ts @@ -0,0 +1,97 @@ +/* + * The version of the OpenAPI document: v1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { Amount } from "./amount"; +import { GrantOfferFee } from "./grantOfferFee"; +import { Repayment } from "./repayment"; + + +export class CalculatedGrantOffer { + /** + * The unique identifier of the account holder that the dynamic offer is for. + */ + "accountHolderId": string; + "amount": Amount; + /** + * The contract type of the offer. Possible values: * **loan** * **cashAdvance** + */ + "contractType": CalculatedGrantOffer.ContractTypeEnum; + /** + * The expiration date and time of the offer validity period. + */ + "expiresAt": Date; + "fee": GrantOfferFee; + "repayment": Repayment; + /** + * The starting date and time of the offer validity period. + */ + "startsAt": Date; + + 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": "accountHolderId", + "baseName": "accountHolderId", + "type": "string", + "format": "" + }, + { + "name": "amount", + "baseName": "amount", + "type": "Amount", + "format": "" + }, + { + "name": "contractType", + "baseName": "contractType", + "type": "CalculatedGrantOffer.ContractTypeEnum", + "format": "" + }, + { + "name": "expiresAt", + "baseName": "expiresAt", + "type": "Date", + "format": "date-time" + }, + { + "name": "fee", + "baseName": "fee", + "type": "GrantOfferFee", + "format": "" + }, + { + "name": "repayment", + "baseName": "repayment", + "type": "Repayment", + "format": "" + }, + { + "name": "startsAt", + "baseName": "startsAt", + "type": "Date", + "format": "date-time" + } ]; + + static getAttributeTypeMap() { + return CalculatedGrantOffer.attributeTypeMap; + } + + public constructor() { + } +} + +export namespace CalculatedGrantOffer { + export enum ContractTypeEnum { + CashAdvance = 'cashAdvance', + Loan = 'loan' + } +} diff --git a/src/typings/capital/createGrantOfferRequest.ts b/src/typings/capital/createGrantOfferRequest.ts new file mode 100644 index 000000000..195776075 --- /dev/null +++ b/src/typings/capital/createGrantOfferRequest.ts @@ -0,0 +1,35 @@ +/* + * The version of the OpenAPI document: v1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { Amount } from "./amount"; + + +export class CreateGrantOfferRequest { + "amount": Amount; + + 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": "" + } ]; + + static getAttributeTypeMap() { + return CreateGrantOfferRequest.attributeTypeMap; + } + + public constructor() { + } +} + diff --git a/src/typings/capital/disbursementRepayment.ts b/src/typings/capital/disbursementRepayment.ts index fa652bfe1..5196b0a55 100644 --- a/src/typings/capital/disbursementRepayment.ts +++ b/src/typings/capital/disbursementRepayment.ts @@ -13,6 +13,9 @@ export class DisbursementRepayment { * The percentage of your user\'s incoming net volume that is deducted for repaying the grant. The percentage expressed in [basis points](https://www.investopedia.com/terms/b/basispoint.asp). */ "basisPoints": number; + /** + * @deprecated + */ "updateDescription": string; static readonly discriminator: string | undefined = undefined; diff --git a/src/typings/capital/disbursementRepaymentInfoUpdate.ts b/src/typings/capital/disbursementRepaymentInfoUpdate.ts index cbf382ed8..5f55162f3 100644 --- a/src/typings/capital/disbursementRepaymentInfoUpdate.ts +++ b/src/typings/capital/disbursementRepaymentInfoUpdate.ts @@ -13,6 +13,9 @@ export class DisbursementRepaymentInfoUpdate { * The percentage of your user\'s incoming net volume that is deducted for repaying the grant. The percentage expressed in [basis points](https://www.investopedia.com/terms/b/basispoint.asp). */ "basisPoints"?: number; + /** + * @deprecated + */ "updateDescription"?: string; static readonly discriminator: string | undefined = undefined; diff --git a/src/typings/capital/dynamicOffer.ts b/src/typings/capital/dynamicOffer.ts new file mode 100644 index 000000000..4a73a85ff --- /dev/null +++ b/src/typings/capital/dynamicOffer.ts @@ -0,0 +1,114 @@ +/* + * The version of the OpenAPI document: v1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { Amount } from "./amount"; +import { DynamicOfferRepayment } from "./dynamicOfferRepayment"; +import { FinancingType } from "./financingType"; + + +export class DynamicOffer { + /** + * The unique identifier of the account holder that the dynamic offer is for. + */ + "accountHolderId": string; + /** + * The contract type of the offer. Possible values: * **loan** * **cashAdvance** + */ + "contractType": DynamicOffer.ContractTypeEnum; + /** + * The expiration date and time of the offer validity period. + */ + "expiresAt": Date; + "financingType": FinancingType; + /** + * The unique identifier of the dynamic offer. + */ + "id": string; + "maximumAmount": Amount; + "minimumAmount": Amount; + "repayment": DynamicOfferRepayment; + /** + * The starting date and time of the offer validity period. + */ + "startsAt": Date; + + 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": "accountHolderId", + "baseName": "accountHolderId", + "type": "string", + "format": "" + }, + { + "name": "contractType", + "baseName": "contractType", + "type": "DynamicOffer.ContractTypeEnum", + "format": "" + }, + { + "name": "expiresAt", + "baseName": "expiresAt", + "type": "Date", + "format": "date-time" + }, + { + "name": "financingType", + "baseName": "financingType", + "type": "FinancingType", + "format": "" + }, + { + "name": "id", + "baseName": "id", + "type": "string", + "format": "" + }, + { + "name": "maximumAmount", + "baseName": "maximumAmount", + "type": "Amount", + "format": "" + }, + { + "name": "minimumAmount", + "baseName": "minimumAmount", + "type": "Amount", + "format": "" + }, + { + "name": "repayment", + "baseName": "repayment", + "type": "DynamicOfferRepayment", + "format": "" + }, + { + "name": "startsAt", + "baseName": "startsAt", + "type": "Date", + "format": "date-time" + } ]; + + static getAttributeTypeMap() { + return DynamicOffer.attributeTypeMap; + } + + public constructor() { + } +} + +export namespace DynamicOffer { + export enum ContractTypeEnum { + CashAdvance = 'cashAdvance', + Loan = 'loan' + } +} diff --git a/src/typings/capital/dynamicOfferRepayment.ts b/src/typings/capital/dynamicOfferRepayment.ts new file mode 100644 index 000000000..9b90ab79e --- /dev/null +++ b/src/typings/capital/dynamicOfferRepayment.ts @@ -0,0 +1,35 @@ +/* + * The version of the OpenAPI document: v1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { RepaymentTerm } from "./repaymentTerm"; + + +export class DynamicOfferRepayment { + "term": RepaymentTerm; + + 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": "term", + "baseName": "term", + "type": "RepaymentTerm", + "format": "" + } ]; + + static getAttributeTypeMap() { + return DynamicOfferRepayment.attributeTypeMap; + } + + public constructor() { + } +} + diff --git a/src/typings/capital/financingType.ts b/src/typings/capital/financingType.ts new file mode 100644 index 000000000..a5673c353 --- /dev/null +++ b/src/typings/capital/financingType.ts @@ -0,0 +1,13 @@ +/* + * The version of the OpenAPI document: v1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +export enum FinancingType { + HardwareFinancing = 'hardwareFinancing', + BusinessFinancing = 'businessFinancing' +} diff --git a/src/typings/capital/getDynamicOffersResponse.ts b/src/typings/capital/getDynamicOffersResponse.ts new file mode 100644 index 000000000..af7c04ee1 --- /dev/null +++ b/src/typings/capital/getDynamicOffersResponse.ts @@ -0,0 +1,38 @@ +/* + * The version of the OpenAPI document: v1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { DynamicOffer } from "./dynamicOffer"; + + +export class GetDynamicOffersResponse { + /** + * Contains a list of available dynamic offers for the specified account holder. + */ + "dynamicOffers": Array; + + 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": "dynamicOffers", + "baseName": "dynamicOffers", + "type": "Array", + "format": "" + } ]; + + static getAttributeTypeMap() { + return GetDynamicOffersResponse.attributeTypeMap; + } + + public constructor() { + } +} + diff --git a/src/typings/capital/grant.ts b/src/typings/capital/grant.ts index ae4f18ac2..f720cd0f0 100644 --- a/src/typings/capital/grant.ts +++ b/src/typings/capital/grant.ts @@ -20,7 +20,7 @@ export class Grant { */ "grantAccountId": string; /** - * The unique identifier of the selected grant offer. Adyen uses the details of the selected grant offer to create a grant. + * The unique identifier of the selected offer. Adyen uses the details of the selected offer to create a grant. */ "grantOfferId": string; /** diff --git a/src/typings/capital/grantInfo.ts b/src/typings/capital/grantInfo.ts index 6e2a3b818..bfddd8013 100644 --- a/src/typings/capital/grantInfo.ts +++ b/src/typings/capital/grantInfo.ts @@ -17,7 +17,7 @@ export class GrantInfo { */ "grantAccountId": string; /** - * The unique identifier of the selected grant offer. Adyen uses the details of the selected grant offer to create a grant. + * The unique identifier of the selected offer. Adyen uses the details of the selected offer to create a grant. */ "grantOfferId": string; diff --git a/src/typings/capital/grantOffer.ts b/src/typings/capital/grantOffer.ts index 9b5f30d75..c8cac4360 100644 --- a/src/typings/capital/grantOffer.ts +++ b/src/typings/capital/grantOffer.ts @@ -19,21 +19,21 @@ export class GrantOffer { "accountHolderId": string; "amount"?: Amount | null; /** - * The contract type of the grant offer. Possible values: **cashAdvance**, **loan**. + * The contract type of the offer. Possible values: * **loan** * **cashAdvance** */ "contractType"?: GrantOffer.ContractTypeEnum; /** - * The date when the grant offer expires. + * The expiration date and time of the offer validity period. */ "expiresAt"?: Date; "fee"?: GrantOfferFee | null; /** - * The unique identifier of the grant offer. + * The unique identifier of the offer. */ "id"?: string; "repayment"?: Repayment | null; /** - * The date when the grant offer becomes available. + * The starting date and time of the offer validity period. */ "startsAt"?: Date; diff --git a/src/typings/capital/grantOffers.ts b/src/typings/capital/grantOffers.ts index ffbde5d57..748e121ab 100644 --- a/src/typings/capital/grantOffers.ts +++ b/src/typings/capital/grantOffers.ts @@ -12,7 +12,7 @@ import { GrantOffer } from "./grantOffer"; export class GrantOffers { /** - * Contains a list of available grant offers for the specified account holder. + * Contains a list of available offers for the specified account holder. */ "grantOffers": Array; diff --git a/src/typings/capital/ibanAccountIdentification.ts b/src/typings/capital/ibanAccountIdentification.ts index ad27c4203..f80f3ebf6 100644 --- a/src/typings/capital/ibanAccountIdentification.ts +++ b/src/typings/capital/ibanAccountIdentification.ts @@ -11,6 +11,10 @@ import { BankAccountIdentification } from "./bankAccountIdentification"; export class IbanAccountIdentification extends BankAccountIdentification { + /** + * The bank\'s 8- or 11-character BIC or SWIFT code. + */ + "bic"?: string; /** * The international bank account number as defined in the [ISO-13616](https://www.iso.org/standard/81090.html) standard. */ @@ -25,6 +29,12 @@ export class IbanAccountIdentification extends BankAccountIdentification { static override readonly mapping: {[index: string]: string} | undefined = undefined; static override readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ + { + "name": "bic", + "baseName": "bic", + "type": "string", + "format": "" + }, { "name": "iban", "baseName": "iban", diff --git a/src/typings/capital/invalidField.ts b/src/typings/capital/invalidField.ts index d558415f1..9219bc535 100644 --- a/src/typings/capital/invalidField.ts +++ b/src/typings/capital/invalidField.ts @@ -9,6 +9,10 @@ export class InvalidField { + /** + * Description of the validation error. + */ + "message": string; /** * The field that has an invalid value. */ @@ -17,10 +21,6 @@ export class InvalidField { * The invalid value. */ "value": string; - /** - * Description of the validation error. - */ - "message": string; static readonly discriminator: string | undefined = undefined; @@ -28,20 +28,20 @@ export class InvalidField { static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ { - "name": "name", - "baseName": "name", + "name": "message", + "baseName": "message", "type": "string", "format": "" }, { - "name": "value", - "baseName": "value", + "name": "name", + "baseName": "name", "type": "string", "format": "" }, { - "name": "message", - "baseName": "message", + "name": "value", + "baseName": "value", "type": "string", "format": "" } ]; diff --git a/src/typings/capital/models.ts b/src/typings/capital/models.ts index 89a4eeb60..595995633 100644 --- a/src/typings/capital/models.ts +++ b/src/typings/capital/models.ts @@ -1,7 +1,6 @@ export * from "./aULocalAccountIdentification" export * from "./action" export * from "./additionalBankIdentification" -export * from "./additionalBankIdentificationTypes" export * from "./amount" export * from "./bRLocalAccountIdentification" export * from "./balance" @@ -9,6 +8,9 @@ export * from "./bankAccountIdentification" export * from "./cALocalAccountIdentification" export * from "./cALocalBankAccountType" export * from "./cZLocalAccountIdentification" +export * from "./calculateGrantOfferRequest" +export * from "./calculatedGrantOffer" +export * from "./createGrantOfferRequest" export * from "./dKLocalAccountIdentification" export * from "./defaultErrorResponseEntity" export * from "./disbursement" @@ -16,9 +18,13 @@ export * from "./disbursementInfoUpdate" export * from "./disbursementRepayment" export * from "./disbursementRepaymentInfoUpdate" export * from "./disbursements" +export * from "./dynamicOffer" +export * from "./dynamicOfferRepayment" export * from "./fee" +export * from "./financingType" export * from "./fundsCollection" export * from "./fundsCollectionType" +export * from "./getDynamicOffersResponse" export * from "./grant" export * from "./grantAccount" export * from "./grantCounterparty" diff --git a/src/typings/capital/objectSerializer.ts b/src/typings/capital/objectSerializer.ts index d8d9750e9..6156df749 100644 --- a/src/typings/capital/objectSerializer.ts +++ b/src/typings/capital/objectSerializer.ts @@ -3,7 +3,6 @@ export * from "./models"; import { AULocalAccountIdentification } from "./aULocalAccountIdentification"; import { Action } from "./action"; import { AdditionalBankIdentification } from "./additionalBankIdentification"; -import { AdditionalBankIdentificationTypes } from "./additionalBankIdentificationTypes"; import { Amount } from "./amount"; import { BRLocalAccountIdentification } from "./bRLocalAccountIdentification"; import { Balance } from "./balance"; @@ -11,6 +10,9 @@ import { BankAccountIdentification } from "./bankAccountIdentification"; import { CALocalAccountIdentification } from "./cALocalAccountIdentification"; import { CALocalBankAccountType } from "./cALocalBankAccountType"; import { CZLocalAccountIdentification } from "./cZLocalAccountIdentification"; +import { CalculateGrantOfferRequest } from "./calculateGrantOfferRequest"; +import { CalculatedGrantOffer } from "./calculatedGrantOffer"; +import { CreateGrantOfferRequest } from "./createGrantOfferRequest"; import { DKLocalAccountIdentification } from "./dKLocalAccountIdentification"; import { DefaultErrorResponseEntity } from "./defaultErrorResponseEntity"; import { Disbursement } from "./disbursement"; @@ -18,9 +20,13 @@ import { DisbursementInfoUpdate } from "./disbursementInfoUpdate"; import { DisbursementRepayment } from "./disbursementRepayment"; import { DisbursementRepaymentInfoUpdate } from "./disbursementRepaymentInfoUpdate"; import { Disbursements } from "./disbursements"; +import { DynamicOffer } from "./dynamicOffer"; +import { DynamicOfferRepayment } from "./dynamicOfferRepayment"; import { Fee } from "./fee"; +import { FinancingType } from "./financingType"; import { FundsCollection } from "./fundsCollection"; import { FundsCollectionType } from "./fundsCollectionType"; +import { GetDynamicOffersResponse } from "./getDynamicOffersResponse"; import { Grant } from "./grant"; import { GrantAccount } from "./grantAccount"; import { GrantCounterparty } from "./grantCounterparty"; @@ -62,15 +68,13 @@ let primitives = [ ]; let enumsMap: Set = new Set([ - AdditionalBankIdentificationTypes.AuBsbCode, - AdditionalBankIdentificationTypes.CaRoutingNumber, - AdditionalBankIdentificationTypes.GbSortCode, - AdditionalBankIdentificationTypes.HkBankCode, - AdditionalBankIdentificationTypes.JpZenginCode, - AdditionalBankIdentificationTypes.NzBankBranchCode, - AdditionalBankIdentificationTypes.UsRoutingNumber, + "AdditionalBankIdentification.TypeEnum", CALocalBankAccountType.Checking, CALocalBankAccountType.Savings, + "CalculatedGrantOffer.ContractTypeEnum", + "DynamicOffer.ContractTypeEnum", + FinancingType.HardwareFinancing, + FinancingType.BusinessFinancing, FundsCollectionType.UnscheduledRepayment, FundsCollectionType.Revocation, "GrantOffer.ContractTypeEnum", @@ -89,6 +93,9 @@ let typeMap: {[index: string]: any} = { "BankAccountIdentification": BankAccountIdentification, "CALocalAccountIdentification": CALocalAccountIdentification, "CZLocalAccountIdentification": CZLocalAccountIdentification, + "CalculateGrantOfferRequest": CalculateGrantOfferRequest, + "CalculatedGrantOffer": CalculatedGrantOffer, + "CreateGrantOfferRequest": CreateGrantOfferRequest, "DKLocalAccountIdentification": DKLocalAccountIdentification, "DefaultErrorResponseEntity": DefaultErrorResponseEntity, "Disbursement": Disbursement, @@ -96,8 +103,11 @@ let typeMap: {[index: string]: any} = { "DisbursementRepayment": DisbursementRepayment, "DisbursementRepaymentInfoUpdate": DisbursementRepaymentInfoUpdate, "Disbursements": Disbursements, + "DynamicOffer": DynamicOffer, + "DynamicOfferRepayment": DynamicOfferRepayment, "Fee": Fee, "FundsCollection": FundsCollection, + "GetDynamicOffersResponse": GetDynamicOffersResponse, "Grant": Grant, "GrantAccount": GrantAccount, "GrantCounterparty": GrantCounterparty,