@raideno/convex-stripe 0.1.0 → 0.1.2

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.
Files changed (68) hide show
  1. package/dist/index.d.ts +0 -2
  2. package/dist/index.js +1 -0
  3. package/dist/server/actions/index.d.ts +4 -0
  4. package/dist/server/actions/pay.d.ts +579 -0
  5. package/dist/server/actions/portal.d.ts +26 -0
  6. package/dist/server/actions/setup.d.ts +19 -0
  7. package/dist/server/actions/subscribe.d.ts +44 -0
  8. package/dist/server/helpers.d.ts +28 -0
  9. package/dist/server/index.d.ts +589 -0
  10. package/dist/server/logger.d.ts +8 -0
  11. package/dist/server/redirects/index.d.ts +47 -0
  12. package/dist/server/redirects/pay.d.ts +5 -0
  13. package/dist/server/redirects/portal.d.ts +3 -0
  14. package/dist/server/redirects/subscribe.d.ts +3 -0
  15. package/dist/server/redirects/types.d.ts +9 -0
  16. package/dist/server/schema/checkout-session.d.ts +256 -0
  17. package/dist/server/schema/coupon.d.ts +112 -0
  18. package/dist/server/schema/customer.d.ts +366 -0
  19. package/dist/server/schema/index.d.ts +3511 -0
  20. package/dist/server/schema/invoice.d.ts +314 -0
  21. package/dist/server/schema/payment-intent.d.ts +311 -0
  22. package/dist/server/schema/payout.d.ts +140 -0
  23. package/dist/server/schema/price.d.ts +148 -0
  24. package/dist/server/schema/product.d.ts +132 -0
  25. package/dist/server/schema/promotion-code.d.ts +266 -0
  26. package/dist/server/schema/refund.d.ts +92 -0
  27. package/dist/server/schema/review.d.ts +152 -0
  28. package/dist/server/schema/subscription.d.ts +4 -0
  29. package/dist/server/store/index.d.ts +582 -0
  30. package/dist/server/store/operations/delete-by-id.d.ts +3 -0
  31. package/dist/server/store/operations/index.d.ts +5 -0
  32. package/dist/server/store/operations/select-all.d.ts +3 -0
  33. package/dist/server/store/operations/select-by-id.d.ts +4 -0
  34. package/dist/server/store/operations/select-one.d.ts +3 -0
  35. package/dist/server/store/operations/upsert.d.ts +4 -0
  36. package/dist/server/store/types.d.ts +70 -0
  37. package/dist/server/sync/all.d.ts +5 -0
  38. package/dist/server/sync/checkouts-session.handler.d.ts +5 -0
  39. package/dist/server/sync/coupons.handler.d.ts +5 -0
  40. package/dist/server/sync/customers.handler.d.ts +5 -0
  41. package/dist/server/sync/invoices.handler.d.ts +5 -0
  42. package/dist/server/sync/payment-intent.handler.d.ts +5 -0
  43. package/dist/server/sync/payouts.handler.d.ts +5 -0
  44. package/dist/server/sync/prices.handler.d.ts +5 -0
  45. package/dist/server/sync/products.handler.d.ts +5 -0
  46. package/dist/server/sync/promotion-codes.handler.d.ts +5 -0
  47. package/dist/server/sync/refunds.handler.d.ts +5 -0
  48. package/dist/server/sync/reviews.handler.d.ts +5 -0
  49. package/dist/server/sync/subscription.d.ts +12 -0
  50. package/dist/server/sync/subscriptions.handler.d.ts +5 -0
  51. package/dist/server/types.d.ts +29 -0
  52. package/dist/server/webhooks/checkouts-session.handler.d.ts +2 -0
  53. package/dist/server/webhooks/coupons.handler.d.ts +2 -0
  54. package/dist/server/webhooks/customers.handler.d.ts +2 -0
  55. package/dist/server/webhooks/index.d.ts +2 -0
  56. package/dist/server/webhooks/invoices.handler.d.ts +2 -0
  57. package/dist/server/webhooks/payment-intents.handler.d.ts +2 -0
  58. package/dist/server/webhooks/payouts.handler.d.ts +2 -0
  59. package/dist/server/webhooks/prices.handler.d.ts +2 -0
  60. package/dist/server/webhooks/products.handler.d.ts +2 -0
  61. package/dist/server/webhooks/promotion-codes.handler.d.ts +2 -0
  62. package/dist/server/webhooks/refunds.handler.d.ts +2 -0
  63. package/dist/server/webhooks/reviews.handler.d.ts +2 -0
  64. package/dist/server/webhooks/subscription.handler.d.ts +2 -0
  65. package/dist/server/webhooks/types.d.ts +11 -0
  66. package/dist/server.d.ts +2 -3790
  67. package/dist/server.js +3812 -1239
  68. package/package.json +9 -8
