@raideno/convex-stripe 0.1.2 → 0.1.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/dist/server/actions/pay.d.ts +52 -52
- package/dist/server/actions/setup.d.ts +3 -3
- package/dist/server/actions/subscribe.d.ts +7 -7
- package/dist/server/index.d.ts +451 -73
- package/dist/server/schema/charge.d.ts +294 -0
- package/dist/server/schema/checkout-session.d.ts +21 -21
- package/dist/server/schema/coupon.d.ts +3 -3
- package/dist/server/schema/credit-note.d.ts +228 -0
- package/dist/server/schema/customer.d.ts +19 -19
- 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 +4158 -1608
- package/dist/server/schema/invoice.d.ts +35 -35
- package/dist/server/schema/payment-intent.d.ts +28 -28
- package/dist/server/schema/payment-method.d.ts +248 -0
- package/dist/server/schema/payout.d.ts +11 -11
- package/dist/server/schema/plan.d.ts +112 -0
- package/dist/server/schema/price.d.ts +17 -17
- package/dist/server/schema/product.d.ts +7 -7
- package/dist/server/schema/promotion-code.d.ts +7 -7
- package/dist/server/schema/refund.d.ts +11 -11
- package/dist/server/schema/review.d.ts +9 -9
- package/dist/server/schema/setup-intent.d.ts +156 -0
- package/dist/server/schema/subscription-schedule.d.ts +468 -0
- package/dist/server/schema/tax-id.d.ts +120 -0
- package/dist/server/store/index.d.ts +450 -72
- package/dist/server/sync/charges.handler.d.ts +5 -0
- package/dist/server/sync/credit-notes.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/payment-methods.handler.d.ts +5 -0
- package/dist/server/sync/plans.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/tax-id.handler.d.ts +5 -0
- package/dist/server/types.d.ts +1 -9
- package/dist/server/webhooks/charges.handler.d.ts +2 -0
- package/dist/server/webhooks/credit-notes.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/payment-methods.handler.d.ts +2 -0
- package/dist/server/webhooks/plans.handler.d.ts +2 -0
- package/dist/server/webhooks/refunds.handler.d.ts +1 -1
- 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/tax-id.handler.d.ts +2 -0
- package/dist/server.js +2032 -90
- package/package.json +1 -3
- /package/dist/server/sync/{checkouts-session.handler.d.ts → checkout-sessions.handler.d.ts} +0 -0
- /package/dist/server/sync/{payment-intent.handler.d.ts → payment-intents.handler.d.ts} +0 -0
- /package/dist/server/webhooks/{checkouts-session.handler.d.ts → checkout-sessions.handler.d.ts} +0 -0
|
@@ -23,7 +23,7 @@ export declare const LineItemSchema: import('convex/values').VUnion<{
|
|
|
23
23
|
interval_count?: number | undefined;
|
|
24
24
|
interval: "day" | "week" | "month" | "year";
|
|
25
25
|
} | undefined;
|
|
26
|
-
tax_behavior?: "
|
|
26
|
+
tax_behavior?: "unspecified" | "exclusive" | "inclusive" | undefined;
|
|
27
27
|
currency: string;
|
|
28
28
|
productId: string;
|
|
29
29
|
unit_amount: number;
|
|
@@ -32,15 +32,15 @@ export declare const LineItemSchema: import('convex/values').VUnion<{
|
|
|
32
32
|
interval_count?: number | undefined;
|
|
33
33
|
interval: "day" | "week" | "month" | "year";
|
|
34
34
|
} | undefined;
|
|
35
|
-
tax_behavior?: "
|
|
35
|
+
tax_behavior?: "unspecified" | "exclusive" | "inclusive" | undefined;
|
|
36
36
|
currency: string;
|
|
37
37
|
unit_amount: number;
|
|
38
38
|
product_data: {
|
|
39
39
|
description?: string | undefined;
|
|
40
40
|
images?: string[] | undefined;
|
|
41
41
|
tax_code?: string | undefined;
|
|
42
|
-
metadata: Record<string, string | number | null>;
|
|
43
42
|
name: string;
|
|
43
|
+
metadata: Record<string, string | number | null>;
|
|
44
44
|
};
|
|
45
45
|
};
|
|
46
46
|
}, [import('convex/values').VObject<{
|
|
@@ -81,7 +81,7 @@ export declare const LineItemSchema: import('convex/values').VUnion<{
|
|
|
81
81
|
interval_count?: number | undefined;
|
|
82
82
|
interval: "day" | "week" | "month" | "year";
|
|
83
83
|
} | undefined;
|
|
84
|
-
tax_behavior?: "
|
|
84
|
+
tax_behavior?: "unspecified" | "exclusive" | "inclusive" | undefined;
|
|
85
85
|
currency: string;
|
|
86
86
|
productId: string;
|
|
87
87
|
unit_amount: number;
|
|
@@ -90,15 +90,15 @@ export declare const LineItemSchema: import('convex/values').VUnion<{
|
|
|
90
90
|
interval_count?: number | undefined;
|
|
91
91
|
interval: "day" | "week" | "month" | "year";
|
|
92
92
|
} | undefined;
|
|
93
|
-
tax_behavior?: "
|
|
93
|
+
tax_behavior?: "unspecified" | "exclusive" | "inclusive" | undefined;
|
|
94
94
|
currency: string;
|
|
95
95
|
unit_amount: number;
|
|
96
96
|
product_data: {
|
|
97
97
|
description?: string | undefined;
|
|
98
98
|
images?: string[] | undefined;
|
|
99
99
|
tax_code?: string | undefined;
|
|
100
|
-
metadata: Record<string, string | number | null>;
|
|
101
100
|
name: string;
|
|
101
|
+
metadata: Record<string, string | number | null>;
|
|
102
102
|
};
|
|
103
103
|
};
|
|
104
104
|
}, {
|
|
@@ -116,7 +116,7 @@ export declare const LineItemSchema: import('convex/values').VUnion<{
|
|
|
116
116
|
interval_count?: number | undefined;
|
|
117
117
|
interval: "day" | "week" | "month" | "year";
|
|
118
118
|
} | undefined;
|
|
119
|
-
tax_behavior?: "
|
|
119
|
+
tax_behavior?: "unspecified" | "exclusive" | "inclusive" | undefined;
|
|
120
120
|
currency: string;
|
|
121
121
|
productId: string;
|
|
122
122
|
unit_amount: number;
|
|
@@ -125,22 +125,22 @@ export declare const LineItemSchema: import('convex/values').VUnion<{
|
|
|
125
125
|
interval_count?: number | undefined;
|
|
126
126
|
interval: "day" | "week" | "month" | "year";
|
|
127
127
|
} | undefined;
|
|
128
|
-
tax_behavior?: "
|
|
128
|
+
tax_behavior?: "unspecified" | "exclusive" | "inclusive" | undefined;
|
|
129
129
|
currency: string;
|
|
130
130
|
unit_amount: number;
|
|
131
131
|
product_data: {
|
|
132
132
|
description?: string | undefined;
|
|
133
133
|
images?: string[] | undefined;
|
|
134
134
|
tax_code?: string | undefined;
|
|
135
|
-
metadata: Record<string, string | number | null>;
|
|
136
135
|
name: string;
|
|
136
|
+
metadata: Record<string, string | number | null>;
|
|
137
137
|
};
|
|
138
138
|
}, [import('convex/values').VObject<{
|
|
139
139
|
recurring?: {
|
|
140
140
|
interval_count?: number | undefined;
|
|
141
141
|
interval: "day" | "week" | "month" | "year";
|
|
142
142
|
} | undefined;
|
|
143
|
-
tax_behavior?: "
|
|
143
|
+
tax_behavior?: "unspecified" | "exclusive" | "inclusive" | undefined;
|
|
144
144
|
currency: string;
|
|
145
145
|
productId: string;
|
|
146
146
|
unit_amount: number;
|
|
@@ -154,22 +154,22 @@ export declare const LineItemSchema: import('convex/values').VUnion<{
|
|
|
154
154
|
interval: import('convex/values').VUnion<"day" | "week" | "month" | "year", [import('convex/values').VLiteral<"day", "required">, import('convex/values').VLiteral<"week", "required">, import('convex/values').VLiteral<"month", "required">, import('convex/values').VLiteral<"year", "required">], "required", never>;
|
|
155
155
|
interval_count: import('convex/values').VFloat64<number | undefined, "optional">;
|
|
156
156
|
}, "optional", "interval" | "interval_count">;
|
|
157
|
-
tax_behavior: import('convex/values').VUnion<"
|
|
157
|
+
tax_behavior: import('convex/values').VUnion<"unspecified" | "exclusive" | "inclusive" | undefined, [import('convex/values').VLiteral<"exclusive", "required">, import('convex/values').VLiteral<"inclusive", "required">, import('convex/values').VLiteral<"unspecified", "required">], "optional", never>;
|
|
158
158
|
unit_amount: import('convex/values').VFloat64<number, "required">;
|
|
159
159
|
}, "required", "currency" | "recurring" | "productId" | "unit_amount" | "recurring.interval" | "recurring.interval_count" | "tax_behavior">, import('convex/values').VObject<{
|
|
160
160
|
recurring?: {
|
|
161
161
|
interval_count?: number | undefined;
|
|
162
162
|
interval: "day" | "week" | "month" | "year";
|
|
163
163
|
} | undefined;
|
|
164
|
-
tax_behavior?: "
|
|
164
|
+
tax_behavior?: "unspecified" | "exclusive" | "inclusive" | undefined;
|
|
165
165
|
currency: string;
|
|
166
166
|
unit_amount: number;
|
|
167
167
|
product_data: {
|
|
168
168
|
description?: string | undefined;
|
|
169
169
|
images?: string[] | undefined;
|
|
170
170
|
tax_code?: string | undefined;
|
|
171
|
-
metadata: Record<string, string | number | null>;
|
|
172
171
|
name: string;
|
|
172
|
+
metadata: Record<string, string | number | null>;
|
|
173
173
|
};
|
|
174
174
|
}, {
|
|
175
175
|
currency: import('convex/values').VString<string, "required">;
|
|
@@ -177,15 +177,15 @@ export declare const LineItemSchema: import('convex/values').VUnion<{
|
|
|
177
177
|
description?: string | undefined;
|
|
178
178
|
images?: string[] | undefined;
|
|
179
179
|
tax_code?: string | undefined;
|
|
180
|
-
metadata: Record<string, string | number | null>;
|
|
181
180
|
name: string;
|
|
181
|
+
metadata: Record<string, string | number | null>;
|
|
182
182
|
}, {
|
|
183
183
|
description: import('convex/values').VString<string | undefined, "optional">;
|
|
184
184
|
images: import('convex/values').VArray<string[] | undefined, import('convex/values').VString<string, "required">, "optional">;
|
|
185
185
|
metadata: 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>;
|
|
186
186
|
name: import('convex/values').VString<string, "required">;
|
|
187
187
|
tax_code: import('convex/values').VString<string | undefined, "optional">;
|
|
188
|
-
}, "required", "metadata" | `metadata.${string}` | "
|
|
188
|
+
}, "required", "name" | "description" | "metadata" | `metadata.${string}` | "images" | "tax_code">;
|
|
189
189
|
recurring: import('convex/values').VObject<{
|
|
190
190
|
interval_count?: number | undefined;
|
|
191
191
|
interval: "day" | "week" | "month" | "year";
|
|
@@ -193,13 +193,13 @@ export declare const LineItemSchema: import('convex/values').VUnion<{
|
|
|
193
193
|
interval: import('convex/values').VUnion<"day" | "week" | "month" | "year", [import('convex/values').VLiteral<"day", "required">, import('convex/values').VLiteral<"week", "required">, import('convex/values').VLiteral<"month", "required">, import('convex/values').VLiteral<"year", "required">], "required", never>;
|
|
194
194
|
interval_count: import('convex/values').VFloat64<number | undefined, "optional">;
|
|
195
195
|
}, "optional", "interval" | "interval_count">;
|
|
196
|
-
tax_behavior: import('convex/values').VUnion<"
|
|
196
|
+
tax_behavior: import('convex/values').VUnion<"unspecified" | "exclusive" | "inclusive" | undefined, [import('convex/values').VLiteral<"exclusive", "required">, import('convex/values').VLiteral<"inclusive", "required">, import('convex/values').VLiteral<"unspecified", "required">], "optional", never>;
|
|
197
197
|
unit_amount: import('convex/values').VFloat64<number, "required">;
|
|
198
|
-
}, "required", "currency" | "recurring" | "unit_amount" | "recurring.interval" | "recurring.interval_count" | "tax_behavior" | "product_data" | "product_data.
|
|
198
|
+
}, "required", "currency" | "recurring" | "unit_amount" | "recurring.interval" | "recurring.interval_count" | "tax_behavior" | "product_data" | "product_data.name" | "product_data.description" | "product_data.metadata" | `product_data.metadata.${string}` | "product_data.images" | "product_data.tax_code">], "required", "currency" | "recurring" | "productId" | "unit_amount" | "recurring.interval" | "recurring.interval_count" | "tax_behavior" | "product_data" | "product_data.name" | "product_data.description" | "product_data.metadata" | `product_data.metadata.${string}` | "product_data.images" | "product_data.tax_code">;
|
|
199
199
|
quantity: import('convex/values').VFloat64<number | undefined, "optional">;
|
|
200
200
|
tax_rates: import('convex/values').VArray<string[] | undefined, import('convex/values').VString<string, "required">, "optional">;
|
|
201
201
|
dynamic_tax_rates: import('convex/values').VArray<string[] | undefined, import('convex/values').VString<string, "required">, "optional">;
|
|
202
|
-
}, "required", "adjustable_quantity" | "quantity" | "tax_rates" | "dynamic_tax_rates" | "adjustable_quantity.enabled" | "adjustable_quantity.maximum" | "adjustable_quantity.minimum" | "price_data" | "price_data.currency" | "price_data.recurring" | "price_data.productId" | "price_data.unit_amount" | "price_data.recurring.interval" | "price_data.recurring.interval_count" | "price_data.tax_behavior" | "price_data.product_data" | "price_data.product_data.
|
|
202
|
+
}, "required", "adjustable_quantity" | "quantity" | "tax_rates" | "dynamic_tax_rates" | "adjustable_quantity.enabled" | "adjustable_quantity.maximum" | "adjustable_quantity.minimum" | "price_data" | "price_data.currency" | "price_data.recurring" | "price_data.productId" | "price_data.unit_amount" | "price_data.recurring.interval" | "price_data.recurring.interval_count" | "price_data.tax_behavior" | "price_data.product_data" | "price_data.product_data.name" | "price_data.product_data.description" | "price_data.product_data.metadata" | `price_data.product_data.metadata.${string}` | "price_data.product_data.images" | "price_data.product_data.tax_code">], "required", "price" | "adjustable_quantity" | "quantity" | "tax_rates" | "dynamic_tax_rates" | "adjustable_quantity.enabled" | "adjustable_quantity.maximum" | "adjustable_quantity.minimum" | "price_data" | "price_data.currency" | "price_data.recurring" | "price_data.productId" | "price_data.unit_amount" | "price_data.recurring.interval" | "price_data.recurring.interval_count" | "price_data.tax_behavior" | "price_data.product_data" | "price_data.product_data.name" | "price_data.product_data.description" | "price_data.product_data.metadata" | `price_data.product_data.metadata.${string}` | "price_data.product_data.images" | "price_data.product_data.tax_code">;
|
|
203
203
|
export declare const PayImplementation: {
|
|
204
204
|
args: import('convex/values').VObject<{
|
|
205
205
|
metadata?: Record<string, string | number | null> | null | undefined;
|
|
@@ -228,7 +228,7 @@ export declare const PayImplementation: {
|
|
|
228
228
|
interval_count?: number | undefined;
|
|
229
229
|
interval: "day" | "week" | "month" | "year";
|
|
230
230
|
} | undefined;
|
|
231
|
-
tax_behavior?: "
|
|
231
|
+
tax_behavior?: "unspecified" | "exclusive" | "inclusive" | undefined;
|
|
232
232
|
currency: string;
|
|
233
233
|
productId: string;
|
|
234
234
|
unit_amount: number;
|
|
@@ -237,26 +237,26 @@ export declare const PayImplementation: {
|
|
|
237
237
|
interval_count?: number | undefined;
|
|
238
238
|
interval: "day" | "week" | "month" | "year";
|
|
239
239
|
} | undefined;
|
|
240
|
-
tax_behavior?: "
|
|
240
|
+
tax_behavior?: "unspecified" | "exclusive" | "inclusive" | undefined;
|
|
241
241
|
currency: string;
|
|
242
242
|
unit_amount: number;
|
|
243
243
|
product_data: {
|
|
244
244
|
description?: string | undefined;
|
|
245
245
|
images?: string[] | undefined;
|
|
246
246
|
tax_code?: string | undefined;
|
|
247
|
-
metadata: Record<string, string | number | null>;
|
|
248
247
|
name: string;
|
|
248
|
+
metadata: Record<string, string | number | null>;
|
|
249
249
|
};
|
|
250
250
|
};
|
|
251
251
|
})[];
|
|
252
|
+
cancel: {
|
|
253
|
+
url: string;
|
|
254
|
+
};
|
|
252
255
|
entityId: string;
|
|
253
256
|
referenceId: string;
|
|
254
257
|
success: {
|
|
255
258
|
url: string;
|
|
256
259
|
};
|
|
257
|
-
cancel: {
|
|
258
|
-
url: string;
|
|
259
|
-
};
|
|
260
260
|
}, {
|
|
261
261
|
createStripeCustomerIfMissing: import('convex/values').VBoolean<boolean | undefined, "optional">;
|
|
262
262
|
entityId: import('convex/values').VString<string, "required">;
|
|
@@ -286,7 +286,7 @@ export declare const PayImplementation: {
|
|
|
286
286
|
interval_count?: number | undefined;
|
|
287
287
|
interval: "day" | "week" | "month" | "year";
|
|
288
288
|
} | undefined;
|
|
289
|
-
tax_behavior?: "
|
|
289
|
+
tax_behavior?: "unspecified" | "exclusive" | "inclusive" | undefined;
|
|
290
290
|
currency: string;
|
|
291
291
|
productId: string;
|
|
292
292
|
unit_amount: number;
|
|
@@ -295,15 +295,15 @@ export declare const PayImplementation: {
|
|
|
295
295
|
interval_count?: number | undefined;
|
|
296
296
|
interval: "day" | "week" | "month" | "year";
|
|
297
297
|
} | undefined;
|
|
298
|
-
tax_behavior?: "
|
|
298
|
+
tax_behavior?: "unspecified" | "exclusive" | "inclusive" | undefined;
|
|
299
299
|
currency: string;
|
|
300
300
|
unit_amount: number;
|
|
301
301
|
product_data: {
|
|
302
302
|
description?: string | undefined;
|
|
303
303
|
images?: string[] | undefined;
|
|
304
304
|
tax_code?: string | undefined;
|
|
305
|
-
metadata: Record<string, string | number | null>;
|
|
306
305
|
name: string;
|
|
306
|
+
metadata: Record<string, string | number | null>;
|
|
307
307
|
};
|
|
308
308
|
};
|
|
309
309
|
})[], import('convex/values').VUnion<{
|
|
@@ -330,7 +330,7 @@ export declare const PayImplementation: {
|
|
|
330
330
|
interval_count?: number | undefined;
|
|
331
331
|
interval: "day" | "week" | "month" | "year";
|
|
332
332
|
} | undefined;
|
|
333
|
-
tax_behavior?: "
|
|
333
|
+
tax_behavior?: "unspecified" | "exclusive" | "inclusive" | undefined;
|
|
334
334
|
currency: string;
|
|
335
335
|
productId: string;
|
|
336
336
|
unit_amount: number;
|
|
@@ -339,15 +339,15 @@ export declare const PayImplementation: {
|
|
|
339
339
|
interval_count?: number | undefined;
|
|
340
340
|
interval: "day" | "week" | "month" | "year";
|
|
341
341
|
} | undefined;
|
|
342
|
-
tax_behavior?: "
|
|
342
|
+
tax_behavior?: "unspecified" | "exclusive" | "inclusive" | undefined;
|
|
343
343
|
currency: string;
|
|
344
344
|
unit_amount: number;
|
|
345
345
|
product_data: {
|
|
346
346
|
description?: string | undefined;
|
|
347
347
|
images?: string[] | undefined;
|
|
348
348
|
tax_code?: string | undefined;
|
|
349
|
-
metadata: Record<string, string | number | null>;
|
|
350
349
|
name: string;
|
|
350
|
+
metadata: Record<string, string | number | null>;
|
|
351
351
|
};
|
|
352
352
|
};
|
|
353
353
|
}, [import('convex/values').VObject<{
|
|
@@ -388,7 +388,7 @@ export declare const PayImplementation: {
|
|
|
388
388
|
interval_count?: number | undefined;
|
|
389
389
|
interval: "day" | "week" | "month" | "year";
|
|
390
390
|
} | undefined;
|
|
391
|
-
tax_behavior?: "
|
|
391
|
+
tax_behavior?: "unspecified" | "exclusive" | "inclusive" | undefined;
|
|
392
392
|
currency: string;
|
|
393
393
|
productId: string;
|
|
394
394
|
unit_amount: number;
|
|
@@ -397,15 +397,15 @@ export declare const PayImplementation: {
|
|
|
397
397
|
interval_count?: number | undefined;
|
|
398
398
|
interval: "day" | "week" | "month" | "year";
|
|
399
399
|
} | undefined;
|
|
400
|
-
tax_behavior?: "
|
|
400
|
+
tax_behavior?: "unspecified" | "exclusive" | "inclusive" | undefined;
|
|
401
401
|
currency: string;
|
|
402
402
|
unit_amount: number;
|
|
403
403
|
product_data: {
|
|
404
404
|
description?: string | undefined;
|
|
405
405
|
images?: string[] | undefined;
|
|
406
406
|
tax_code?: string | undefined;
|
|
407
|
-
metadata: Record<string, string | number | null>;
|
|
408
407
|
name: string;
|
|
408
|
+
metadata: Record<string, string | number | null>;
|
|
409
409
|
};
|
|
410
410
|
};
|
|
411
411
|
}, {
|
|
@@ -423,7 +423,7 @@ export declare const PayImplementation: {
|
|
|
423
423
|
interval_count?: number | undefined;
|
|
424
424
|
interval: "day" | "week" | "month" | "year";
|
|
425
425
|
} | undefined;
|
|
426
|
-
tax_behavior?: "
|
|
426
|
+
tax_behavior?: "unspecified" | "exclusive" | "inclusive" | undefined;
|
|
427
427
|
currency: string;
|
|
428
428
|
productId: string;
|
|
429
429
|
unit_amount: number;
|
|
@@ -432,22 +432,22 @@ export declare const PayImplementation: {
|
|
|
432
432
|
interval_count?: number | undefined;
|
|
433
433
|
interval: "day" | "week" | "month" | "year";
|
|
434
434
|
} | undefined;
|
|
435
|
-
tax_behavior?: "
|
|
435
|
+
tax_behavior?: "unspecified" | "exclusive" | "inclusive" | undefined;
|
|
436
436
|
currency: string;
|
|
437
437
|
unit_amount: number;
|
|
438
438
|
product_data: {
|
|
439
439
|
description?: string | undefined;
|
|
440
440
|
images?: string[] | undefined;
|
|
441
441
|
tax_code?: string | undefined;
|
|
442
|
-
metadata: Record<string, string | number | null>;
|
|
443
442
|
name: string;
|
|
443
|
+
metadata: Record<string, string | number | null>;
|
|
444
444
|
};
|
|
445
445
|
}, [import('convex/values').VObject<{
|
|
446
446
|
recurring?: {
|
|
447
447
|
interval_count?: number | undefined;
|
|
448
448
|
interval: "day" | "week" | "month" | "year";
|
|
449
449
|
} | undefined;
|
|
450
|
-
tax_behavior?: "
|
|
450
|
+
tax_behavior?: "unspecified" | "exclusive" | "inclusive" | undefined;
|
|
451
451
|
currency: string;
|
|
452
452
|
productId: string;
|
|
453
453
|
unit_amount: number;
|
|
@@ -461,22 +461,22 @@ export declare const PayImplementation: {
|
|
|
461
461
|
interval: import('convex/values').VUnion<"day" | "week" | "month" | "year", [import('convex/values').VLiteral<"day", "required">, import('convex/values').VLiteral<"week", "required">, import('convex/values').VLiteral<"month", "required">, import('convex/values').VLiteral<"year", "required">], "required", never>;
|
|
462
462
|
interval_count: import('convex/values').VFloat64<number | undefined, "optional">;
|
|
463
463
|
}, "optional", "interval" | "interval_count">;
|
|
464
|
-
tax_behavior: import('convex/values').VUnion<"
|
|
464
|
+
tax_behavior: import('convex/values').VUnion<"unspecified" | "exclusive" | "inclusive" | undefined, [import('convex/values').VLiteral<"exclusive", "required">, import('convex/values').VLiteral<"inclusive", "required">, import('convex/values').VLiteral<"unspecified", "required">], "optional", never>;
|
|
465
465
|
unit_amount: import('convex/values').VFloat64<number, "required">;
|
|
466
466
|
}, "required", "currency" | "recurring" | "productId" | "unit_amount" | "recurring.interval" | "recurring.interval_count" | "tax_behavior">, import('convex/values').VObject<{
|
|
467
467
|
recurring?: {
|
|
468
468
|
interval_count?: number | undefined;
|
|
469
469
|
interval: "day" | "week" | "month" | "year";
|
|
470
470
|
} | undefined;
|
|
471
|
-
tax_behavior?: "
|
|
471
|
+
tax_behavior?: "unspecified" | "exclusive" | "inclusive" | undefined;
|
|
472
472
|
currency: string;
|
|
473
473
|
unit_amount: number;
|
|
474
474
|
product_data: {
|
|
475
475
|
description?: string | undefined;
|
|
476
476
|
images?: string[] | undefined;
|
|
477
477
|
tax_code?: string | undefined;
|
|
478
|
-
metadata: Record<string, string | number | null>;
|
|
479
478
|
name: string;
|
|
479
|
+
metadata: Record<string, string | number | null>;
|
|
480
480
|
};
|
|
481
481
|
}, {
|
|
482
482
|
currency: import('convex/values').VString<string, "required">;
|
|
@@ -484,15 +484,15 @@ export declare const PayImplementation: {
|
|
|
484
484
|
description?: string | undefined;
|
|
485
485
|
images?: string[] | undefined;
|
|
486
486
|
tax_code?: string | undefined;
|
|
487
|
-
metadata: Record<string, string | number | null>;
|
|
488
487
|
name: string;
|
|
488
|
+
metadata: Record<string, string | number | null>;
|
|
489
489
|
}, {
|
|
490
490
|
description: import('convex/values').VString<string | undefined, "optional">;
|
|
491
491
|
images: import('convex/values').VArray<string[] | undefined, import('convex/values').VString<string, "required">, "optional">;
|
|
492
492
|
metadata: 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>;
|
|
493
493
|
name: import('convex/values').VString<string, "required">;
|
|
494
494
|
tax_code: import('convex/values').VString<string | undefined, "optional">;
|
|
495
|
-
}, "required", "metadata" | `metadata.${string}` | "
|
|
495
|
+
}, "required", "name" | "description" | "metadata" | `metadata.${string}` | "images" | "tax_code">;
|
|
496
496
|
recurring: import('convex/values').VObject<{
|
|
497
497
|
interval_count?: number | undefined;
|
|
498
498
|
interval: "day" | "week" | "month" | "year";
|
|
@@ -500,13 +500,13 @@ export declare const PayImplementation: {
|
|
|
500
500
|
interval: import('convex/values').VUnion<"day" | "week" | "month" | "year", [import('convex/values').VLiteral<"day", "required">, import('convex/values').VLiteral<"week", "required">, import('convex/values').VLiteral<"month", "required">, import('convex/values').VLiteral<"year", "required">], "required", never>;
|
|
501
501
|
interval_count: import('convex/values').VFloat64<number | undefined, "optional">;
|
|
502
502
|
}, "optional", "interval" | "interval_count">;
|
|
503
|
-
tax_behavior: import('convex/values').VUnion<"
|
|
503
|
+
tax_behavior: import('convex/values').VUnion<"unspecified" | "exclusive" | "inclusive" | undefined, [import('convex/values').VLiteral<"exclusive", "required">, import('convex/values').VLiteral<"inclusive", "required">, import('convex/values').VLiteral<"unspecified", "required">], "optional", never>;
|
|
504
504
|
unit_amount: import('convex/values').VFloat64<number, "required">;
|
|
505
|
-
}, "required", "currency" | "recurring" | "unit_amount" | "recurring.interval" | "recurring.interval_count" | "tax_behavior" | "product_data" | "product_data.
|
|
505
|
+
}, "required", "currency" | "recurring" | "unit_amount" | "recurring.interval" | "recurring.interval_count" | "tax_behavior" | "product_data" | "product_data.name" | "product_data.description" | "product_data.metadata" | `product_data.metadata.${string}` | "product_data.images" | "product_data.tax_code">], "required", "currency" | "recurring" | "productId" | "unit_amount" | "recurring.interval" | "recurring.interval_count" | "tax_behavior" | "product_data" | "product_data.name" | "product_data.description" | "product_data.metadata" | `product_data.metadata.${string}` | "product_data.images" | "product_data.tax_code">;
|
|
506
506
|
quantity: import('convex/values').VFloat64<number | undefined, "optional">;
|
|
507
507
|
tax_rates: import('convex/values').VArray<string[] | undefined, import('convex/values').VString<string, "required">, "optional">;
|
|
508
508
|
dynamic_tax_rates: import('convex/values').VArray<string[] | undefined, import('convex/values').VString<string, "required">, "optional">;
|
|
509
|
-
}, "required", "adjustable_quantity" | "quantity" | "tax_rates" | "dynamic_tax_rates" | "adjustable_quantity.enabled" | "adjustable_quantity.maximum" | "adjustable_quantity.minimum" | "price_data" | "price_data.currency" | "price_data.recurring" | "price_data.productId" | "price_data.unit_amount" | "price_data.recurring.interval" | "price_data.recurring.interval_count" | "price_data.tax_behavior" | "price_data.product_data" | "price_data.product_data.
|
|
509
|
+
}, "required", "adjustable_quantity" | "quantity" | "tax_rates" | "dynamic_tax_rates" | "adjustable_quantity.enabled" | "adjustable_quantity.maximum" | "adjustable_quantity.minimum" | "price_data" | "price_data.currency" | "price_data.recurring" | "price_data.productId" | "price_data.unit_amount" | "price_data.recurring.interval" | "price_data.recurring.interval_count" | "price_data.tax_behavior" | "price_data.product_data" | "price_data.product_data.name" | "price_data.product_data.description" | "price_data.product_data.metadata" | `price_data.product_data.metadata.${string}` | "price_data.product_data.images" | "price_data.product_data.tax_code">], "required", "price" | "adjustable_quantity" | "quantity" | "tax_rates" | "dynamic_tax_rates" | "adjustable_quantity.enabled" | "adjustable_quantity.maximum" | "adjustable_quantity.minimum" | "price_data" | "price_data.currency" | "price_data.recurring" | "price_data.productId" | "price_data.unit_amount" | "price_data.recurring.interval" | "price_data.recurring.interval_count" | "price_data.tax_behavior" | "price_data.product_data" | "price_data.product_data.name" | "price_data.product_data.description" | "price_data.product_data.metadata" | `price_data.product_data.metadata.${string}` | "price_data.product_data.images" | "price_data.product_data.tax_code">, "required">;
|
|
510
510
|
success: import('convex/values').VObject<{
|
|
511
511
|
url: string;
|
|
512
512
|
}, {
|
|
@@ -517,7 +517,7 @@ export declare const PayImplementation: {
|
|
|
517
517
|
}, {
|
|
518
518
|
url: import('convex/values').VString<string, "required">;
|
|
519
519
|
}, "required", "url">;
|
|
520
|
-
}, "required", "
|
|
520
|
+
}, "required", "metadata" | `metadata.${string}` | "line_items" | "cancel" | "entityId" | "referenceId" | "createStripeCustomerIfMissing" | "success" | "cancel.url" | "success.url">;
|
|
521
521
|
name: string;
|
|
522
522
|
handler: (context: import('convex/server').GenericActionCtx<import('../schema').StripeDataModel>, args: {
|
|
523
523
|
metadata?: Record<string, string | number | null> | null | undefined;
|
|
@@ -546,7 +546,7 @@ export declare const PayImplementation: {
|
|
|
546
546
|
interval_count?: number | undefined;
|
|
547
547
|
interval: "day" | "week" | "month" | "year";
|
|
548
548
|
} | undefined;
|
|
549
|
-
tax_behavior?: "
|
|
549
|
+
tax_behavior?: "unspecified" | "exclusive" | "inclusive" | undefined;
|
|
550
550
|
currency: string;
|
|
551
551
|
productId: string;
|
|
552
552
|
unit_amount: number;
|
|
@@ -555,25 +555,25 @@ export declare const PayImplementation: {
|
|
|
555
555
|
interval_count?: number | undefined;
|
|
556
556
|
interval: "day" | "week" | "month" | "year";
|
|
557
557
|
} | undefined;
|
|
558
|
-
tax_behavior?: "
|
|
558
|
+
tax_behavior?: "unspecified" | "exclusive" | "inclusive" | undefined;
|
|
559
559
|
currency: string;
|
|
560
560
|
unit_amount: number;
|
|
561
561
|
product_data: {
|
|
562
562
|
description?: string | undefined;
|
|
563
563
|
images?: string[] | undefined;
|
|
564
564
|
tax_code?: string | undefined;
|
|
565
|
-
metadata: Record<string, string | number | null>;
|
|
566
565
|
name: string;
|
|
566
|
+
metadata: Record<string, string | number | null>;
|
|
567
567
|
};
|
|
568
568
|
};
|
|
569
569
|
})[];
|
|
570
|
+
cancel: {
|
|
571
|
+
url: string;
|
|
572
|
+
};
|
|
570
573
|
entityId: string;
|
|
571
574
|
referenceId: string;
|
|
572
575
|
success: {
|
|
573
576
|
url: string;
|
|
574
577
|
};
|
|
575
|
-
cancel: {
|
|
576
|
-
url: string;
|
|
577
|
-
};
|
|
578
578
|
}, configuration: import('../types').InternalConfiguration) => Promise<Stripe.Response<Stripe.Checkout.Session>>;
|
|
579
579
|
};
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
export declare const SetupImplementation: {
|
|
2
2
|
args: import('convex/values').VObject<{
|
|
3
|
-
metadata?: Record<string, any> | undefined;
|
|
4
3
|
email?: string | undefined;
|
|
4
|
+
metadata?: Record<string, any> | undefined;
|
|
5
5
|
entityId: string;
|
|
6
6
|
}, {
|
|
7
7
|
entityId: import('convex/values').VString<string, "required">;
|
|
8
8
|
email: import('convex/values').VString<string | undefined, "optional">;
|
|
9
9
|
metadata: import('convex/values').VRecord<Record<string, any> | undefined, import('convex/values').VString<string, "required">, import('convex/values').VAny<any, "required", string>, "optional", string>;
|
|
10
|
-
}, "required", "metadata" | `metadata.${string}` | "
|
|
10
|
+
}, "required", "email" | "metadata" | `metadata.${string}` | "entityId">;
|
|
11
11
|
name: string;
|
|
12
12
|
handler: (context: import('convex/server').GenericActionCtx<import('../schema').StripeDataModel>, args: {
|
|
13
|
-
metadata?: Record<string, any> | undefined;
|
|
14
13
|
email?: string | undefined;
|
|
14
|
+
metadata?: Record<string, any> | undefined;
|
|
15
15
|
entityId: string;
|
|
16
16
|
}, configuration: import('../types').InternalConfiguration) => Promise<{
|
|
17
17
|
customerId: string;
|
|
@@ -2,14 +2,14 @@ export declare const SubscribeImplementation: {
|
|
|
2
2
|
args: import('convex/values').VObject<{
|
|
3
3
|
metadata?: Record<string, string | number | null> | null | undefined;
|
|
4
4
|
createStripeCustomerIfMissing?: boolean | undefined;
|
|
5
|
+
cancel: {
|
|
6
|
+
url: string;
|
|
7
|
+
};
|
|
5
8
|
priceId: string;
|
|
6
9
|
entityId: string;
|
|
7
10
|
success: {
|
|
8
11
|
url: string;
|
|
9
12
|
};
|
|
10
|
-
cancel: {
|
|
11
|
-
url: string;
|
|
12
|
-
};
|
|
13
13
|
}, {
|
|
14
14
|
createStripeCustomerIfMissing: import('convex/values').VBoolean<boolean | undefined, "optional">;
|
|
15
15
|
entityId: import('convex/values').VString<string, "required">;
|
|
@@ -25,19 +25,19 @@ export declare const SubscribeImplementation: {
|
|
|
25
25
|
}, {
|
|
26
26
|
url: import('convex/values').VString<string, "required">;
|
|
27
27
|
}, "required", "url">;
|
|
28
|
-
}, "required", "metadata" | `metadata.${string}` | "priceId" | "entityId" | "createStripeCustomerIfMissing" | "success" | "cancel
|
|
28
|
+
}, "required", "metadata" | `metadata.${string}` | "cancel" | "priceId" | "entityId" | "createStripeCustomerIfMissing" | "success" | "cancel.url" | "success.url">;
|
|
29
29
|
name: string;
|
|
30
30
|
handler: (context: import('convex/server').GenericActionCtx<import('../schema').StripeDataModel>, args: {
|
|
31
31
|
metadata?: Record<string, string | number | null> | null | undefined;
|
|
32
32
|
createStripeCustomerIfMissing?: boolean | undefined;
|
|
33
|
+
cancel: {
|
|
34
|
+
url: string;
|
|
35
|
+
};
|
|
33
36
|
priceId: string;
|
|
34
37
|
entityId: string;
|
|
35
38
|
success: {
|
|
36
39
|
url: string;
|
|
37
40
|
};
|
|
38
|
-
cancel: {
|
|
39
|
-
url: string;
|
|
40
|
-
};
|
|
41
41
|
}, configuration: import('../types').InternalConfiguration) => Promise<{
|
|
42
42
|
url: string | null;
|
|
43
43
|
}>;
|