From 14976aecb5751ad5b43b0668215e798b463b7077 Mon Sep 17 00:00:00 2001 From: ismacias-stripe <158622737+ismacias-stripe@users.noreply.github.com> Date: Fri, 13 Sep 2024 08:14:07 -0700 Subject: [PATCH] Capital financing promotion config update (#158) --- types/config.ts | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/types/config.ts b/types/config.ts index 7828f40..359cdfa 100644 --- a/types/config.ts +++ b/types/config.ts @@ -39,6 +39,12 @@ export type EmbeddedError = { message?: string; }; +export type FinancingProductType = { + productType: "standard" | "refill" | "none"; +}; + +export type FinancingPromotionLayoutType = "full" | "banner"; + export type EmbeddedErrorType = /** * Failure to connect to Stripe's API. @@ -163,6 +169,12 @@ export const ConnectElementCustomMethodConfig = { setOnApplicationSubmitted: (_listener: (() => void) | undefined): void => {} }, "capital-financing-promotion": { - setOnApplicationSubmitted: (_listener: (() => void) | undefined): void => {} + setLayout: (_layout: FinancingPromotionLayoutType | undefined): void => {}, + setOnApplicationSubmitted: ( + _listener: (() => void) | undefined + ): void => {}, + setOnEligibleFinancingOfferLoaded: ( + _listener: (({ productType }: FinancingProductType) => void) | undefined + ): void => {} } };