Skip to content

Commit

Permalink
Capital financing promotion config update (#158)
Browse files Browse the repository at this point in the history
  • Loading branch information
ismacias-stripe committed Sep 13, 2024
1 parent e61c1d5 commit 14976ae
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion types/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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 => {}
}
};

0 comments on commit 14976ae

Please sign in to comment.