Skip to content

Commit

Permalink
add recipients component to connect-js (#179)
Browse files Browse the repository at this point in the history
* changes

* more

* fix style issue

* make strong type
  • Loading branch information
kostas-stripe authored Oct 8, 2024
1 parent 69b6e9f commit a960402
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/shared.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ export type ConnectElementHTMLName =
| "stripe-connect-issuing-cards-list"
| "stripe-connect-financial-account"
| "stripe-connect-financial-account-transactions"
| "stripe-connect-recipients"
| "stripe-connect-capital-financing"
| "stripe-connect-capital-financing-application"
| "stripe-connect-capital-financing-promotion"
Expand Down Expand Up @@ -54,6 +55,7 @@ export const componentNameMapping: Record<
"issuing-card": "stripe-connect-issuing-card",
"issuing-cards-list": "stripe-connect-issuing-cards-list",
"financial-account": "stripe-connect-financial-account",
recipients: "stripe-connect-recipients",
"financial-account-transactions":
"stripe-connect-financial-account-transactions",
"capital-financing": "stripe-connect-capital-financing",
Expand Down
5 changes: 5 additions & 0 deletions types/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ export type IntervalType = "day" | "week" | "month" | "quarter" | "year";

export type ReportName = "gross_volume" | "net_volume";

export type RecipientDataSource = "customers";

export type EmbeddedErrorType =
/**
* Failure to connect to Stripe's API.
Expand Down Expand Up @@ -147,6 +149,9 @@ export const ConnectElementCustomMethodConfig = {
"financial-account-transactions": {
setFinancialAccount: (_financialAccount: string): void => {}
},
recipients: {
setDataSource: (_dataSource: RecipientDataSource): void => {}
},
"app-install": {
setApp: (_app: string | undefined): void => {},
setOnAppInstallStateFetched: (
Expand Down
1 change: 1 addition & 0 deletions types/shared.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -463,6 +463,7 @@ export type ConnectElementTagName =
| "issuing-cards-list"
| "financial-account"
| "financial-account-transactions"
| "recipients"
| "capital-financing"
| "capital-financing-application"
| "capital-financing-promotion"
Expand Down

0 comments on commit a960402

Please sign in to comment.