From 487daf11e39aacf178b8e02254aaa37cbb9c7324 Mon Sep 17 00:00:00 2001 From: Derek Meulmeester Date: Thu, 18 Jan 2024 13:59:12 -0500 Subject: [PATCH] Adds setCollectionOptions to account-onboarding --- types/config.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/types/config.ts b/types/config.ts index da4ea07..3e95297 100644 --- a/types/config.ts +++ b/types/config.ts @@ -1,6 +1,11 @@ /* eslint-disable @typescript-eslint/no-empty-function */ /* eslint-disable @typescript-eslint/no-unused-vars */ +type CollectionOptions = { + fields: "currently_due" | "eventually_due"; + futureRequirements?: "omit" | "include"; +}; + export const ConnectElementCustomMethodConfig = { "account-onboarding": { setFullTermsOfServiceUrl: ( @@ -13,6 +18,9 @@ export const ConnectElementCustomMethodConfig = { setSkipTermsOfServiceCollection: ( _skipTermsOfServiceCollection: boolean | undefined ): void => {}, + setCollectionOptions: ( + _collectionOptions: CollectionOptions | undefined + ): void => {}, setOnExit: (_listener: (() => void) | undefined): void => {} }, "payment-details": {