Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/services/billingRequestTemplateService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down
9 changes: 8 additions & 1 deletion src/types/Types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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
Expand Down
Loading