From 0f0d703a10c38572dbcdb47aef82284ab9c924d9 Mon Sep 17 00:00:00 2001 From: "gocardless-ci-robot[bot]" <123969075+gocardless-ci-robot[bot]@users.noreply.github.com> Date: Mon, 14 Sep 2026 10:26:59 +0000 Subject: [PATCH] Changes generated by 76f607c5db851728117c4af96262d685aa71e459 This commit was automatically created from gocardless/client-library-templates@76f607c5db851728117c4af96262d685aa71e459 by the `push-files` action. Workflow run: https://github.com/gocardless/client-library-templates/actions/runs/34833023101 --- src/services/billingRequestTemplateService.ts | 4 ++-- src/types/Types.ts | 9 ++++++++- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/src/services/billingRequestTemplateService.ts b/src/services/billingRequestTemplateService.ts index 3df12949..dd392139 100644 --- a/src/services/billingRequestTemplateService.ts +++ b/src/services/billingRequestTemplateService.ts @@ -66,7 +66,7 @@ interface BillingRequestTemplateCreateRequest { // Verification preference for the mandate. - mandate_request_verify?: string; + mandate_request_verify?: `${Types.BillingRequestTemplateMandateRequestVerify}`; // Key-value store of custom data. Up to 3 keys are permitted, with key names up // to 50 characters and values up to 500 characters. @@ -143,7 +143,7 @@ interface BillingRequestTemplateUpdateRequest { // Verification preference for the mandate. - mandate_request_verify?: string; + mandate_request_verify?: `${Types.BillingRequestTemplateMandateRequestVerify}`; // Key-value store of custom data. Up to 3 keys are permitted, with key names up // to 50 characters and values up to 500 characters. diff --git a/src/types/Types.ts b/src/types/Types.ts index 874bb5de..4b231292 100644 --- a/src/types/Types.ts +++ b/src/types/Types.ts @@ -1631,7 +1631,7 @@ export type BillingRequestTemplate = { mandate_request_scheme?: string | null; // Verification preference for the mandate. - mandate_request_verify?: string | null; + mandate_request_verify?: `${BillingRequestTemplateMandateRequestVerify}` | null; // Key-value store of custom data. Up to 3 keys are permitted, with key names // up to 50 characters and values up to 500 characters. @@ -1683,6 +1683,13 @@ export type BillingRequestTemplateCreateRequestLinks = { creditor?: string; }; +export enum BillingRequestTemplateMandateRequestVerify { + Minimum = 'minimum', + Recommended = 'recommended', + WhenAvailable = 'when_available', + Always = 'always', +} + /** Type for a billingrequesttemplatemandaterequestconstraints resource. */ export type BillingRequestTemplateMandateRequestConstraints = { // The latest date at which payments can be taken, must occur after start_date