@@ -0,0 +1,366 @@
1
+ import { default as Stripe } from 'stripe';
2
+ export declare const CustomerStripeToConvex: (customer: Stripe.Customer) => {
3
+ currency?: string | null | undefined;
4
+ metadata?: Record<string, string | number | null> | null | undefined;
5
+ name?: string | null | undefined;
6
+ address?: {
7
+ city?: string | null | undefined;
8
+ country?: string | null | undefined;
9
+ line1?: string | null | undefined;
10
+ line2?: string | null | undefined;
11
+ postal_code?: string | null | undefined;
12
+ state?: string | null | undefined;
13
+ } | null | undefined;
14
+ phone?: string | null | undefined;
15
+ description?: string | null | undefined;
16
+ email?: string | null | undefined;
17
+ shipping?: {
18
+ name?: string | undefined;
19
+ address?: {
20
+ city?: string | null | undefined;
21
+ country?: string | null | undefined;
22
+ line1?: string | null | undefined;
23
+ line2?: string | null | undefined;
24
+ postal_code?: string | null | undefined;
25
+ state?: string | null | undefined;
26
+ } | undefined;
27
+ phone?: string | null | undefined;
28
+ carrier?: string | null | undefined;
29
+ tracking_number?: string | null | undefined;
30
+ } | null | undefined;
31
+ tax?: {
32
+ ip_address?: string | null | undefined;
33
+ automatic_tax: "failed" | "not_collecting" | "supported" | "unrecognized_location";
34
+ location: {
35
+ state?: string | null | undefined;
36
+ country: string;
37
+ source: string;
38
+ } | null;
39
+ } | undefined;
40
+ cash_balance?: any;
41
+ default_source?: string | null | undefined;
42
+ delinquent?: boolean | null | undefined;
43
+ discount?: any;
44
+ invoice_credit_balance?: any;
45
+ invoice_prefix?: string | null | undefined;
46
+ invoice_settings?: any;
47
+ next_invoice_sequence?: number | null | undefined;
48
+ preferred_locales?: string[] | null | undefined;
49
+ sources?: any;
50
+ subscriptions?: any;
51
+ tax_exempt?: "reverse" | "exempt" | "none" | null | undefined;
52
+ tax_ids?: any;
53
+ test_clock?: string | null | undefined;
54
+ object: string;
55
+ id: string;
56
+ created: number;
57
+ livemode: boolean;
58
+ balance: number;
59
+ };
60
+ export declare const AddressSchema: {
61
+ city: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
62
+ country: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
63
+ line1: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
64
+ line2: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
65
+ postal_code: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
66
+ state: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
67
+ };
68
+ export declare const CustomerSchema: {
69
+ id: import('convex/values').VString<string, "required">;
70
+ address: import('convex/values').VUnion<{
71
+ city?: string | null | undefined;
72
+ country?: string | null | undefined;
73
+ line1?: string | null | undefined;
74
+ line2?: string | null | undefined;
75
+ postal_code?: string | null | undefined;
76
+ state?: string | null | undefined;
77
+ } | null | undefined, [import('convex/values').VObject<{
78
+ city?: string | null | undefined;
79
+ country?: string | null | undefined;
80
+ line1?: string | null | undefined;
81
+ line2?: string | null | undefined;
82
+ postal_code?: string | null | undefined;
83
+ state?: string | null | undefined;
84
+ }, {
85
+ city: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
86
+ country: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
87
+ line1: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
88
+ line2: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
89
+ postal_code: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
90
+ state: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
91
+ }, "required", "city" | "country" | "line1" | "line2" | "postal_code" | "state">, import('convex/values').VNull<null, "required">], "optional", "city" | "country" | "line1" | "line2" | "postal_code" | "state">;
92
+ description: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
93
+ email: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
94
+ 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>;
95
+ name: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
96
+ phone: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
97
+ shipping: import('convex/values').VUnion<{
98
+ name?: string | undefined;
99
+ address?: {
100
+ city?: string | null | undefined;
101
+ country?: string | null | undefined;
102
+ line1?: string | null | undefined;
103
+ line2?: string | null | undefined;
104
+ postal_code?: string | null | undefined;
105
+ state?: string | null | undefined;
106
+ } | undefined;
107
+ phone?: string | null | undefined;
108
+ carrier?: string | null | undefined;
109
+ tracking_number?: string | null | undefined;
110
+ } | null | undefined, [import('convex/values').VObject<{
111
+ name?: string | undefined;
112
+ address?: {
113
+ city?: string | null | undefined;
114
+ country?: string | null | undefined;
115
+ line1?: string | null | undefined;
116
+ line2?: string | null | undefined;
117
+ postal_code?: string | null | undefined;
118
+ state?: string | null | undefined;
119
+ } | undefined;
120
+ phone?: string | null | undefined;
121
+ carrier?: string | null | undefined;
122
+ tracking_number?: string | null | undefined;
123
+ }, {
124
+ address: import('convex/values').VObject<{
125
+ city?: string | null | undefined;
126
+ country?: string | null | undefined;
127
+ line1?: string | null | undefined;
128
+ line2?: string | null | undefined;
129
+ postal_code?: string | null | undefined;
130
+ state?: string | null | undefined;
131
+ } | undefined, {
132
+ city: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
133
+ country: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
134
+ line1: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
135
+ line2: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
136
+ postal_code: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
137
+ state: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
138
+ }, "optional", "city" | "country" | "line1" | "line2" | "postal_code" | "state">;
139
+ name: import('convex/values').VString<string | undefined, "optional">;
140
+ phone: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
141
+ carrier: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
142
+ tracking_number: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
143
+ }, "required", "name" | "address" | "phone" | "carrier" | "tracking_number" | "address.city" | "address.country" | "address.line1" | "address.line2" | "address.postal_code" | "address.state">, import('convex/values').VNull<null, "required">], "optional", "name" | "address" | "phone" | "carrier" | "tracking_number" | "address.city" | "address.country" | "address.line1" | "address.line2" | "address.postal_code" | "address.state">;
144
+ tax: import('convex/values').VObject<{
145
+ ip_address?: string | null | undefined;
146
+ automatic_tax: "failed" | "not_collecting" | "supported" | "unrecognized_location";
147
+ location: {
148
+ state?: string | null | undefined;
149
+ country: string;
150
+ source: string;
151
+ } | null;
152
+ } | undefined, {
153
+ automatic_tax: import('convex/values').VUnion<"failed" | "not_collecting" | "supported" | "unrecognized_location", [import('convex/values').VLiteral<"failed", "required">, import('convex/values').VLiteral<"not_collecting", "required">, import('convex/values').VLiteral<"supported", "required">, import('convex/values').VLiteral<"unrecognized_location", "required">], "required", never>;
154
+ ip_address: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
155
+ location: import('convex/values').VUnion<{
156
+ state?: string | null | undefined;
157
+ country: string;
158
+ source: string;
159
+ } | null, [import('convex/values').VObject<{
160
+ state?: string | null | undefined;
161
+ country: string;
162
+ source: string;
163
+ }, {
164
+ country: import('convex/values').VString<string, "required">;
165
+ source: import('convex/values').VString<string, "required">;
166
+ state: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
167
+ }, "required", "country" | "state" | "source">, import('convex/values').VNull<null, "required">], "required", "country" | "state" | "source">;
168
+ }, "optional", "automatic_tax" | "ip_address" | "location" | "location.country" | "location.state" | "location.source">;
169
+ object: import('convex/values').VString<string, "required">;
170
+ balance: import('convex/values').VFloat64<number, "required">;
171
+ cash_balance: import('convex/values').VUnion<any, [import('convex/values').VAny<any, "required", string>, import('convex/values').VNull<null, "required">], "optional", string>;
172
+ created: import('convex/values').VFloat64<number, "required">;
173
+ currency: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
174
+ default_source: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
175
+ delinquent: import('convex/values').VUnion<boolean | null | undefined, [import('convex/values').VBoolean<boolean, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
176
+ discount: import('convex/values').VUnion<any, [import('convex/values').VAny<any, "required", string>, import('convex/values').VNull<null, "required">], "optional", string>;
177
+ invoice_credit_balance: import('convex/values').VAny<any, "optional", string>;
178
+ invoice_prefix: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
179
+ invoice_settings: import('convex/values').VAny<any, "optional", string>;
180
+ livemode: import('convex/values').VBoolean<boolean, "required">;
181
+ next_invoice_sequence: import('convex/values').VUnion<number | null | undefined, [import('convex/values').VFloat64<number, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
182
+ preferred_locales: import('convex/values').VUnion<string[] | null | undefined, [import('convex/values').VArray<string[], import('convex/values').VString<string, "required">, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
183
+ sources: import('convex/values').VUnion<any, [import('convex/values').VAny<any, "required", string>, import('convex/values').VNull<null, "required">], "optional", string>;
184
+ subscriptions: import('convex/values').VUnion<any, [import('convex/values').VAny<any, "required", string>, import('convex/values').VNull<null, "required">], "optional", string>;
185
+ tax_exempt: import('convex/values').VUnion<"reverse" | "exempt" | "none" | null | undefined, [import('convex/values').VLiteral<"exempt", "required">, import('convex/values').VLiteral<"none", "required">, import('convex/values').VLiteral<"reverse", "required">, import('convex/values').VNull<null, "required">], "optional", never>;
186
+ tax_ids: import('convex/values').VUnion<any, [import('convex/values').VAny<any, "required", string>, import('convex/values').VNull<null, "required">], "optional", string>;
187
+ test_clock: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
188
+ };
189
+ export declare const CustomerObject: import('convex/values').VObject<{
190
+ currency?: string | null | undefined;
191
+ metadata?: Record<string, string | number | null> | null | undefined;
192
+ name?: string | null | undefined;
193
+ address?: {
194
+ city?: string | null | undefined;
195
+ country?: string | null | undefined;
196
+ line1?: string | null | undefined;
197
+ line2?: string | null | undefined;
198
+ postal_code?: string | null | undefined;
199
+ state?: string | null | undefined;
200
+ } | null | undefined;
201
+ phone?: string | null | undefined;
202
+ description?: string | null | undefined;
203
+ email?: string | null | undefined;
204
+ shipping?: {
205
+ name?: string | undefined;
206
+ address?: {
207
+ city?: string | null | undefined;
208
+ country?: string | null | undefined;
209
+ line1?: string | null | undefined;
210
+ line2?: string | null | undefined;
211
+ postal_code?: string | null | undefined;
212
+ state?: string | null | undefined;
213
+ } | undefined;
214
+ phone?: string | null | undefined;
215
+ carrier?: string | null | undefined;
216
+ tracking_number?: string | null | undefined;
217
+ } | null | undefined;
218
+ tax?: {
219
+ ip_address?: string | null | undefined;
220
+ automatic_tax: "failed" | "not_collecting" | "supported" | "unrecognized_location";
221
+ location: {
222
+ state?: string | null | undefined;
223
+ country: string;
224
+ source: string;
225
+ } | null;
226
+ } | undefined;
227
+ cash_balance?: any;
228
+ default_source?: string | null | undefined;
229
+ delinquent?: boolean | null | undefined;
230
+ discount?: any;
231
+ invoice_credit_balance?: any;
232
+ invoice_prefix?: string | null | undefined;
233
+ invoice_settings?: any;
234
+ next_invoice_sequence?: number | null | undefined;
235
+ preferred_locales?: string[] | null | undefined;
236
+ sources?: any;
237
+ subscriptions?: any;
238
+ tax_exempt?: "reverse" | "exempt" | "none" | null | undefined;
239
+ tax_ids?: any;
240
+ test_clock?: string | null | undefined;
241
+ object: string;
242
+ id: string;
243
+ created: number;
244
+ livemode: boolean;
245
+ balance: number;
246
+ }, {
247
+ id: import('convex/values').VString<string, "required">;
248
+ address: import('convex/values').VUnion<{
249
+ city?: string | null | undefined;
250
+ country?: string | null | undefined;
251
+ line1?: string | null | undefined;
252
+ line2?: string | null | undefined;
253
+ postal_code?: string | null | undefined;
254
+ state?: string | null | undefined;
255
+ } | null | undefined, [import('convex/values').VObject<{
256
+ city?: string | null | undefined;
257
+ country?: string | null | undefined;
258
+ line1?: string | null | undefined;
259
+ line2?: string | null | undefined;
260
+ postal_code?: string | null | undefined;
261
+ state?: string | null | undefined;
262
+ }, {
263
+ city: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
264
+ country: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
265
+ line1: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
266
+ line2: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
267
+ postal_code: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
268
+ state: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
269
+ }, "required", "city" | "country" | "line1" | "line2" | "postal_code" | "state">, import('convex/values').VNull<null, "required">], "optional", "city" | "country" | "line1" | "line2" | "postal_code" | "state">;
270
+ description: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
271
+ email: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
272
+ 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>;
273
+ name: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
274
+ phone: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
275
+ shipping: import('convex/values').VUnion<{
276
+ name?: string | undefined;
277
+ address?: {
278
+ city?: string | null | undefined;
279
+ country?: string | null | undefined;
280
+ line1?: string | null | undefined;
281
+ line2?: string | null | undefined;
282
+ postal_code?: string | null | undefined;
283
+ state?: string | null | undefined;
284
+ } | undefined;
285
+ phone?: string | null | undefined;
286
+ carrier?: string | null | undefined;
287
+ tracking_number?: string | null | undefined;
288
+ } | null | undefined, [import('convex/values').VObject<{
289
+ name?: string | undefined;
290
+ address?: {
291
+ city?: string | null | undefined;
292
+ country?: string | null | undefined;
293
+ line1?: string | null | undefined;
294
+ line2?: string | null | undefined;
295
+ postal_code?: string | null | undefined;
296
+ state?: string | null | undefined;
297
+ } | undefined;
298
+ phone?: string | null | undefined;
299
+ carrier?: string | null | undefined;
300
+ tracking_number?: string | null | undefined;
301
+ }, {
302
+ address: import('convex/values').VObject<{
303
+ city?: string | null | undefined;
304
+ country?: string | null | undefined;
305
+ line1?: string | null | undefined;
306
+ line2?: string | null | undefined;
307
+ postal_code?: string | null | undefined;
308
+ state?: string | null | undefined;
309
+ } | undefined, {
310
+ city: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
311
+ country: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
312
+ line1: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
313
+ line2: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
314
+ postal_code: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
315
+ state: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
316
+ }, "optional", "city" | "country" | "line1" | "line2" | "postal_code" | "state">;
317
+ name: import('convex/values').VString<string | undefined, "optional">;
318
+ phone: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
319
+ carrier: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
320
+ tracking_number: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
321
+ }, "required", "name" | "address" | "phone" | "carrier" | "tracking_number" | "address.city" | "address.country" | "address.line1" | "address.line2" | "address.postal_code" | "address.state">, import('convex/values').VNull<null, "required">], "optional", "name" | "address" | "phone" | "carrier" | "tracking_number" | "address.city" | "address.country" | "address.line1" | "address.line2" | "address.postal_code" | "address.state">;
322
+ tax: import('convex/values').VObject<{
323
+ ip_address?: string | null | undefined;
324
+ automatic_tax: "failed" | "not_collecting" | "supported" | "unrecognized_location";
325
+ location: {
326
+ state?: string | null | undefined;
327
+ country: string;
328
+ source: string;
329
+ } | null;
330
+ } | undefined, {
331
+ automatic_tax: import('convex/values').VUnion<"failed" | "not_collecting" | "supported" | "unrecognized_location", [import('convex/values').VLiteral<"failed", "required">, import('convex/values').VLiteral<"not_collecting", "required">, import('convex/values').VLiteral<"supported", "required">, import('convex/values').VLiteral<"unrecognized_location", "required">], "required", never>;
332
+ ip_address: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
333
+ location: import('convex/values').VUnion<{
334
+ state?: string | null | undefined;
335
+ country: string;
336
+ source: string;
337
+ } | null, [import('convex/values').VObject<{
338
+ state?: string | null | undefined;
339
+ country: string;
340
+ source: string;
341
+ }, {
342
+ country: import('convex/values').VString<string, "required">;
343
+ source: import('convex/values').VString<string, "required">;
344
+ state: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
345
+ }, "required", "country" | "state" | "source">, import('convex/values').VNull<null, "required">], "required", "country" | "state" | "source">;
346
+ }, "optional", "automatic_tax" | "ip_address" | "location" | "location.country" | "location.state" | "location.source">;
347
+ object: import('convex/values').VString<string, "required">;
348
+ balance: import('convex/values').VFloat64<number, "required">;
349
+ cash_balance: import('convex/values').VUnion<any, [import('convex/values').VAny<any, "required", string>, import('convex/values').VNull<null, "required">], "optional", string>;
350
+ created: import('convex/values').VFloat64<number, "required">;
351
+ currency: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
352
+ default_source: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
353
+ delinquent: import('convex/values').VUnion<boolean | null | undefined, [import('convex/values').VBoolean<boolean, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
354
+ discount: import('convex/values').VUnion<any, [import('convex/values').VAny<any, "required", string>, import('convex/values').VNull<null, "required">], "optional", string>;
355
+ invoice_credit_balance: import('convex/values').VAny<any, "optional", string>;
356
+ invoice_prefix: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
357
+ invoice_settings: import('convex/values').VAny<any, "optional", string>;
358
+ livemode: import('convex/values').VBoolean<boolean, "required">;
359
+ next_invoice_sequence: import('convex/values').VUnion<number | null | undefined, [import('convex/values').VFloat64<number, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
360
+ preferred_locales: import('convex/values').VUnion<string[] | null | undefined, [import('convex/values').VArray<string[], import('convex/values').VString<string, "required">, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
361
+ sources: import('convex/values').VUnion<any, [import('convex/values').VAny<any, "required", string>, import('convex/values').VNull<null, "required">], "optional", string>;
362
+ subscriptions: import('convex/values').VUnion<any, [import('convex/values').VAny<any, "required", string>, import('convex/values').VNull<null, "required">], "optional", string>;
363
+ tax_exempt: import('convex/values').VUnion<"reverse" | "exempt" | "none" | null | undefined, [import('convex/values').VLiteral<"exempt", "required">, import('convex/values').VLiteral<"none", "required">, import('convex/values').VLiteral<"reverse", "required">, import('convex/values').VNull<null, "required">], "optional", never>;
364
+ tax_ids: import('convex/values').VUnion<any, [import('convex/values').VAny<any, "required", string>, import('convex/values').VNull<null, "required">], "optional", string>;
365
+ test_clock: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
366
+ }, "required", "object" | "id" | "currency" | "metadata" | "created" | "livemode" | `metadata.${string}` | "name" | "address" | "phone" | "address.city" | "address.country" | "address.line1" | "address.line2" | "address.postal_code" | "address.state" | "description" | "email" | "shipping" | "tax" | "balance" | "cash_balance" | "default_source" | "delinquent" | "discount" | "invoice_credit_balance" | "invoice_prefix" | "invoice_settings" | "next_invoice_sequence" | "preferred_locales" | "sources" | "subscriptions" | "tax_exempt" | "tax_ids" | "test_clock" | "shipping.name" | "shipping.address" | "shipping.phone" | "shipping.carrier" | "shipping.tracking_number" | "shipping.address.city" | "shipping.address.country" | "shipping.address.line1" | "shipping.address.line2" | "shipping.address.postal_code" | "shipping.address.state" | "tax.automatic_tax" | "tax.ip_address" | "tax.location" | "tax.location.country" | "tax.location.state" | "tax.location.source" | `cash_balance.${string}` | `discount.${string}` | `invoice_credit_balance.${string}` | `invoice_settings.${string}` | `sources.${string}` | `subscriptions.${string}` | `tax_ids.${string}`>;