@raideno/convex-stripe 0.3.2 → 0.3.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +17 -0
- package/dist/index.d.ts +299 -29
- package/dist/server.js +159 -359
- package/package.json +5 -4
package/README.md
CHANGED
|
@@ -99,6 +99,23 @@ export default defineSchema({
|
|
|
99
99
|
});
|
|
100
100
|
```
|
|
101
101
|
|
|
102
|
+
If you only want to sync specific tables and avoid creating empty tables in your database, you can use the `allStripeTablesExcept` or `onlyStripeTables` helpers instead of `stripeTables`:
|
|
103
|
+
|
|
104
|
+
```ts
|
|
105
|
+
// convex/schema.ts
|
|
106
|
+
|
|
107
|
+
import { defineSchema } from "convex/server";
|
|
108
|
+
import { onlyStripeTables } from "@raideno/convex-stripe/server";
|
|
109
|
+
|
|
110
|
+
export default defineSchema({
|
|
111
|
+
...onlyStripeTables(["stripeCustomers", "stripeSubscriptions", "stripeProducts", "stripePrices"]),
|
|
112
|
+
// your other tables...
|
|
113
|
+
});
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
> [!WARNING]
|
|
117
|
+
> Ensure that your table configuration in `convex/schema.ts` matches your `sync.tables` configuration in `convex/stripe.ts` exactly! If your `sync.tables` tries to sync a table that is excluded from your schema, Convex Stripe will throw a runtime error when processing webhooks.
|
|
118
|
+
|
|
102
119
|
See [Tables Reference](./documentation/references/tables.md) for the full list of tables and their schemas.
|
|
103
120
|
|
|
104
121
|
### 4. Initialize the Library
|
package/dist/index.d.ts
CHANGED
|
@@ -5,7 +5,6 @@ import { GenericDataModel } from 'convex/server';
|
|
|
5
5
|
import { GenericId } from 'convex/values';
|
|
6
6
|
import { GenericMutationCtx } from 'convex/server';
|
|
7
7
|
import { HttpRouter } from 'convex/server';
|
|
8
|
-
import { IdField } from 'convex/server';
|
|
9
8
|
import { Infer } from 'convex/values';
|
|
10
9
|
import { RegisteredAction } from 'convex/server';
|
|
11
10
|
import { RegisteredMutation } from 'convex/server';
|
|
@@ -26,6 +25,8 @@ import { VUnion } from 'convex/values';
|
|
|
26
25
|
|
|
27
26
|
declare type AllRedirectHandlers = (typeof REDIRECT_HANDLERS)[number];
|
|
28
27
|
|
|
28
|
+
export declare const allStripeTablesExcept: (tables: Array<keyof typeof stripeTables>) => typeof stripeTables;
|
|
29
|
+
|
|
29
30
|
declare type ArgSchema = Record<string, Validator<any, "optional" | "required", any>>;
|
|
30
31
|
|
|
31
32
|
export declare function buildSignedReturnUrl<O extends ReturnOrigin>({ configuration, origin, failureUrl, targetUrl, data, }: {
|
|
@@ -41,7 +42,7 @@ export declare type CallbackAfterChange = (context: GenericMutationCtx<any>, ope
|
|
|
41
42
|
export declare type CallbackEvent = {
|
|
42
43
|
[K in keyof StripeDataModel]: {
|
|
43
44
|
table: K;
|
|
44
|
-
_id:
|
|
45
|
+
_id: StripeDataModel[K]["document"]["_id"];
|
|
45
46
|
};
|
|
46
47
|
}[keyof StripeDataModel];
|
|
47
48
|
|
|
@@ -483,8 +484,8 @@ export declare const internalConvexStripe: (configuration_: InputConfiguration,
|
|
|
483
484
|
idField?: string | undefined;
|
|
484
485
|
idValue?: any;
|
|
485
486
|
field?: string | undefined;
|
|
486
|
-
operation: string;
|
|
487
487
|
table: string;
|
|
488
|
+
operation: string;
|
|
488
489
|
}, Promise<{
|
|
489
490
|
_id: GenericId<"stripeAccounts" | "stripeProducts" | "stripePrices" | "stripeCustomers" | "stripeSubscriptions" | "stripeCoupons" | "stripePromotionCodes" | "stripePayouts" | "stripeRefunds" | "stripePaymentIntents" | "stripeCheckoutSessions" | "stripeInvoices" | "stripeReviews" | "stripePlans" | "stripeDisputes" | "stripeEarlyFraudWarnings" | "stripeTaxIds" | "stripeSetupIntents" | "stripeCreditNotes" | "stripeCharges" | "stripePaymentMethods" | "stripeSubscriptionSchedules" | "stripeMandates" | "stripeBillingPortalConfigurations" | "stripeTransfers" | "stripeCapabilities"> | null;
|
|
490
491
|
doc?: undefined;
|
|
@@ -1159,9 +1160,9 @@ export declare const internalConvexStripe: (configuration_: InputConfiguration,
|
|
|
1159
1160
|
object: string;
|
|
1160
1161
|
type: string;
|
|
1161
1162
|
id: string;
|
|
1163
|
+
value: string;
|
|
1162
1164
|
created: number;
|
|
1163
1165
|
livemode: boolean;
|
|
1164
|
-
value: string;
|
|
1165
1166
|
};
|
|
1166
1167
|
lastSyncedAt: number;
|
|
1167
1168
|
taxIdId: string;
|
|
@@ -1327,8 +1328,8 @@ export declare const internalConvexStripe: (configuration_: InputConfiguration,
|
|
|
1327
1328
|
_creationTime: number;
|
|
1328
1329
|
accountId?: string | undefined;
|
|
1329
1330
|
stripe: {
|
|
1330
|
-
metadata?: Record<string, string | number | null> | null | undefined;
|
|
1331
1331
|
link?: any;
|
|
1332
|
+
metadata?: Record<string, string | number | null> | null | undefined;
|
|
1332
1333
|
billing_details?: any;
|
|
1333
1334
|
customer?: string | null | undefined;
|
|
1334
1335
|
radar_options?: any;
|
|
@@ -1630,6 +1631,8 @@ export declare class Logger {
|
|
|
1630
1631
|
debug(message: string): void;
|
|
1631
1632
|
}
|
|
1632
1633
|
|
|
1634
|
+
export declare const onlyStripeTables: (tables: Array<keyof typeof stripeTables>) => typeof stripeTables;
|
|
1635
|
+
|
|
1633
1636
|
declare const PayImplementation: {
|
|
1634
1637
|
name: string;
|
|
1635
1638
|
handler: (context: GenericActionCtx<StripeDataModel>, args: {
|
|
@@ -1657,7 +1660,20 @@ declare type RecursiveDeepRequired<T> = T extends (...args: any[]) => any ? T :
|
|
|
1657
1660
|
[K in keyof T]-?: RecursiveDeepRequired<T[K]>;
|
|
1658
1661
|
} : T;
|
|
1659
1662
|
|
|
1660
|
-
declare const REDIRECT_HANDLERS: RedirectHandler<readonly
|
|
1663
|
+
export declare const REDIRECT_HANDLERS: readonly [RedirectHandler<readonly ["create-account-link-return", "create-account-link-refresh"], {
|
|
1664
|
+
accountId: VString<string, "required">;
|
|
1665
|
+
}>, RedirectHandler<readonly ["pay-cancel", "pay-success", "pay-return"], {
|
|
1666
|
+
accountId: VString<string | undefined, "optional">;
|
|
1667
|
+
entityId: VString<string, "required">;
|
|
1668
|
+
customerId: VString<string, "required">;
|
|
1669
|
+
referenceId: VString<string, "required">;
|
|
1670
|
+
}>, RedirectHandler<readonly ["portal-return"], {
|
|
1671
|
+
accountId: VString<string | undefined, "optional">;
|
|
1672
|
+
entityId: VString<string, "required">;
|
|
1673
|
+
}>, RedirectHandler<readonly ["subscribe-cancel", "subscribe-success", "subscribe-return"], {
|
|
1674
|
+
accountId: VString<string | undefined, "optional">;
|
|
1675
|
+
entityId: VString<string, "required">;
|
|
1676
|
+
}>];
|
|
1661
1677
|
|
|
1662
1678
|
export declare type RedirectHandler<TOrigins extends readonly string[], S extends ArgSchema = {}> = {
|
|
1663
1679
|
origins: TOrigins;
|
|
@@ -1665,7 +1681,7 @@ export declare type RedirectHandler<TOrigins extends readonly string[], S extend
|
|
|
1665
1681
|
handle: (origin: TOrigins[number], context: GenericActionCtx<StripeDataModel>, data: InferArgs<S>, configuration: InternalConfiguration, options: InternalOptions) => Promise<void>;
|
|
1666
1682
|
};
|
|
1667
1683
|
|
|
1668
|
-
declare const RETURN_ORIGINS:
|
|
1684
|
+
declare const RETURN_ORIGINS: ("create-account-link-return" | "create-account-link-refresh" | "pay-cancel" | "pay-success" | "pay-return" | "portal-return" | "subscribe-cancel" | "subscribe-success" | "subscribe-return")[];
|
|
1669
1685
|
|
|
1670
1686
|
declare type ReturnDataMap = {
|
|
1671
1687
|
[H in AllRedirectHandlers as H["origins"][number]]: H extends RedirectHandler<any, infer S> ? InferArgs<S> : never;
|
|
@@ -1756,9 +1772,9 @@ future_requirements: VAny<any, "optional", string>;
|
|
|
1756
1772
|
groups: VAny<any, "optional", string>;
|
|
1757
1773
|
payouts_enabled: VBoolean<boolean, "required">;
|
|
1758
1774
|
settings: VAny<any, "optional", string>;
|
|
1759
|
-
}, "required", "object" | "type" | "
|
|
1775
|
+
}, "required", "object" | "type" | "id" | "company" | "individual" | "business_type" | "capabilities" | "country" | "email" | "metadata" | "requirements" | "tos_acceptance" | "business_profile" | "charges_enabled" | "controller" | "created" | "default_currency" | "details_submitted" | "external_accounts" | "future_requirements" | "groups" | "payouts_enabled" | "settings" | `company.${string}` | `individual.${string}` | `capabilities.${string}` | `metadata.${string}` | `requirements.${string}` | `tos_acceptance.${string}` | `business_profile.${string}` | `controller.${string}` | `external_accounts.${string}` | `future_requirements.${string}` | `groups.${string}` | `settings.${string}`>;
|
|
1760
1776
|
lastSyncedAt: VFloat64<number, "required">;
|
|
1761
|
-
}, "required", "stripe" | "accountId" | "entityId" | "lastSyncedAt" | "stripe.object" | "stripe.type" | "stripe.
|
|
1777
|
+
}, "required", "stripe" | "accountId" | "entityId" | "lastSyncedAt" | "stripe.object" | "stripe.type" | "stripe.id" | "stripe.company" | "stripe.individual" | "stripe.business_type" | "stripe.capabilities" | "stripe.country" | "stripe.email" | "stripe.metadata" | "stripe.requirements" | "stripe.tos_acceptance" | "stripe.business_profile" | "stripe.charges_enabled" | "stripe.controller" | "stripe.created" | "stripe.default_currency" | "stripe.details_submitted" | "stripe.external_accounts" | "stripe.future_requirements" | "stripe.groups" | "stripe.payouts_enabled" | "stripe.settings" | `stripe.company.${string}` | `stripe.individual.${string}` | `stripe.capabilities.${string}` | `stripe.metadata.${string}` | `stripe.requirements.${string}` | `stripe.tos_acceptance.${string}` | `stripe.business_profile.${string}` | `stripe.controller.${string}` | `stripe.external_accounts.${string}` | `stripe.future_requirements.${string}` | `stripe.groups.${string}` | `stripe.settings.${string}`>, {
|
|
1762
1778
|
byEntityId: ["entityId", "_creationTime"];
|
|
1763
1779
|
byStripeId: ["accountId", "_creationTime"];
|
|
1764
1780
|
}, {}, {}>;
|
|
@@ -2628,12 +2644,12 @@ status: string;
|
|
|
2628
2644
|
}, {
|
|
2629
2645
|
status: VString<string, "required">;
|
|
2630
2646
|
value: VUnion<string | null | undefined, [VString<string, "required">, VNull<null, "required">], "optional", never>;
|
|
2631
|
-
}, "required", "
|
|
2647
|
+
}, "required", "value" | "status">], "optional", "value" | "status">;
|
|
2632
2648
|
type: VUnion<"card" | "bank_account", [VLiteral<"bank_account", "required">, VLiteral<"card", "required">], "required", never>;
|
|
2633
|
-
}, "required", "object" | "type" | "id" | "metadata" | "created" | `metadata.${string}` | "livemode" | "status" | "amount" | "balance_transaction" | "currency" | "description" | "statement_descriptor" | "application_fee" | "application_fee_amount" | "failure_balance_transaction" | "failure_code" | "failure_message" | "automatic" | "arrival_date" | "destination" | "method" | "original_payout" | "payout_method" | "reconciliation_status" | "reversed_by" | "source_type" | "trace_id" | "trace_id.
|
|
2649
|
+
}, "required", "object" | "type" | "id" | "metadata" | "created" | `metadata.${string}` | "livemode" | "status" | "amount" | "balance_transaction" | "currency" | "description" | "statement_descriptor" | "application_fee" | "application_fee_amount" | "failure_balance_transaction" | "failure_code" | "failure_message" | "automatic" | "arrival_date" | "destination" | "method" | "original_payout" | "payout_method" | "reconciliation_status" | "reversed_by" | "source_type" | "trace_id" | "trace_id.value" | "trace_id.status">;
|
|
2634
2650
|
lastSyncedAt: VFloat64<number, "required">;
|
|
2635
2651
|
accountId: VString<string | undefined, "optional">;
|
|
2636
|
-
}, "required", "stripe" | "accountId" | "lastSyncedAt" | "stripe.object" | "stripe.type" | "stripe.id" | "stripe.metadata" | "stripe.created" | `stripe.metadata.${string}` | "stripe.livemode" | "stripe.description" | "stripe.statement_descriptor" | "stripe.currency" | "payoutId" | "stripe.status" | "stripe.amount" | "stripe.balance_transaction" | "stripe.application_fee" | "stripe.application_fee_amount" | "stripe.failure_balance_transaction" | "stripe.failure_code" | "stripe.failure_message" | "stripe.automatic" | "stripe.arrival_date" | "stripe.destination" | "stripe.method" | "stripe.original_payout" | "stripe.payout_method" | "stripe.reconciliation_status" | "stripe.reversed_by" | "stripe.source_type" | "stripe.trace_id" | "stripe.trace_id.
|
|
2652
|
+
}, "required", "stripe" | "accountId" | "lastSyncedAt" | "stripe.object" | "stripe.type" | "stripe.id" | "stripe.metadata" | "stripe.created" | `stripe.metadata.${string}` | "stripe.livemode" | "stripe.description" | "stripe.statement_descriptor" | "stripe.currency" | "payoutId" | "stripe.status" | "stripe.amount" | "stripe.balance_transaction" | "stripe.application_fee" | "stripe.application_fee_amount" | "stripe.failure_balance_transaction" | "stripe.failure_code" | "stripe.failure_message" | "stripe.automatic" | "stripe.arrival_date" | "stripe.destination" | "stripe.method" | "stripe.original_payout" | "stripe.payout_method" | "stripe.reconciliation_status" | "stripe.reversed_by" | "stripe.source_type" | "stripe.trace_id" | "stripe.trace_id.value" | "stripe.trace_id.status">, {
|
|
2637
2653
|
byAccountId: ["accountId", "_creationTime"];
|
|
2638
2654
|
byStripeId: ["payoutId", "_creationTime"];
|
|
2639
2655
|
}, {}, {}>;
|
|
@@ -3741,9 +3757,9 @@ status: "pending" | "unavailable" | "unverified" | "verified";
|
|
|
3741
3757
|
object: string;
|
|
3742
3758
|
type: string;
|
|
3743
3759
|
id: string;
|
|
3760
|
+
value: string;
|
|
3744
3761
|
created: number;
|
|
3745
3762
|
livemode: boolean;
|
|
3746
|
-
value: string;
|
|
3747
3763
|
};
|
|
3748
3764
|
lastSyncedAt: number;
|
|
3749
3765
|
taxIdId: string;
|
|
@@ -3766,9 +3782,9 @@ status: "pending" | "unavailable" | "unverified" | "verified";
|
|
|
3766
3782
|
object: string;
|
|
3767
3783
|
type: string;
|
|
3768
3784
|
id: string;
|
|
3785
|
+
value: string;
|
|
3769
3786
|
created: number;
|
|
3770
3787
|
livemode: boolean;
|
|
3771
|
-
value: string;
|
|
3772
3788
|
}, {
|
|
3773
3789
|
id: VString<string, "required">;
|
|
3774
3790
|
country: VUnion<string | null | undefined, [VString<string, "required">, VNull<null, "required">], "optional", never>;
|
|
@@ -3807,7 +3823,7 @@ status: VUnion<"pending" | "unavailable" | "unverified" | "verified", [VLiteral<
|
|
|
3807
3823
|
verified_address: VUnion<string | null | undefined, [VString<string, "required">, VNull<null, "required">], "optional", never>;
|
|
3808
3824
|
verified_name: VUnion<string | null | undefined, [VString<string, "required">, VNull<null, "required">], "optional", never>;
|
|
3809
3825
|
}, "required", "status" | "verified_address" | "verified_name">, VNull<null, "required">], "optional", "status" | "verified_address" | "verified_name">;
|
|
3810
|
-
}, "required", "object" | "type" | "id" | "
|
|
3826
|
+
}, "required", "object" | "type" | "id" | "value" | "country" | "created" | "livemode" | "customer" | "owner" | "verification" | "owner.type" | "owner.account" | "owner.application" | "owner.customer" | "verification.status" | "verification.verified_address" | "verification.verified_name">;
|
|
3811
3827
|
lastSyncedAt: VFloat64<number, "required">;
|
|
3812
3828
|
accountId: VString<string | undefined, "optional">;
|
|
3813
3829
|
}, "required", "stripe" | "accountId" | "lastSyncedAt" | "stripe.object" | "stripe.type" | "stripe.id" | "stripe.country" | "stripe.created" | "stripe.livemode" | "stripe.customer" | "taxIdId" | "stripe.value" | "stripe.owner" | "stripe.verification" | "stripe.owner.type" | "stripe.owner.account" | "stripe.owner.application" | "stripe.owner.customer" | "stripe.verification.status" | "stripe.verification.verified_address" | "stripe.verification.verified_name">, {
|
|
@@ -4328,8 +4344,8 @@ byStripeId: ["chargeId", "_creationTime"];
|
|
|
4328
4344
|
stripePaymentMethods: TableDefinition<VObject< {
|
|
4329
4345
|
accountId?: string | undefined;
|
|
4330
4346
|
stripe: {
|
|
4331
|
-
metadata?: Record<string, string | number | null> | null | undefined;
|
|
4332
4347
|
link?: any;
|
|
4348
|
+
metadata?: Record<string, string | number | null> | null | undefined;
|
|
4333
4349
|
billing_details?: any;
|
|
4334
4350
|
customer?: string | null | undefined;
|
|
4335
4351
|
radar_options?: any;
|
|
@@ -4394,8 +4410,8 @@ paymentMethodId: string;
|
|
|
4394
4410
|
}, {
|
|
4395
4411
|
paymentMethodId: VString<string, "required">;
|
|
4396
4412
|
stripe: VObject< {
|
|
4397
|
-
metadata?: Record<string, string | number | null> | null | undefined;
|
|
4398
4413
|
link?: any;
|
|
4414
|
+
metadata?: Record<string, string | number | null> | null | undefined;
|
|
4399
4415
|
billing_details?: any;
|
|
4400
4416
|
customer?: string | null | undefined;
|
|
4401
4417
|
radar_options?: any;
|
|
@@ -4515,7 +4531,7 @@ twint: VAny<any, "optional", string>;
|
|
|
4515
4531
|
us_bank_account: VAny<any, "optional", string>;
|
|
4516
4532
|
wechat_pay: VAny<any, "optional", string>;
|
|
4517
4533
|
zip: VAny<any, "optional", string>;
|
|
4518
|
-
}, "required", "object" | "type" | "id" | "metadata" | "created" | `metadata.${string}` | "livemode" | "
|
|
4534
|
+
}, "required", "object" | "type" | "id" | "link" | "metadata" | "created" | `metadata.${string}` | "livemode" | "billing_details" | "customer" | "radar_options" | `radar_options.${string}` | "acss_debit" | "affirm" | "afterpay_clearpay" | "alipay" | "alma" | "amazon_pay" | "au_becs_debit" | "bacs_debit" | "bancontact" | "billie" | "blik" | "boleto" | "card" | "cashapp" | "crypto" | "customer_balance" | "eps" | "fpx" | "giropay" | "grabpay" | "ideal" | "kakao_pay" | "klarna" | "konbini" | "kr_card" | "mobilepay" | "multibanco" | "naver_pay" | "nz_bank_account" | "oxxo" | "p24" | "pay_by_bank" | "payco" | "paynow" | "paypal" | "pix" | "promptpay" | "revolut_pay" | "samsung_pay" | "satispay" | "sepa_debit" | "sofort" | "swish" | "twint" | "us_bank_account" | "wechat_pay" | "zip" | "allow_redisplay" | "card_present" | "interac_present" | `link.${string}` | `billing_details.${string}` | `acss_debit.${string}` | `affirm.${string}` | `afterpay_clearpay.${string}` | `alipay.${string}` | `alma.${string}` | `amazon_pay.${string}` | `au_becs_debit.${string}` | `bacs_debit.${string}` | `bancontact.${string}` | `billie.${string}` | `blik.${string}` | `boleto.${string}` | `card.${string}` | `cashapp.${string}` | `crypto.${string}` | `customer_balance.${string}` | `eps.${string}` | `fpx.${string}` | `giropay.${string}` | `grabpay.${string}` | `ideal.${string}` | `kakao_pay.${string}` | `klarna.${string}` | `konbini.${string}` | `kr_card.${string}` | `mobilepay.${string}` | `multibanco.${string}` | `naver_pay.${string}` | `nz_bank_account.${string}` | `oxxo.${string}` | `p24.${string}` | `pay_by_bank.${string}` | `payco.${string}` | `paynow.${string}` | `paypal.${string}` | `pix.${string}` | `promptpay.${string}` | `revolut_pay.${string}` | `samsung_pay.${string}` | `satispay.${string}` | `sepa_debit.${string}` | `sofort.${string}` | `swish.${string}` | `twint.${string}` | `us_bank_account.${string}` | `wechat_pay.${string}` | `zip.${string}` | `card_present.${string}` | `interac_present.${string}`>;
|
|
4519
4535
|
lastSyncedAt: VFloat64<number, "required">;
|
|
4520
4536
|
accountId: VString<string | undefined, "optional">;
|
|
4521
4537
|
}, "required", "stripe" | "accountId" | "lastSyncedAt" | "stripe.object" | "stripe.type" | "stripe.id" | "stripe.metadata" | "stripe.created" | `stripe.metadata.${string}` | "stripe.livemode" | "stripe.customer" | "stripe.billing_details" | "stripe.radar_options" | `stripe.radar_options.${string}` | "paymentMethodId" | "stripe.link" | "stripe.acss_debit" | "stripe.affirm" | "stripe.afterpay_clearpay" | "stripe.alipay" | "stripe.alma" | "stripe.amazon_pay" | "stripe.au_becs_debit" | "stripe.bacs_debit" | "stripe.bancontact" | "stripe.billie" | "stripe.blik" | "stripe.boleto" | "stripe.card" | "stripe.cashapp" | "stripe.crypto" | "stripe.customer_balance" | "stripe.eps" | "stripe.fpx" | "stripe.giropay" | "stripe.grabpay" | "stripe.ideal" | "stripe.kakao_pay" | "stripe.klarna" | "stripe.konbini" | "stripe.kr_card" | "stripe.mobilepay" | "stripe.multibanco" | "stripe.naver_pay" | "stripe.nz_bank_account" | "stripe.oxxo" | "stripe.p24" | "stripe.pay_by_bank" | "stripe.payco" | "stripe.paynow" | "stripe.paypal" | "stripe.pix" | "stripe.promptpay" | "stripe.revolut_pay" | "stripe.samsung_pay" | "stripe.satispay" | "stripe.sepa_debit" | "stripe.sofort" | "stripe.swish" | "stripe.twint" | "stripe.us_bank_account" | "stripe.wechat_pay" | "stripe.zip" | "stripe.allow_redisplay" | "stripe.card_present" | "stripe.interac_present" | `stripe.link.${string}` | `stripe.billing_details.${string}` | `stripe.acss_debit.${string}` | `stripe.affirm.${string}` | `stripe.afterpay_clearpay.${string}` | `stripe.alipay.${string}` | `stripe.alma.${string}` | `stripe.amazon_pay.${string}` | `stripe.au_becs_debit.${string}` | `stripe.bacs_debit.${string}` | `stripe.bancontact.${string}` | `stripe.billie.${string}` | `stripe.blik.${string}` | `stripe.boleto.${string}` | `stripe.card.${string}` | `stripe.cashapp.${string}` | `stripe.crypto.${string}` | `stripe.customer_balance.${string}` | `stripe.eps.${string}` | `stripe.fpx.${string}` | `stripe.giropay.${string}` | `stripe.grabpay.${string}` | `stripe.ideal.${string}` | `stripe.kakao_pay.${string}` | `stripe.klarna.${string}` | `stripe.konbini.${string}` | `stripe.kr_card.${string}` | `stripe.mobilepay.${string}` | `stripe.multibanco.${string}` | `stripe.naver_pay.${string}` | `stripe.nz_bank_account.${string}` | `stripe.oxxo.${string}` | `stripe.p24.${string}` | `stripe.pay_by_bank.${string}` | `stripe.payco.${string}` | `stripe.paynow.${string}` | `stripe.paypal.${string}` | `stripe.pix.${string}` | `stripe.promptpay.${string}` | `stripe.revolut_pay.${string}` | `stripe.samsung_pay.${string}` | `stripe.satispay.${string}` | `stripe.sepa_debit.${string}` | `stripe.sofort.${string}` | `stripe.swish.${string}` | `stripe.twint.${string}` | `stripe.us_bank_account.${string}` | `stripe.wechat_pay.${string}` | `stripe.zip.${string}` | `stripe.card_present.${string}` | `stripe.interac_present.${string}`>, {
|
|
@@ -5434,9 +5450,9 @@ export declare const stripeTables: {
|
|
|
5434
5450
|
groups: VAny<any, "optional", string>;
|
|
5435
5451
|
payouts_enabled: VBoolean<boolean, "required">;
|
|
5436
5452
|
settings: VAny<any, "optional", string>;
|
|
5437
|
-
}, "required", "object" | "type" | "
|
|
5453
|
+
}, "required", "object" | "type" | "id" | "company" | "individual" | "business_type" | "capabilities" | "country" | "email" | "metadata" | "requirements" | "tos_acceptance" | "business_profile" | "charges_enabled" | "controller" | "created" | "default_currency" | "details_submitted" | "external_accounts" | "future_requirements" | "groups" | "payouts_enabled" | "settings" | `company.${string}` | `individual.${string}` | `capabilities.${string}` | `metadata.${string}` | `requirements.${string}` | `tos_acceptance.${string}` | `business_profile.${string}` | `controller.${string}` | `external_accounts.${string}` | `future_requirements.${string}` | `groups.${string}` | `settings.${string}`>;
|
|
5438
5454
|
lastSyncedAt: VFloat64<number, "required">;
|
|
5439
|
-
}, "required", "stripe" | "accountId" | "entityId" | "lastSyncedAt" | "stripe.object" | "stripe.type" | "stripe.
|
|
5455
|
+
}, "required", "stripe" | "accountId" | "entityId" | "lastSyncedAt" | "stripe.object" | "stripe.type" | "stripe.id" | "stripe.company" | "stripe.individual" | "stripe.business_type" | "stripe.capabilities" | "stripe.country" | "stripe.email" | "stripe.metadata" | "stripe.requirements" | "stripe.tos_acceptance" | "stripe.business_profile" | "stripe.charges_enabled" | "stripe.controller" | "stripe.created" | "stripe.default_currency" | "stripe.details_submitted" | "stripe.external_accounts" | "stripe.future_requirements" | "stripe.groups" | "stripe.payouts_enabled" | "stripe.settings" | `stripe.company.${string}` | `stripe.individual.${string}` | `stripe.capabilities.${string}` | `stripe.metadata.${string}` | `stripe.requirements.${string}` | `stripe.tos_acceptance.${string}` | `stripe.business_profile.${string}` | `stripe.controller.${string}` | `stripe.external_accounts.${string}` | `stripe.future_requirements.${string}` | `stripe.groups.${string}` | `stripe.settings.${string}`>, {
|
|
5440
5456
|
byEntityId: ["entityId", "_creationTime"];
|
|
5441
5457
|
byStripeId: ["accountId", "_creationTime"];
|
|
5442
5458
|
}, {}, {}>;
|
|
@@ -6306,12 +6322,12 @@ export declare const stripeTables: {
|
|
|
6306
6322
|
}, {
|
|
6307
6323
|
status: VString<string, "required">;
|
|
6308
6324
|
value: VUnion<string | null | undefined, [VString<string, "required">, VNull<null, "required">], "optional", never>;
|
|
6309
|
-
}, "required", "
|
|
6325
|
+
}, "required", "value" | "status">], "optional", "value" | "status">;
|
|
6310
6326
|
type: VUnion<"card" | "bank_account", [VLiteral<"bank_account", "required">, VLiteral<"card", "required">], "required", never>;
|
|
6311
|
-
}, "required", "object" | "type" | "id" | "metadata" | "created" | `metadata.${string}` | "livemode" | "status" | "amount" | "balance_transaction" | "currency" | "description" | "statement_descriptor" | "application_fee" | "application_fee_amount" | "failure_balance_transaction" | "failure_code" | "failure_message" | "automatic" | "arrival_date" | "destination" | "method" | "original_payout" | "payout_method" | "reconciliation_status" | "reversed_by" | "source_type" | "trace_id" | "trace_id.
|
|
6327
|
+
}, "required", "object" | "type" | "id" | "metadata" | "created" | `metadata.${string}` | "livemode" | "status" | "amount" | "balance_transaction" | "currency" | "description" | "statement_descriptor" | "application_fee" | "application_fee_amount" | "failure_balance_transaction" | "failure_code" | "failure_message" | "automatic" | "arrival_date" | "destination" | "method" | "original_payout" | "payout_method" | "reconciliation_status" | "reversed_by" | "source_type" | "trace_id" | "trace_id.value" | "trace_id.status">;
|
|
6312
6328
|
lastSyncedAt: VFloat64<number, "required">;
|
|
6313
6329
|
accountId: VString<string | undefined, "optional">;
|
|
6314
|
-
}, "required", "stripe" | "accountId" | "lastSyncedAt" | "stripe.object" | "stripe.type" | "stripe.id" | "stripe.metadata" | "stripe.created" | `stripe.metadata.${string}` | "stripe.livemode" | "stripe.description" | "stripe.statement_descriptor" | "stripe.currency" | "payoutId" | "stripe.status" | "stripe.amount" | "stripe.balance_transaction" | "stripe.application_fee" | "stripe.application_fee_amount" | "stripe.failure_balance_transaction" | "stripe.failure_code" | "stripe.failure_message" | "stripe.automatic" | "stripe.arrival_date" | "stripe.destination" | "stripe.method" | "stripe.original_payout" | "stripe.payout_method" | "stripe.reconciliation_status" | "stripe.reversed_by" | "stripe.source_type" | "stripe.trace_id" | "stripe.trace_id.
|
|
6330
|
+
}, "required", "stripe" | "accountId" | "lastSyncedAt" | "stripe.object" | "stripe.type" | "stripe.id" | "stripe.metadata" | "stripe.created" | `stripe.metadata.${string}` | "stripe.livemode" | "stripe.description" | "stripe.statement_descriptor" | "stripe.currency" | "payoutId" | "stripe.status" | "stripe.amount" | "stripe.balance_transaction" | "stripe.application_fee" | "stripe.application_fee_amount" | "stripe.failure_balance_transaction" | "stripe.failure_code" | "stripe.failure_message" | "stripe.automatic" | "stripe.arrival_date" | "stripe.destination" | "stripe.method" | "stripe.original_payout" | "stripe.payout_method" | "stripe.reconciliation_status" | "stripe.reversed_by" | "stripe.source_type" | "stripe.trace_id" | "stripe.trace_id.value" | "stripe.trace_id.status">, {
|
|
6315
6331
|
byAccountId: ["accountId", "_creationTime"];
|
|
6316
6332
|
byStripeId: ["payoutId", "_creationTime"];
|
|
6317
6333
|
}, {}, {}>;
|
|
@@ -7419,9 +7435,9 @@ export declare const stripeTables: {
|
|
|
7419
7435
|
object: string;
|
|
7420
7436
|
type: string;
|
|
7421
7437
|
id: string;
|
|
7438
|
+
value: string;
|
|
7422
7439
|
created: number;
|
|
7423
7440
|
livemode: boolean;
|
|
7424
|
-
value: string;
|
|
7425
7441
|
};
|
|
7426
7442
|
lastSyncedAt: number;
|
|
7427
7443
|
taxIdId: string;
|
|
@@ -7444,9 +7460,9 @@ export declare const stripeTables: {
|
|
|
7444
7460
|
object: string;
|
|
7445
7461
|
type: string;
|
|
7446
7462
|
id: string;
|
|
7463
|
+
value: string;
|
|
7447
7464
|
created: number;
|
|
7448
7465
|
livemode: boolean;
|
|
7449
|
-
value: string;
|
|
7450
7466
|
}, {
|
|
7451
7467
|
id: VString<string, "required">;
|
|
7452
7468
|
country: VUnion<string | null | undefined, [VString<string, "required">, VNull<null, "required">], "optional", never>;
|
|
@@ -7485,7 +7501,7 @@ export declare const stripeTables: {
|
|
|
7485
7501
|
verified_address: VUnion<string | null | undefined, [VString<string, "required">, VNull<null, "required">], "optional", never>;
|
|
7486
7502
|
verified_name: VUnion<string | null | undefined, [VString<string, "required">, VNull<null, "required">], "optional", never>;
|
|
7487
7503
|
}, "required", "status" | "verified_address" | "verified_name">, VNull<null, "required">], "optional", "status" | "verified_address" | "verified_name">;
|
|
7488
|
-
}, "required", "object" | "type" | "id" | "
|
|
7504
|
+
}, "required", "object" | "type" | "id" | "value" | "country" | "created" | "livemode" | "customer" | "owner" | "verification" | "owner.type" | "owner.account" | "owner.application" | "owner.customer" | "verification.status" | "verification.verified_address" | "verification.verified_name">;
|
|
7489
7505
|
lastSyncedAt: VFloat64<number, "required">;
|
|
7490
7506
|
accountId: VString<string | undefined, "optional">;
|
|
7491
7507
|
}, "required", "stripe" | "accountId" | "lastSyncedAt" | "stripe.object" | "stripe.type" | "stripe.id" | "stripe.country" | "stripe.created" | "stripe.livemode" | "stripe.customer" | "taxIdId" | "stripe.value" | "stripe.owner" | "stripe.verification" | "stripe.owner.type" | "stripe.owner.account" | "stripe.owner.application" | "stripe.owner.customer" | "stripe.verification.status" | "stripe.verification.verified_address" | "stripe.verification.verified_name">, {
|
|
@@ -8006,8 +8022,8 @@ export declare const stripeTables: {
|
|
|
8006
8022
|
stripePaymentMethods: TableDefinition<VObject< {
|
|
8007
8023
|
accountId?: string | undefined;
|
|
8008
8024
|
stripe: {
|
|
8009
|
-
metadata?: Record<string, string | number | null> | null | undefined;
|
|
8010
8025
|
link?: any;
|
|
8026
|
+
metadata?: Record<string, string | number | null> | null | undefined;
|
|
8011
8027
|
billing_details?: any;
|
|
8012
8028
|
customer?: string | null | undefined;
|
|
8013
8029
|
radar_options?: any;
|
|
@@ -8072,8 +8088,8 @@ export declare const stripeTables: {
|
|
|
8072
8088
|
}, {
|
|
8073
8089
|
paymentMethodId: VString<string, "required">;
|
|
8074
8090
|
stripe: VObject< {
|
|
8075
|
-
metadata?: Record<string, string | number | null> | null | undefined;
|
|
8076
8091
|
link?: any;
|
|
8092
|
+
metadata?: Record<string, string | number | null> | null | undefined;
|
|
8077
8093
|
billing_details?: any;
|
|
8078
8094
|
customer?: string | null | undefined;
|
|
8079
8095
|
radar_options?: any;
|
|
@@ -8193,7 +8209,7 @@ export declare const stripeTables: {
|
|
|
8193
8209
|
us_bank_account: VAny<any, "optional", string>;
|
|
8194
8210
|
wechat_pay: VAny<any, "optional", string>;
|
|
8195
8211
|
zip: VAny<any, "optional", string>;
|
|
8196
|
-
}, "required", "object" | "type" | "id" | "metadata" | "created" | `metadata.${string}` | "livemode" | "
|
|
8212
|
+
}, "required", "object" | "type" | "id" | "link" | "metadata" | "created" | `metadata.${string}` | "livemode" | "billing_details" | "customer" | "radar_options" | `radar_options.${string}` | "acss_debit" | "affirm" | "afterpay_clearpay" | "alipay" | "alma" | "amazon_pay" | "au_becs_debit" | "bacs_debit" | "bancontact" | "billie" | "blik" | "boleto" | "card" | "cashapp" | "crypto" | "customer_balance" | "eps" | "fpx" | "giropay" | "grabpay" | "ideal" | "kakao_pay" | "klarna" | "konbini" | "kr_card" | "mobilepay" | "multibanco" | "naver_pay" | "nz_bank_account" | "oxxo" | "p24" | "pay_by_bank" | "payco" | "paynow" | "paypal" | "pix" | "promptpay" | "revolut_pay" | "samsung_pay" | "satispay" | "sepa_debit" | "sofort" | "swish" | "twint" | "us_bank_account" | "wechat_pay" | "zip" | "allow_redisplay" | "card_present" | "interac_present" | `link.${string}` | `billing_details.${string}` | `acss_debit.${string}` | `affirm.${string}` | `afterpay_clearpay.${string}` | `alipay.${string}` | `alma.${string}` | `amazon_pay.${string}` | `au_becs_debit.${string}` | `bacs_debit.${string}` | `bancontact.${string}` | `billie.${string}` | `blik.${string}` | `boleto.${string}` | `card.${string}` | `cashapp.${string}` | `crypto.${string}` | `customer_balance.${string}` | `eps.${string}` | `fpx.${string}` | `giropay.${string}` | `grabpay.${string}` | `ideal.${string}` | `kakao_pay.${string}` | `klarna.${string}` | `konbini.${string}` | `kr_card.${string}` | `mobilepay.${string}` | `multibanco.${string}` | `naver_pay.${string}` | `nz_bank_account.${string}` | `oxxo.${string}` | `p24.${string}` | `pay_by_bank.${string}` | `payco.${string}` | `paynow.${string}` | `paypal.${string}` | `pix.${string}` | `promptpay.${string}` | `revolut_pay.${string}` | `samsung_pay.${string}` | `satispay.${string}` | `sepa_debit.${string}` | `sofort.${string}` | `swish.${string}` | `twint.${string}` | `us_bank_account.${string}` | `wechat_pay.${string}` | `zip.${string}` | `card_present.${string}` | `interac_present.${string}`>;
|
|
8197
8213
|
lastSyncedAt: VFloat64<number, "required">;
|
|
8198
8214
|
accountId: VString<string | undefined, "optional">;
|
|
8199
8215
|
}, "required", "stripe" | "accountId" | "lastSyncedAt" | "stripe.object" | "stripe.type" | "stripe.id" | "stripe.metadata" | "stripe.created" | `stripe.metadata.${string}` | "stripe.livemode" | "stripe.customer" | "stripe.billing_details" | "stripe.radar_options" | `stripe.radar_options.${string}` | "paymentMethodId" | "stripe.link" | "stripe.acss_debit" | "stripe.affirm" | "stripe.afterpay_clearpay" | "stripe.alipay" | "stripe.alma" | "stripe.amazon_pay" | "stripe.au_becs_debit" | "stripe.bacs_debit" | "stripe.bancontact" | "stripe.billie" | "stripe.blik" | "stripe.boleto" | "stripe.card" | "stripe.cashapp" | "stripe.crypto" | "stripe.customer_balance" | "stripe.eps" | "stripe.fpx" | "stripe.giropay" | "stripe.grabpay" | "stripe.ideal" | "stripe.kakao_pay" | "stripe.klarna" | "stripe.konbini" | "stripe.kr_card" | "stripe.mobilepay" | "stripe.multibanco" | "stripe.naver_pay" | "stripe.nz_bank_account" | "stripe.oxxo" | "stripe.p24" | "stripe.pay_by_bank" | "stripe.payco" | "stripe.paynow" | "stripe.paypal" | "stripe.pix" | "stripe.promptpay" | "stripe.revolut_pay" | "stripe.samsung_pay" | "stripe.satispay" | "stripe.sepa_debit" | "stripe.sofort" | "stripe.swish" | "stripe.twint" | "stripe.us_bank_account" | "stripe.wechat_pay" | "stripe.zip" | "stripe.allow_redisplay" | "stripe.card_present" | "stripe.interac_present" | `stripe.link.${string}` | `stripe.billing_details.${string}` | `stripe.acss_debit.${string}` | `stripe.affirm.${string}` | `stripe.afterpay_clearpay.${string}` | `stripe.alipay.${string}` | `stripe.alma.${string}` | `stripe.amazon_pay.${string}` | `stripe.au_becs_debit.${string}` | `stripe.bacs_debit.${string}` | `stripe.bancontact.${string}` | `stripe.billie.${string}` | `stripe.blik.${string}` | `stripe.boleto.${string}` | `stripe.card.${string}` | `stripe.cashapp.${string}` | `stripe.crypto.${string}` | `stripe.customer_balance.${string}` | `stripe.eps.${string}` | `stripe.fpx.${string}` | `stripe.giropay.${string}` | `stripe.grabpay.${string}` | `stripe.ideal.${string}` | `stripe.kakao_pay.${string}` | `stripe.klarna.${string}` | `stripe.konbini.${string}` | `stripe.kr_card.${string}` | `stripe.mobilepay.${string}` | `stripe.multibanco.${string}` | `stripe.naver_pay.${string}` | `stripe.nz_bank_account.${string}` | `stripe.oxxo.${string}` | `stripe.p24.${string}` | `stripe.pay_by_bank.${string}` | `stripe.payco.${string}` | `stripe.paynow.${string}` | `stripe.paypal.${string}` | `stripe.pix.${string}` | `stripe.promptpay.${string}` | `stripe.revolut_pay.${string}` | `stripe.samsung_pay.${string}` | `stripe.satispay.${string}` | `stripe.sepa_debit.${string}` | `stripe.sofort.${string}` | `stripe.swish.${string}` | `stripe.twint.${string}` | `stripe.us_bank_account.${string}` | `stripe.wechat_pay.${string}` | `stripe.zip.${string}` | `stripe.card_present.${string}` | `stripe.interac_present.${string}`>, {
|
|
@@ -9044,12 +9060,266 @@ declare const SubscribeImplementation: {
|
|
|
9044
9060
|
} & Omit<default_2.Checkout.SessionCreateParams, "mode" | "customer" | "client_reference_id" | "line_items" | "success_url" | "ui_mode" | "cancel_url">, stripeOptions: default_2.RequestOptions, configuration: InternalConfiguration, options: InternalOptions) => Promise<default_2.Response<default_2.Checkout.Session>>;
|
|
9045
9061
|
};
|
|
9046
9062
|
|
|
9063
|
+
export declare const SYNC_HANDLERS: readonly [{
|
|
9064
|
+
args: VObject< {
|
|
9065
|
+
accountId?: string | undefined;
|
|
9066
|
+
}, {
|
|
9067
|
+
accountId: VString<string | undefined, "optional">;
|
|
9068
|
+
}, "required", "accountId">;
|
|
9069
|
+
name: string;
|
|
9070
|
+
handler: (context: GenericActionCtx<StripeDataModel>, args: {
|
|
9071
|
+
accountId?: string | undefined;
|
|
9072
|
+
}, configuration: InternalConfiguration, options: InternalOptions) => Promise<void>;
|
|
9073
|
+
}, {
|
|
9074
|
+
args: VObject< {
|
|
9075
|
+
accountId?: string | undefined;
|
|
9076
|
+
}, {
|
|
9077
|
+
accountId: VString<string | undefined, "optional">;
|
|
9078
|
+
}, "required", "accountId">;
|
|
9079
|
+
name: string;
|
|
9080
|
+
handler: (context: GenericActionCtx<StripeDataModel>, args: {
|
|
9081
|
+
accountId?: string | undefined;
|
|
9082
|
+
}, configuration: InternalConfiguration, options: InternalOptions) => Promise<void>;
|
|
9083
|
+
}, {
|
|
9084
|
+
args: VObject< {
|
|
9085
|
+
accountId?: string | undefined;
|
|
9086
|
+
}, {
|
|
9087
|
+
accountId: VString<string | undefined, "optional">;
|
|
9088
|
+
}, "required", "accountId">;
|
|
9089
|
+
name: string;
|
|
9090
|
+
handler: (context: GenericActionCtx<StripeDataModel>, args: {
|
|
9091
|
+
accountId?: string | undefined;
|
|
9092
|
+
}, configuration: InternalConfiguration, options: InternalOptions) => Promise<void>;
|
|
9093
|
+
}, {
|
|
9094
|
+
args: VObject< {
|
|
9095
|
+
accountId?: string | undefined;
|
|
9096
|
+
}, {
|
|
9097
|
+
accountId: VString<string | undefined, "optional">;
|
|
9098
|
+
}, "required", "accountId">;
|
|
9099
|
+
name: string;
|
|
9100
|
+
handler: (context: GenericActionCtx<StripeDataModel>, args: {
|
|
9101
|
+
accountId?: string | undefined;
|
|
9102
|
+
}, configuration: InternalConfiguration, options: InternalOptions) => Promise<void>;
|
|
9103
|
+
}, {
|
|
9104
|
+
args: VObject< {
|
|
9105
|
+
accountId?: string | undefined;
|
|
9106
|
+
}, {
|
|
9107
|
+
accountId: VString<string | undefined, "optional">;
|
|
9108
|
+
}, "required", "accountId">;
|
|
9109
|
+
name: string;
|
|
9110
|
+
handler: (context: GenericActionCtx<StripeDataModel>, args: {
|
|
9111
|
+
accountId?: string | undefined;
|
|
9112
|
+
}, configuration: InternalConfiguration, options: InternalOptions) => Promise<void>;
|
|
9113
|
+
}, {
|
|
9114
|
+
args: VObject< {
|
|
9115
|
+
accountId?: string | undefined;
|
|
9116
|
+
}, {
|
|
9117
|
+
accountId: VString<string | undefined, "optional">;
|
|
9118
|
+
}, "required", "accountId">;
|
|
9119
|
+
name: string;
|
|
9120
|
+
handler: (context: GenericActionCtx<StripeDataModel>, args: {
|
|
9121
|
+
accountId?: string | undefined;
|
|
9122
|
+
}, configuration: InternalConfiguration, options: InternalOptions) => Promise<void>;
|
|
9123
|
+
}, {
|
|
9124
|
+
args: VObject< {
|
|
9125
|
+
accountId?: string | undefined;
|
|
9126
|
+
}, {
|
|
9127
|
+
accountId: VString<string | undefined, "optional">;
|
|
9128
|
+
}, "required", "accountId">;
|
|
9129
|
+
name: string;
|
|
9130
|
+
handler: (context: GenericActionCtx<StripeDataModel>, args: {
|
|
9131
|
+
accountId?: string | undefined;
|
|
9132
|
+
}, configuration: InternalConfiguration, options: InternalOptions) => Promise<void>;
|
|
9133
|
+
}, {
|
|
9134
|
+
args: VObject< {
|
|
9135
|
+
accountId?: string | undefined;
|
|
9136
|
+
}, {
|
|
9137
|
+
accountId: VString<string | undefined, "optional">;
|
|
9138
|
+
}, "required", "accountId">;
|
|
9139
|
+
name: string;
|
|
9140
|
+
handler: (context: GenericActionCtx<StripeDataModel>, args: {
|
|
9141
|
+
accountId?: string | undefined;
|
|
9142
|
+
}, configuration: InternalConfiguration, options: InternalOptions) => Promise<void>;
|
|
9143
|
+
}, {
|
|
9144
|
+
args: VObject< {
|
|
9145
|
+
accountId?: string | undefined;
|
|
9146
|
+
}, {
|
|
9147
|
+
accountId: VString<string | undefined, "optional">;
|
|
9148
|
+
}, "required", "accountId">;
|
|
9149
|
+
name: string;
|
|
9150
|
+
handler: (context: GenericActionCtx<StripeDataModel>, args: {
|
|
9151
|
+
accountId?: string | undefined;
|
|
9152
|
+
}, configuration: InternalConfiguration, options: InternalOptions) => Promise<void>;
|
|
9153
|
+
}, {
|
|
9154
|
+
args: VObject< {
|
|
9155
|
+
accountId?: string | undefined;
|
|
9156
|
+
}, {
|
|
9157
|
+
accountId: VString<string | undefined, "optional">;
|
|
9158
|
+
}, "required", "accountId">;
|
|
9159
|
+
name: string;
|
|
9160
|
+
handler: (context: GenericActionCtx<StripeDataModel>, args: {
|
|
9161
|
+
accountId?: string | undefined;
|
|
9162
|
+
}, configuration: InternalConfiguration, options: InternalOptions) => Promise<void>;
|
|
9163
|
+
}, {
|
|
9164
|
+
args: VObject< {
|
|
9165
|
+
accountId?: string | undefined;
|
|
9166
|
+
}, {
|
|
9167
|
+
accountId: VString<string | undefined, "optional">;
|
|
9168
|
+
}, "required", "accountId">;
|
|
9169
|
+
name: string;
|
|
9170
|
+
handler: (context: GenericActionCtx<StripeDataModel>, args: {
|
|
9171
|
+
accountId?: string | undefined;
|
|
9172
|
+
}, configuration: InternalConfiguration, options: InternalOptions) => Promise<void>;
|
|
9173
|
+
}, {
|
|
9174
|
+
args: VObject< {
|
|
9175
|
+
accountId?: string | undefined;
|
|
9176
|
+
}, {
|
|
9177
|
+
accountId: VString<string | undefined, "optional">;
|
|
9178
|
+
}, "required", "accountId">;
|
|
9179
|
+
name: string;
|
|
9180
|
+
handler: (context: GenericActionCtx<StripeDataModel>, args: {
|
|
9181
|
+
accountId?: string | undefined;
|
|
9182
|
+
}, configuration: InternalConfiguration, options: InternalOptions) => Promise<void>;
|
|
9183
|
+
}, {
|
|
9184
|
+
args: VObject< {
|
|
9185
|
+
accountId?: string | undefined;
|
|
9186
|
+
}, {
|
|
9187
|
+
accountId: VString<string | undefined, "optional">;
|
|
9188
|
+
}, "required", "accountId">;
|
|
9189
|
+
name: string;
|
|
9190
|
+
handler: (context: GenericActionCtx<StripeDataModel>, args: {
|
|
9191
|
+
accountId?: string | undefined;
|
|
9192
|
+
}, configuration: InternalConfiguration, options: InternalOptions) => Promise<void>;
|
|
9193
|
+
}, {
|
|
9194
|
+
args: VObject< {
|
|
9195
|
+
accountId?: string | undefined;
|
|
9196
|
+
}, {
|
|
9197
|
+
accountId: VString<string | undefined, "optional">;
|
|
9198
|
+
}, "required", "accountId">;
|
|
9199
|
+
name: string;
|
|
9200
|
+
handler: (context: GenericActionCtx<StripeDataModel>, args: {
|
|
9201
|
+
accountId?: string | undefined;
|
|
9202
|
+
}, configuration: InternalConfiguration, options: InternalOptions) => Promise<void>;
|
|
9203
|
+
}, {
|
|
9204
|
+
args: VObject< {
|
|
9205
|
+
accountId?: string | undefined;
|
|
9206
|
+
}, {
|
|
9207
|
+
accountId: VString<string | undefined, "optional">;
|
|
9208
|
+
}, "required", "accountId">;
|
|
9209
|
+
name: string;
|
|
9210
|
+
handler: (context: GenericActionCtx<StripeDataModel>, args: {
|
|
9211
|
+
accountId?: string | undefined;
|
|
9212
|
+
}, configuration: InternalConfiguration, options: InternalOptions) => Promise<void>;
|
|
9213
|
+
}, {
|
|
9214
|
+
args: VObject< {
|
|
9215
|
+
accountId?: string | undefined;
|
|
9216
|
+
}, {
|
|
9217
|
+
accountId: VString<string | undefined, "optional">;
|
|
9218
|
+
}, "required", "accountId">;
|
|
9219
|
+
name: string;
|
|
9220
|
+
handler: (context: GenericActionCtx<StripeDataModel>, args: {
|
|
9221
|
+
accountId?: string | undefined;
|
|
9222
|
+
}, configuration: InternalConfiguration, options: InternalOptions) => Promise<void>;
|
|
9223
|
+
}, {
|
|
9224
|
+
args: VObject< {
|
|
9225
|
+
accountId?: string | undefined;
|
|
9226
|
+
}, {
|
|
9227
|
+
accountId: VString<string | undefined, "optional">;
|
|
9228
|
+
}, "required", "accountId">;
|
|
9229
|
+
name: string;
|
|
9230
|
+
handler: (context: GenericActionCtx<StripeDataModel>, args: {
|
|
9231
|
+
accountId?: string | undefined;
|
|
9232
|
+
}, configuration: InternalConfiguration, options: InternalOptions) => Promise<void>;
|
|
9233
|
+
}, {
|
|
9234
|
+
args: VObject< {
|
|
9235
|
+
accountId?: string | undefined;
|
|
9236
|
+
}, {
|
|
9237
|
+
accountId: VString<string | undefined, "optional">;
|
|
9238
|
+
}, "required", "accountId">;
|
|
9239
|
+
name: string;
|
|
9240
|
+
handler: (context: GenericActionCtx<StripeDataModel>, args: {
|
|
9241
|
+
accountId?: string | undefined;
|
|
9242
|
+
}, configuration: InternalConfiguration, options: InternalOptions) => Promise<void>;
|
|
9243
|
+
}, {
|
|
9244
|
+
args: VObject< {
|
|
9245
|
+
accountId?: string | undefined;
|
|
9246
|
+
}, {
|
|
9247
|
+
accountId: VString<string | undefined, "optional">;
|
|
9248
|
+
}, "required", "accountId">;
|
|
9249
|
+
name: string;
|
|
9250
|
+
handler: (context: GenericActionCtx<StripeDataModel>, args: {
|
|
9251
|
+
accountId?: string | undefined;
|
|
9252
|
+
}, configuration: InternalConfiguration, options: InternalOptions) => Promise<void>;
|
|
9253
|
+
}, {
|
|
9254
|
+
args: VObject< {
|
|
9255
|
+
accountId?: string | undefined;
|
|
9256
|
+
}, {
|
|
9257
|
+
accountId: VString<string | undefined, "optional">;
|
|
9258
|
+
}, "required", "accountId">;
|
|
9259
|
+
name: string;
|
|
9260
|
+
handler: (context: GenericActionCtx<StripeDataModel>, args: {
|
|
9261
|
+
accountId?: string | undefined;
|
|
9262
|
+
}, configuration: InternalConfiguration, options: InternalOptions) => Promise<void>;
|
|
9263
|
+
}, {
|
|
9264
|
+
args: VObject< {
|
|
9265
|
+
accountId?: string | undefined;
|
|
9266
|
+
}, {
|
|
9267
|
+
accountId: VString<string | undefined, "optional">;
|
|
9268
|
+
}, "required", "accountId">;
|
|
9269
|
+
name: string;
|
|
9270
|
+
handler: (context: GenericActionCtx<StripeDataModel>, args: {
|
|
9271
|
+
accountId?: string | undefined;
|
|
9272
|
+
}, configuration: InternalConfiguration, options: InternalOptions) => Promise<void>;
|
|
9273
|
+
}, {
|
|
9274
|
+
args: VObject< {
|
|
9275
|
+
accountId?: string | undefined;
|
|
9276
|
+
}, {
|
|
9277
|
+
accountId: VString<string | undefined, "optional">;
|
|
9278
|
+
}, "required", "accountId">;
|
|
9279
|
+
name: string;
|
|
9280
|
+
handler: (context: GenericActionCtx<StripeDataModel>, args: {
|
|
9281
|
+
accountId?: string | undefined;
|
|
9282
|
+
}, configuration: InternalConfiguration, options: InternalOptions) => Promise<void>;
|
|
9283
|
+
}, {
|
|
9284
|
+
args: VObject< {
|
|
9285
|
+
accountId?: string | undefined;
|
|
9286
|
+
}, {
|
|
9287
|
+
accountId: VString<string | undefined, "optional">;
|
|
9288
|
+
}, "required", "accountId">;
|
|
9289
|
+
name: string;
|
|
9290
|
+
handler: (context: GenericActionCtx<StripeDataModel>, args: {
|
|
9291
|
+
accountId?: string | undefined;
|
|
9292
|
+
}, configuration: InternalConfiguration, options: InternalOptions) => Promise<void>;
|
|
9293
|
+
}, {
|
|
9294
|
+
args: VObject< {
|
|
9295
|
+
accountId?: string | undefined;
|
|
9296
|
+
}, {
|
|
9297
|
+
accountId: VString<string | undefined, "optional">;
|
|
9298
|
+
}, "required", "accountId">;
|
|
9299
|
+
name: string;
|
|
9300
|
+
handler: (context: GenericActionCtx<StripeDataModel>, args: {
|
|
9301
|
+
accountId?: string | undefined;
|
|
9302
|
+
}, configuration: InternalConfiguration, options: InternalOptions) => Promise<void>;
|
|
9303
|
+
}, {
|
|
9304
|
+
args: VObject< {
|
|
9305
|
+
accountId?: string | undefined;
|
|
9306
|
+
}, {
|
|
9307
|
+
accountId: VString<string | undefined, "optional">;
|
|
9308
|
+
}, "required", "accountId">;
|
|
9309
|
+
name: string;
|
|
9310
|
+
handler: (context: GenericActionCtx<StripeDataModel>, args: {
|
|
9311
|
+
accountId?: string | undefined;
|
|
9312
|
+
}, configuration: InternalConfiguration, options: InternalOptions) => Promise<void>;
|
|
9313
|
+
}];
|
|
9314
|
+
|
|
9047
9315
|
export declare const syncAllTables: () => Record<keyof typeof stripeTables, boolean>;
|
|
9048
9316
|
|
|
9049
9317
|
export declare const syncAllTablesExcept: (tables: Array<keyof typeof stripeTables>) => Record<keyof typeof stripeTables, boolean>;
|
|
9050
9318
|
|
|
9051
9319
|
export declare const syncOnlyTables: (tables: Array<keyof typeof stripeTables>) => Record<keyof typeof stripeTables, boolean>;
|
|
9052
9320
|
|
|
9321
|
+
export declare const WEBHOOK_HANDLERS: readonly [WebhookHandler<"account.updated">, WebhookHandler<"billing_portal.configuration.created" | "billing_portal.configuration.updated">, WebhookHandler<"capability.updated">, WebhookHandler<"charge.captured" | "charge.expired" | "charge.failed" | "charge.pending" | "charge.refunded" | "charge.succeeded" | "charge.updated">, WebhookHandler<"checkout.session.async_payment_failed" | "checkout.session.async_payment_succeeded" | "checkout.session.completed" | "checkout.session.expired">, WebhookHandler<"coupon.created" | "coupon.deleted" | "coupon.updated">, WebhookHandler<"credit_note.created" | "credit_note.updated" | "credit_note.voided">, WebhookHandler<"customer.created" | "customer.deleted" | "customer.updated">, WebhookHandler<"charge.dispute.closed" | "charge.dispute.created" | "charge.dispute.funds_reinstated" | "charge.dispute.funds_withdrawn" | "charge.dispute.updated">, WebhookHandler<"radar.early_fraud_warning.created" | "radar.early_fraud_warning.updated">, WebhookHandler<"invoice.created" | "invoice.deleted" | "invoice.finalization_failed" | "invoice.finalized" | "invoice.marked_uncollectible" | "invoice.overdue" | "invoice.overpaid" | "invoice.paid" | "invoice.payment_action_required" | "invoice.payment_failed" | "invoice.payment_succeeded" | "invoice.sent" | "invoice.upcoming" | "invoice.updated" | "invoice.voided" | "invoice.will_be_due">, WebhookHandler<"mandate.updated">, WebhookHandler<"payment_intent.amount_capturable_updated" | "payment_intent.canceled" | "payment_intent.created" | "payment_intent.partially_funded" | "payment_intent.payment_failed" | "payment_intent.processing" | "payment_intent.requires_action" | "payment_intent.succeeded">, WebhookHandler<"payment_method.attached" | "payment_method.automatically_updated" | "payment_method.detached" | "payment_method.updated">, WebhookHandler<"payout.canceled" | "payout.created" | "payout.failed" | "payout.paid" | "payout.reconciliation_completed" | "payout.updated">, WebhookHandler<"plan.created" | "plan.deleted" | "plan.updated">, WebhookHandler<"price.created" | "price.deleted" | "price.updated">, WebhookHandler<"product.created" | "product.deleted" | "product.updated">, WebhookHandler<"promotion_code.created" | "promotion_code.updated">, WebhookHandler<"charge.refund.updated" | "refund.created" | "refund.failed" | "refund.updated">, WebhookHandler<"review.closed" | "review.opened">, WebhookHandler<"setup_intent.canceled" | "setup_intent.created" | "setup_intent.requires_action" | "setup_intent.setup_failed" | "setup_intent.succeeded">, WebhookHandler<"subscription_schedule.aborted" | "subscription_schedule.canceled" | "subscription_schedule.completed" | "subscription_schedule.created" | "subscription_schedule.expiring" | "subscription_schedule.released" | "subscription_schedule.updated">, WebhookHandler<"customer.subscription.created" | "customer.subscription.deleted" | "customer.subscription.paused" | "customer.subscription.pending_update_applied" | "customer.subscription.pending_update_expired" | "customer.subscription.resumed" | "customer.subscription.trial_will_end" | "customer.subscription.updated">, WebhookHandler<"customer.tax_id.created" | "customer.tax_id.deleted" | "customer.tax_id.updated">, WebhookHandler<"transfer.created" | "transfer.reversed" | "transfer.updated">];
|
|
9322
|
+
|
|
9053
9323
|
declare type WebhookHandler<TEvents extends default_2.Event.Type> = {
|
|
9054
9324
|
events: readonly TEvents[];
|
|
9055
9325
|
handle: (event_: Extract<default_2.Event, {
|