@raideno/convex-stripe 0.1.1 → 0.1.3
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/dist/index.d.ts +0 -2
- package/dist/index.js +1 -0
- package/dist/server/actions/index.d.ts +4 -0
- package/dist/server/actions/pay.d.ts +579 -0
- package/dist/server/actions/portal.d.ts +26 -0
- package/dist/server/actions/setup.d.ts +19 -0
- package/dist/server/actions/subscribe.d.ts +44 -0
- package/dist/server/helpers.d.ts +28 -0
- package/dist/server/index.d.ts +967 -0
- package/dist/server/logger.d.ts +8 -0
- package/dist/server/redirects/index.d.ts +47 -0
- package/dist/server/redirects/pay.d.ts +5 -0
- package/dist/server/redirects/portal.d.ts +3 -0
- package/dist/server/redirects/subscribe.d.ts +3 -0
- package/dist/server/redirects/types.d.ts +9 -0
- package/dist/server/schema/charge.d.ts +294 -0
- package/dist/server/schema/checkout-session.d.ts +256 -0
- package/dist/server/schema/coupon.d.ts +112 -0
- package/dist/server/schema/credit-note.d.ts +228 -0
- package/dist/server/schema/customer.d.ts +366 -0
- package/dist/server/schema/dispute.d.ts +76 -0
- package/dist/server/schema/early-fraud-warning.d.ts +40 -0
- package/dist/server/schema/index.d.ts +6063 -0
- package/dist/server/schema/invoice.d.ts +314 -0
- package/dist/server/schema/payment-intent.d.ts +311 -0
- package/dist/server/schema/payment-method.d.ts +248 -0
- package/dist/server/schema/payout.d.ts +140 -0
- package/dist/server/schema/plan.d.ts +112 -0
- package/dist/server/schema/price.d.ts +148 -0
- package/dist/server/schema/product.d.ts +132 -0
- package/dist/server/schema/promotion-code.d.ts +266 -0
- package/dist/server/schema/refund.d.ts +92 -0
- package/dist/server/schema/review.d.ts +152 -0
- package/dist/server/schema/setup-intent.d.ts +156 -0
- package/dist/server/schema/subscription-schedule.d.ts +468 -0
- package/dist/server/schema/subscription.d.ts +4 -0
- package/dist/server/schema/tax-id.d.ts +120 -0
- package/dist/server/store/index.d.ts +960 -0
- package/dist/server/store/operations/delete-by-id.d.ts +3 -0
- package/dist/server/store/operations/index.d.ts +5 -0
- package/dist/server/store/operations/select-all.d.ts +3 -0
- package/dist/server/store/operations/select-by-id.d.ts +4 -0
- package/dist/server/store/operations/select-one.d.ts +3 -0
- package/dist/server/store/operations/upsert.d.ts +4 -0
- package/dist/server/store/types.d.ts +70 -0
- package/dist/server/sync/all.d.ts +5 -0
- package/dist/server/sync/charges.handler.d.ts +5 -0
- package/dist/server/sync/checkout-sessions.handler.d.ts +5 -0
- package/dist/server/sync/coupons.handler.d.ts +5 -0
- package/dist/server/sync/credit-notes.handler.d.ts +5 -0
- package/dist/server/sync/customers.handler.d.ts +5 -0
- package/dist/server/sync/disputes.handler.d.ts +5 -0
- package/dist/server/sync/early-fraud-warnings.handler.d.ts +5 -0
- package/dist/server/sync/invoices.handler.d.ts +5 -0
- package/dist/server/sync/payment-intents.handler.d.ts +5 -0
- package/dist/server/sync/payment-methods.handler.d.ts +5 -0
- package/dist/server/sync/payouts.handler.d.ts +5 -0
- package/dist/server/sync/plans.handler.d.ts +5 -0
- package/dist/server/sync/prices.handler.d.ts +5 -0
- package/dist/server/sync/products.handler.d.ts +5 -0
- package/dist/server/sync/promotion-codes.handler.d.ts +5 -0
- package/dist/server/sync/refunds.handler.d.ts +5 -0
- package/dist/server/sync/reviews.handler.d.ts +5 -0
- package/dist/server/sync/setup-intents.handler.d.ts +5 -0
- package/dist/server/sync/subscription-schedules.handler.d.ts +5 -0
- package/dist/server/sync/subscription.d.ts +12 -0
- package/dist/server/sync/subscriptions.handler.d.ts +5 -0
- package/dist/server/sync/tax-id.handler.d.ts +5 -0
- package/dist/server/types.d.ts +29 -0
- package/dist/server/webhooks/charges.handler.d.ts +2 -0
- package/dist/server/webhooks/checkout-sessions.handler.d.ts +2 -0
- package/dist/server/webhooks/coupons.handler.d.ts +2 -0
- package/dist/server/webhooks/credit-notes.handler.d.ts +2 -0
- package/dist/server/webhooks/customers.handler.d.ts +2 -0
- package/dist/server/webhooks/disputes.handler.d.ts +2 -0
- package/dist/server/webhooks/early-fraud-warnings.handler.d.ts +2 -0
- package/dist/server/webhooks/index.d.ts +2 -0
- package/dist/server/webhooks/invoices.handler.d.ts +2 -0
- package/dist/server/webhooks/payment-intents.handler.d.ts +2 -0
- package/dist/server/webhooks/payment-methods.handler.d.ts +2 -0
- package/dist/server/webhooks/payouts.handler.d.ts +2 -0
- package/dist/server/webhooks/plans.handler.d.ts +2 -0
- package/dist/server/webhooks/prices.handler.d.ts +2 -0
- package/dist/server/webhooks/products.handler.d.ts +2 -0
- package/dist/server/webhooks/promotion-codes.handler.d.ts +2 -0
- package/dist/server/webhooks/refunds.handler.d.ts +2 -0
- package/dist/server/webhooks/reviews.handler.d.ts +2 -0
- package/dist/server/webhooks/setup-intent.handler.d.ts +2 -0
- package/dist/server/webhooks/subscription-schedules.handler.d.ts +2 -0
- package/dist/server/webhooks/subscription.handler.d.ts +2 -0
- package/dist/server/webhooks/tax-id.handler.d.ts +2 -0
- package/dist/server/webhooks/types.d.ts +11 -0
- package/dist/server.d.ts +2 -3790
- package/dist/server.js +6072 -1564
- package/package.json +9 -10
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
import { default as Stripe } from 'stripe';
|
|
2
|
+
export declare const SetupIntentStripeToConvex: (setupIntent: Stripe.SetupIntent) => {
|
|
3
|
+
customer?: string | null | undefined;
|
|
4
|
+
description?: string | null | undefined;
|
|
5
|
+
metadata?: Record<string, string | number | null> | null | undefined;
|
|
6
|
+
application?: string | null | undefined;
|
|
7
|
+
on_behalf_of?: string | null | undefined;
|
|
8
|
+
payment_method?: string | null | undefined;
|
|
9
|
+
client_secret?: string | null | undefined;
|
|
10
|
+
payment_method_configuration_details?: {
|
|
11
|
+
parent?: string | null | undefined;
|
|
12
|
+
id: string;
|
|
13
|
+
} | null | undefined;
|
|
14
|
+
automatic_payment_methods?: {
|
|
15
|
+
allow_redirects?: "always" | "never" | null | undefined;
|
|
16
|
+
enabled?: boolean | null | undefined;
|
|
17
|
+
} | null | undefined;
|
|
18
|
+
cancellation_reason?: "duplicate" | "abandoned" | "requested_by_customer" | null | undefined;
|
|
19
|
+
attach_to_self?: boolean | null | undefined;
|
|
20
|
+
latest_attempt?: string | null | undefined;
|
|
21
|
+
mandate?: string | null | undefined;
|
|
22
|
+
single_use_mandate?: string | null | undefined;
|
|
23
|
+
object: string;
|
|
24
|
+
id: string;
|
|
25
|
+
status: "succeeded" | "canceled" | "processing" | "requires_action" | "requires_confirmation" | "requires_payment_method";
|
|
26
|
+
created: number;
|
|
27
|
+
livemode: boolean;
|
|
28
|
+
payment_method_options: any;
|
|
29
|
+
payment_method_types: string[];
|
|
30
|
+
next_action: any;
|
|
31
|
+
last_setup_error: any;
|
|
32
|
+
usage: string;
|
|
33
|
+
flow_directions: ("inbound" | "outbound")[] | null;
|
|
34
|
+
};
|
|
35
|
+
export declare const SetupIntentSchema: {
|
|
36
|
+
id: import('convex/values').VString<string, "required">;
|
|
37
|
+
automatic_payment_methods: import('convex/values').VUnion<{
|
|
38
|
+
allow_redirects?: "always" | "never" | null | undefined;
|
|
39
|
+
enabled?: boolean | null | undefined;
|
|
40
|
+
} | null | undefined, [import('convex/values').VObject<{
|
|
41
|
+
allow_redirects?: "always" | "never" | null | undefined;
|
|
42
|
+
enabled?: boolean | null | undefined;
|
|
43
|
+
}, {
|
|
44
|
+
allow_redirects: import('convex/values').VUnion<"always" | "never" | null | undefined, [import('convex/values').VLiteral<"always", "required">, import('convex/values').VLiteral<"never", "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
45
|
+
enabled: import('convex/values').VUnion<boolean | null | undefined, [import('convex/values').VBoolean<boolean, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
46
|
+
}, "required", "allow_redirects" | "enabled">, import('convex/values').VNull<null, "required">], "optional", "allow_redirects" | "enabled">;
|
|
47
|
+
client_secret: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
48
|
+
customer: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
49
|
+
description: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
50
|
+
last_setup_error: import('convex/values').VAny<any, "required", string>;
|
|
51
|
+
metadata: import('convex/values').VUnion<Record<string, string | number | null> | null | undefined, [import('convex/values').VRecord<Record<string, string | number | null>, import('convex/values').VString<string, "required">, import('convex/values').VUnion<string | number | null, [import('convex/values').VString<string, "required">, import('convex/values').VFloat64<number, "required">, import('convex/values').VNull<null, "required">], "required", never>, "required", string>, import('convex/values').VNull<null, "required">], "optional", string>;
|
|
52
|
+
next_action: import('convex/values').VAny<any, "required", string>;
|
|
53
|
+
payment_method: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
54
|
+
status: import('convex/values').VUnion<"succeeded" | "canceled" | "processing" | "requires_action" | "requires_confirmation" | "requires_payment_method", [import('convex/values').VLiteral<"canceled", "required">, import('convex/values').VLiteral<"processing", "required">, import('convex/values').VLiteral<"requires_action", "required">, import('convex/values').VLiteral<"requires_confirmation", "required">, import('convex/values').VLiteral<"requires_payment_method", "required">, import('convex/values').VLiteral<"succeeded", "required">], "required", never>;
|
|
55
|
+
usage: import('convex/values').VString<string, "required">;
|
|
56
|
+
object: import('convex/values').VString<string, "required">;
|
|
57
|
+
application: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
58
|
+
attach_to_self: import('convex/values').VUnion<boolean | null | undefined, [import('convex/values').VBoolean<boolean, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
59
|
+
cancellation_reason: import('convex/values').VUnion<"duplicate" | "abandoned" | "requested_by_customer" | null | undefined, [import('convex/values').VLiteral<"abandoned", "required">, import('convex/values').VLiteral<"duplicate", "required">, import('convex/values').VLiteral<"requested_by_customer", "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
60
|
+
created: import('convex/values').VFloat64<number, "required">;
|
|
61
|
+
flow_directions: import('convex/values').VUnion<("inbound" | "outbound")[] | null, [import('convex/values').VArray<("inbound" | "outbound")[], import('convex/values').VUnion<"inbound" | "outbound", [import('convex/values').VLiteral<"inbound", "required">, import('convex/values').VLiteral<"outbound", "required">], "required", never>, "required">, import('convex/values').VNull<null, "required">], "required", never>;
|
|
62
|
+
latest_attempt: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
63
|
+
livemode: import('convex/values').VBoolean<boolean, "required">;
|
|
64
|
+
mandate: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
65
|
+
on_behalf_of: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
66
|
+
payment_method_configuration_details: import('convex/values').VUnion<{
|
|
67
|
+
parent?: string | null | undefined;
|
|
68
|
+
id: string;
|
|
69
|
+
} | null | undefined, [import('convex/values').VObject<{
|
|
70
|
+
parent?: string | null | undefined;
|
|
71
|
+
id: string;
|
|
72
|
+
}, {
|
|
73
|
+
id: import('convex/values').VString<string, "required">;
|
|
74
|
+
parent: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
75
|
+
}, "required", "id" | "parent">, import('convex/values').VNull<null, "required">], "optional", "id" | "parent">;
|
|
76
|
+
payment_method_options: import('convex/values').VAny<any, "required", string>;
|
|
77
|
+
payment_method_types: import('convex/values').VArray<string[], import('convex/values').VString<string, "required">, "required">;
|
|
78
|
+
single_use_mandate: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
79
|
+
};
|
|
80
|
+
export declare const SetupIntentObject: import('convex/values').VObject<{
|
|
81
|
+
customer?: string | null | undefined;
|
|
82
|
+
description?: string | null | undefined;
|
|
83
|
+
metadata?: Record<string, string | number | null> | null | undefined;
|
|
84
|
+
application?: string | null | undefined;
|
|
85
|
+
on_behalf_of?: string | null | undefined;
|
|
86
|
+
payment_method?: string | null | undefined;
|
|
87
|
+
client_secret?: string | null | undefined;
|
|
88
|
+
payment_method_configuration_details?: {
|
|
89
|
+
parent?: string | null | undefined;
|
|
90
|
+
id: string;
|
|
91
|
+
} | null | undefined;
|
|
92
|
+
automatic_payment_methods?: {
|
|
93
|
+
allow_redirects?: "always" | "never" | null | undefined;
|
|
94
|
+
enabled?: boolean | null | undefined;
|
|
95
|
+
} | null | undefined;
|
|
96
|
+
cancellation_reason?: "duplicate" | "abandoned" | "requested_by_customer" | null | undefined;
|
|
97
|
+
attach_to_self?: boolean | null | undefined;
|
|
98
|
+
latest_attempt?: string | null | undefined;
|
|
99
|
+
mandate?: string | null | undefined;
|
|
100
|
+
single_use_mandate?: string | null | undefined;
|
|
101
|
+
object: string;
|
|
102
|
+
id: string;
|
|
103
|
+
status: "succeeded" | "canceled" | "processing" | "requires_action" | "requires_confirmation" | "requires_payment_method";
|
|
104
|
+
created: number;
|
|
105
|
+
livemode: boolean;
|
|
106
|
+
payment_method_options: any;
|
|
107
|
+
payment_method_types: string[];
|
|
108
|
+
next_action: any;
|
|
109
|
+
last_setup_error: any;
|
|
110
|
+
usage: string;
|
|
111
|
+
flow_directions: ("inbound" | "outbound")[] | null;
|
|
112
|
+
}, {
|
|
113
|
+
id: import('convex/values').VString<string, "required">;
|
|
114
|
+
automatic_payment_methods: import('convex/values').VUnion<{
|
|
115
|
+
allow_redirects?: "always" | "never" | null | undefined;
|
|
116
|
+
enabled?: boolean | null | undefined;
|
|
117
|
+
} | null | undefined, [import('convex/values').VObject<{
|
|
118
|
+
allow_redirects?: "always" | "never" | null | undefined;
|
|
119
|
+
enabled?: boolean | null | undefined;
|
|
120
|
+
}, {
|
|
121
|
+
allow_redirects: import('convex/values').VUnion<"always" | "never" | null | undefined, [import('convex/values').VLiteral<"always", "required">, import('convex/values').VLiteral<"never", "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
122
|
+
enabled: import('convex/values').VUnion<boolean | null | undefined, [import('convex/values').VBoolean<boolean, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
123
|
+
}, "required", "allow_redirects" | "enabled">, import('convex/values').VNull<null, "required">], "optional", "allow_redirects" | "enabled">;
|
|
124
|
+
client_secret: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
125
|
+
customer: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
126
|
+
description: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
127
|
+
last_setup_error: import('convex/values').VAny<any, "required", string>;
|
|
128
|
+
metadata: import('convex/values').VUnion<Record<string, string | number | null> | null | undefined, [import('convex/values').VRecord<Record<string, string | number | null>, import('convex/values').VString<string, "required">, import('convex/values').VUnion<string | number | null, [import('convex/values').VString<string, "required">, import('convex/values').VFloat64<number, "required">, import('convex/values').VNull<null, "required">], "required", never>, "required", string>, import('convex/values').VNull<null, "required">], "optional", string>;
|
|
129
|
+
next_action: import('convex/values').VAny<any, "required", string>;
|
|
130
|
+
payment_method: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
131
|
+
status: import('convex/values').VUnion<"succeeded" | "canceled" | "processing" | "requires_action" | "requires_confirmation" | "requires_payment_method", [import('convex/values').VLiteral<"canceled", "required">, import('convex/values').VLiteral<"processing", "required">, import('convex/values').VLiteral<"requires_action", "required">, import('convex/values').VLiteral<"requires_confirmation", "required">, import('convex/values').VLiteral<"requires_payment_method", "required">, import('convex/values').VLiteral<"succeeded", "required">], "required", never>;
|
|
132
|
+
usage: import('convex/values').VString<string, "required">;
|
|
133
|
+
object: import('convex/values').VString<string, "required">;
|
|
134
|
+
application: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
135
|
+
attach_to_self: import('convex/values').VUnion<boolean | null | undefined, [import('convex/values').VBoolean<boolean, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
136
|
+
cancellation_reason: import('convex/values').VUnion<"duplicate" | "abandoned" | "requested_by_customer" | null | undefined, [import('convex/values').VLiteral<"abandoned", "required">, import('convex/values').VLiteral<"duplicate", "required">, import('convex/values').VLiteral<"requested_by_customer", "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
137
|
+
created: import('convex/values').VFloat64<number, "required">;
|
|
138
|
+
flow_directions: import('convex/values').VUnion<("inbound" | "outbound")[] | null, [import('convex/values').VArray<("inbound" | "outbound")[], import('convex/values').VUnion<"inbound" | "outbound", [import('convex/values').VLiteral<"inbound", "required">, import('convex/values').VLiteral<"outbound", "required">], "required", never>, "required">, import('convex/values').VNull<null, "required">], "required", never>;
|
|
139
|
+
latest_attempt: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
140
|
+
livemode: import('convex/values').VBoolean<boolean, "required">;
|
|
141
|
+
mandate: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
142
|
+
on_behalf_of: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
143
|
+
payment_method_configuration_details: import('convex/values').VUnion<{
|
|
144
|
+
parent?: string | null | undefined;
|
|
145
|
+
id: string;
|
|
146
|
+
} | null | undefined, [import('convex/values').VObject<{
|
|
147
|
+
parent?: string | null | undefined;
|
|
148
|
+
id: string;
|
|
149
|
+
}, {
|
|
150
|
+
id: import('convex/values').VString<string, "required">;
|
|
151
|
+
parent: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
152
|
+
}, "required", "id" | "parent">, import('convex/values').VNull<null, "required">], "optional", "id" | "parent">;
|
|
153
|
+
payment_method_options: import('convex/values').VAny<any, "required", string>;
|
|
154
|
+
payment_method_types: import('convex/values').VArray<string[], import('convex/values').VString<string, "required">, "required">;
|
|
155
|
+
single_use_mandate: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
156
|
+
}, "required", "object" | "id" | "customer" | "description" | "metadata" | "status" | "application" | "created" | "livemode" | "on_behalf_of" | "payment_method" | `metadata.${string}` | "client_secret" | "payment_method_configuration_details" | "payment_method_options" | "payment_method_types" | `payment_method_options.${string}` | "automatic_payment_methods" | "next_action" | "cancellation_reason" | "payment_method_configuration_details.id" | "payment_method_configuration_details.parent" | "automatic_payment_methods.allow_redirects" | "automatic_payment_methods.enabled" | `next_action.${string}` | "last_setup_error" | "usage" | "attach_to_self" | "flow_directions" | "latest_attempt" | "mandate" | "single_use_mandate" | `last_setup_error.${string}`>;
|