From 279f3fd2f566f5d88609760d8b2950f61ee00407 Mon Sep 17 00:00:00 2001 From: AdyenAutomationBot <38424300+AdyenAutomationBot@users.noreply.github.com> Date: Wed, 18 Mar 2026 16:00:48 +0000 Subject: [PATCH] [configurationwebhooks] Automated update from Adyen/adyen-openapi@6f2bb26 --- .../configurationWebhooksHandler.ts | 14 +++ src/typings/configurationWebhooks/mandate.ts | 109 ++++++++++++++++++ .../mandateBankAccount.ts | 43 +++++++ .../mandateNotificationData.ts | 45 ++++++++ .../mandateNotificationRequest.ts | 71 ++++++++++++ .../mandatePartyIdentification.ts | 36 ++++++ src/typings/configurationWebhooks/models.ts | 6 + .../configurationWebhooks/objectSerializer.ts | 16 +++ .../platformPaymentConfiguration.ts | 2 +- .../uKLocalMandateAccountIdentification.ts | 61 ++++++++++ 10 files changed, 402 insertions(+), 1 deletion(-) create mode 100644 src/typings/configurationWebhooks/mandate.ts create mode 100644 src/typings/configurationWebhooks/mandateBankAccount.ts create mode 100644 src/typings/configurationWebhooks/mandateNotificationData.ts create mode 100644 src/typings/configurationWebhooks/mandateNotificationRequest.ts create mode 100644 src/typings/configurationWebhooks/mandatePartyIdentification.ts create mode 100644 src/typings/configurationWebhooks/uKLocalMandateAccountIdentification.ts diff --git a/src/typings/configurationWebhooks/configurationWebhooksHandler.ts b/src/typings/configurationWebhooks/configurationWebhooksHandler.ts index db5d8617c..d9119c302 100644 --- a/src/typings/configurationWebhooks/configurationWebhooksHandler.ts +++ b/src/typings/configurationWebhooks/configurationWebhooksHandler.ts @@ -17,6 +17,7 @@ export type GenericWebhook = | configurationWebhooks.AccountHolderNotificationRequest | configurationWebhooks.BalanceAccountNotificationRequest | configurationWebhooks.CardOrderNotificationRequest + | configurationWebhooks.MandateNotificationRequest | configurationWebhooks.NetworkTokenNotificationRequest | configurationWebhooks.PaymentNotificationRequest | configurationWebhooks.ScoreNotificationRequest @@ -57,6 +58,10 @@ export class ConfigurationWebhooksHandler { return this.getCardOrderNotificationRequest(); } + if(Object.values(configurationWebhooks.MandateNotificationRequest.TypeEnum).includes(type)) { + return this.getMandateNotificationRequest(); + } + if(Object.values(configurationWebhooks.NetworkTokenNotificationRequest.TypeEnum).includes(type)) { return this.getNetworkTokenNotificationRequest(); } @@ -104,6 +109,15 @@ export class ConfigurationWebhooksHandler { return configurationWebhooks.ObjectSerializer.deserialize(this.payload, "CardOrderNotificationRequest"); } + /** + * Deserialize the webhook payload into a MandateNotificationRequest + * + * @returns Deserialized MandateNotificationRequest object. + */ + public getMandateNotificationRequest(): configurationWebhooks.MandateNotificationRequest { + return configurationWebhooks.ObjectSerializer.deserialize(this.payload, "MandateNotificationRequest"); + } + /** * Deserialize the webhook payload into a NetworkTokenNotificationRequest * diff --git a/src/typings/configurationWebhooks/mandate.ts b/src/typings/configurationWebhooks/mandate.ts new file mode 100644 index 000000000..d6971170b --- /dev/null +++ b/src/typings/configurationWebhooks/mandate.ts @@ -0,0 +1,109 @@ +/* + * The version of the OpenAPI document: v2 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { MandateBankAccount } from "./mandateBankAccount"; + + +export class Mandate { + /** + * The unique identifier of the balance account linked to the payment instrument. + */ + "balanceAccountId"?: string; + "counterparty"?: MandateBankAccount | null; + "createdAt"?: any; + /** + * The unique identifier of the mandate. + */ + "id"?: string; + /** + * The unique identifier of the payment instrument linked to the mandate. + */ + "paymentInstrumentId"?: string; + /** + * The status of the mandate. Possible values: **pending**, **approved**, **cancelled**. + */ + "status"?: Mandate.StatusEnum; + /** + * The type of mandate. Possible value: **bacs**. + */ + "type"?: Mandate.TypeEnum; + "updatedAt"?: any; + + 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": "balanceAccountId", + "baseName": "balanceAccountId", + "type": "string", + "format": "" + }, + { + "name": "counterparty", + "baseName": "counterparty", + "type": "MandateBankAccount | null", + "format": "" + }, + { + "name": "createdAt", + "baseName": "createdAt", + "type": "any", + "format": "" + }, + { + "name": "id", + "baseName": "id", + "type": "string", + "format": "" + }, + { + "name": "paymentInstrumentId", + "baseName": "paymentInstrumentId", + "type": "string", + "format": "" + }, + { + "name": "status", + "baseName": "status", + "type": "Mandate.StatusEnum", + "format": "" + }, + { + "name": "type", + "baseName": "type", + "type": "Mandate.TypeEnum", + "format": "" + }, + { + "name": "updatedAt", + "baseName": "updatedAt", + "type": "any", + "format": "" + } ]; + + static getAttributeTypeMap() { + return Mandate.attributeTypeMap; + } + + public constructor() { + } +} + +export namespace Mandate { + export enum StatusEnum { + Approved = 'approved', + Cancelled = 'cancelled', + Pending = 'pending' + } + export enum TypeEnum { + Bacs = 'bacs' + } +} diff --git a/src/typings/configurationWebhooks/mandateBankAccount.ts b/src/typings/configurationWebhooks/mandateBankAccount.ts new file mode 100644 index 000000000..06450826e --- /dev/null +++ b/src/typings/configurationWebhooks/mandateBankAccount.ts @@ -0,0 +1,43 @@ +/* + * The version of the OpenAPI document: v2 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { MandatePartyIdentification } from "./mandatePartyIdentification"; +import { UKLocalMandateAccountIdentification } from "./uKLocalMandateAccountIdentification"; + + +export class MandateBankAccount { + "accountHolder": MandatePartyIdentification; + "accountIdentification": UKLocalMandateAccountIdentification; + + 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": "accountHolder", + "baseName": "accountHolder", + "type": "MandatePartyIdentification", + "format": "" + }, + { + "name": "accountIdentification", + "baseName": "accountIdentification", + "type": "UKLocalMandateAccountIdentification", + "format": "" + } ]; + + static getAttributeTypeMap() { + return MandateBankAccount.attributeTypeMap; + } + + public constructor() { + } +} + diff --git a/src/typings/configurationWebhooks/mandateNotificationData.ts b/src/typings/configurationWebhooks/mandateNotificationData.ts new file mode 100644 index 000000000..4331ab663 --- /dev/null +++ b/src/typings/configurationWebhooks/mandateNotificationData.ts @@ -0,0 +1,45 @@ +/* + * The version of the OpenAPI document: v2 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { Mandate } from "./mandate"; + + +export class MandateNotificationData { + /** + * The unique identifier of the balance platform. + */ + "balancePlatform"?: string; + "mandate"?: Mandate | 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": "balancePlatform", + "baseName": "balancePlatform", + "type": "string", + "format": "" + }, + { + "name": "mandate", + "baseName": "mandate", + "type": "Mandate | null", + "format": "" + } ]; + + static getAttributeTypeMap() { + return MandateNotificationData.attributeTypeMap; + } + + public constructor() { + } +} + diff --git a/src/typings/configurationWebhooks/mandateNotificationRequest.ts b/src/typings/configurationWebhooks/mandateNotificationRequest.ts new file mode 100644 index 000000000..42b76a9e8 --- /dev/null +++ b/src/typings/configurationWebhooks/mandateNotificationRequest.ts @@ -0,0 +1,71 @@ +/* + * The version of the OpenAPI document: v2 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + +import { MandateNotificationData } from "./mandateNotificationData"; + + +export class MandateNotificationRequest { + "data": MandateNotificationData; + /** + * The environment from which the webhook originated. Possible values: **test**, **live**. + */ + "environment": string; + /** + * When the event was queued. + */ + "timestamp"?: Date; + /** + * Type of webhook. + */ + "type": MandateNotificationRequest.TypeEnum; + + 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": "data", + "baseName": "data", + "type": "MandateNotificationData", + "format": "" + }, + { + "name": "environment", + "baseName": "environment", + "type": "string", + "format": "" + }, + { + "name": "timestamp", + "baseName": "timestamp", + "type": "Date", + "format": "date-time" + }, + { + "name": "type", + "baseName": "type", + "type": "MandateNotificationRequest.TypeEnum", + "format": "" + } ]; + + static getAttributeTypeMap() { + return MandateNotificationRequest.attributeTypeMap; + } + + public constructor() { + } +} + +export namespace MandateNotificationRequest { + export enum TypeEnum { + BalancePlatformMandateCreated = 'balancePlatform.mandate.created', + BalancePlatformMandateUpdated = 'balancePlatform.mandate.updated' + } +} diff --git a/src/typings/configurationWebhooks/mandatePartyIdentification.ts b/src/typings/configurationWebhooks/mandatePartyIdentification.ts new file mode 100644 index 000000000..7e3857a76 --- /dev/null +++ b/src/typings/configurationWebhooks/mandatePartyIdentification.ts @@ -0,0 +1,36 @@ +/* + * The version of the OpenAPI document: v2 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class MandatePartyIdentification { + /** + * The full name of the entity that owns the bank account. Supported characters: [a-z] [A-Z] [0-9] , . ; : - — / \\ + & ! ? @ ( ) \" \' and space. + */ + "fullName"?: 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": "fullName", + "baseName": "fullName", + "type": "string", + "format": "" + } ]; + + static getAttributeTypeMap() { + return MandatePartyIdentification.attributeTypeMap; + } + + public constructor() { + } +} + diff --git a/src/typings/configurationWebhooks/models.ts b/src/typings/configurationWebhooks/models.ts index 83785b0b5..397913534 100644 --- a/src/typings/configurationWebhooks/models.ts +++ b/src/typings/configurationWebhooks/models.ts @@ -29,6 +29,11 @@ export * from "./deliveryContact" export * from "./device" export * from "./expiry" export * from "./ibanAccountIdentification" +export * from "./mandate" +export * from "./mandateBankAccount" +export * from "./mandateNotificationData" +export * from "./mandateNotificationRequest" +export * from "./mandatePartyIdentification" export * from "./name" export * from "./networkTokenNotificationDataV2" export * from "./networkTokenNotificationRequest" @@ -54,6 +59,7 @@ export * from "./sweepConfigurationV2" export * from "./sweepCounterparty" export * from "./sweepSchedule" export * from "./tokenAuthentication" +export * from "./uKLocalMandateAccountIdentification" export * from "./validationFacts" export * from "./verificationDeadline" export * from "./verificationError" diff --git a/src/typings/configurationWebhooks/objectSerializer.ts b/src/typings/configurationWebhooks/objectSerializer.ts index 0d102e264..e360afeae 100644 --- a/src/typings/configurationWebhooks/objectSerializer.ts +++ b/src/typings/configurationWebhooks/objectSerializer.ts @@ -31,6 +31,11 @@ import { DeliveryContact } from "./deliveryContact"; import { Device } from "./device"; import { Expiry } from "./expiry"; import { IbanAccountIdentification } from "./ibanAccountIdentification"; +import { Mandate } from "./mandate"; +import { MandateBankAccount } from "./mandateBankAccount"; +import { MandateNotificationData } from "./mandateNotificationData"; +import { MandateNotificationRequest } from "./mandateNotificationRequest"; +import { MandatePartyIdentification } from "./mandatePartyIdentification"; import { Name } from "./name"; import { NetworkTokenNotificationDataV2 } from "./networkTokenNotificationDataV2"; import { NetworkTokenNotificationRequest } from "./networkTokenNotificationRequest"; @@ -56,6 +61,7 @@ import { SweepConfigurationV2 } from "./sweepConfigurationV2"; import { SweepCounterparty } from "./sweepCounterparty"; import { SweepSchedule } from "./sweepSchedule"; import { TokenAuthentication } from "./tokenAuthentication"; +import { UKLocalMandateAccountIdentification } from "./uKLocalMandateAccountIdentification"; import { ValidationFacts } from "./validationFacts"; import { VerificationDeadline } from "./verificationDeadline"; import { VerificationError } from "./verificationError"; @@ -93,6 +99,9 @@ let enumsMap: Set = new Set([ "CardOrderItemDeliveryStatus.StatusEnum", "CardOrderNotificationRequest.TypeEnum", "IbanAccountIdentification.TypeEnum", + "Mandate.StatusEnum", + "Mandate.TypeEnum", + "MandateNotificationRequest.TypeEnum", "NetworkTokenNotificationRequest.TypeEnum", "PaymentInstrument.StatusEnum", "PaymentInstrument.StatusReasonEnum", @@ -109,6 +118,7 @@ let enumsMap: Set = new Set([ "SweepConfigurationV2.StatusEnum", "SweepConfigurationV2.TypeEnum", "SweepSchedule.TypeEnum", + "UKLocalMandateAccountIdentification.TypeEnum", "ValidationFacts.ResultEnum", "VerificationDeadline.CapabilitiesEnum", "VerificationError.CapabilitiesEnum", @@ -150,6 +160,11 @@ let typeMap: {[index: string]: any} = { "Device": Device, "Expiry": Expiry, "IbanAccountIdentification": IbanAccountIdentification, + "Mandate": Mandate, + "MandateBankAccount": MandateBankAccount, + "MandateNotificationData": MandateNotificationData, + "MandateNotificationRequest": MandateNotificationRequest, + "MandatePartyIdentification": MandatePartyIdentification, "Name": Name, "NetworkTokenNotificationDataV2": NetworkTokenNotificationDataV2, "NetworkTokenNotificationRequest": NetworkTokenNotificationRequest, @@ -175,6 +190,7 @@ let typeMap: {[index: string]: any} = { "SweepCounterparty": SweepCounterparty, "SweepSchedule": SweepSchedule, "TokenAuthentication": TokenAuthentication, + "UKLocalMandateAccountIdentification": UKLocalMandateAccountIdentification, "ValidationFacts": ValidationFacts, "VerificationDeadline": VerificationDeadline, "VerificationError": VerificationError, diff --git a/src/typings/configurationWebhooks/platformPaymentConfiguration.ts b/src/typings/configurationWebhooks/platformPaymentConfiguration.ts index 87cd7da11..9cd90c3ad 100644 --- a/src/typings/configurationWebhooks/platformPaymentConfiguration.ts +++ b/src/typings/configurationWebhooks/platformPaymentConfiguration.ts @@ -14,7 +14,7 @@ export class PlatformPaymentConfiguration { */ "salesDayClosingTime"?: string; /** - * Specifies after how many business days the funds in a settlement batch are made available in this balance account. Possible values: **1** to **20**, or **null**. Default value: **null**. + * Specifies after how many business days the funds in a settlement batch are made available in this balance account. Requires Custom Sales Day Payout to be enabled for your balance account. Contact your account manager or implementation manager to enable this. Possible values: **1** to **20**, or **null**. Default value: **null**. */ "settlementDelayDays"?: number; diff --git a/src/typings/configurationWebhooks/uKLocalMandateAccountIdentification.ts b/src/typings/configurationWebhooks/uKLocalMandateAccountIdentification.ts new file mode 100644 index 000000000..745ad9aa0 --- /dev/null +++ b/src/typings/configurationWebhooks/uKLocalMandateAccountIdentification.ts @@ -0,0 +1,61 @@ +/* + * The version of the OpenAPI document: v2 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit this class manually. + */ + + +export class UKLocalMandateAccountIdentification { + /** + * The 8-digit bank account number, without separators or whitespace. + */ + "accountNumber": string; + /** + * The 6-digit [sort code](https://en.wikipedia.org/wiki/Sort_code), without separators or whitespace. + */ + "sortCode": string; + /** + * **ukLocal** + */ + "type": UKLocalMandateAccountIdentification.TypeEnum; + + 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": "accountNumber", + "baseName": "accountNumber", + "type": "string", + "format": "" + }, + { + "name": "sortCode", + "baseName": "sortCode", + "type": "string", + "format": "" + }, + { + "name": "type", + "baseName": "type", + "type": "UKLocalMandateAccountIdentification.TypeEnum", + "format": "" + } ]; + + static getAttributeTypeMap() { + return UKLocalMandateAccountIdentification.attributeTypeMap; + } + + public constructor() { + } +} + +export namespace UKLocalMandateAccountIdentification { + export enum TypeEnum { + UkLocal = 'ukLocal' + } +}