@raideno/convex-stripe 0.1.1 → 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 +3811 -1236
  68. package/package.json +9 -8
@@ -0,0 +1,314 @@
1
+ import { default as Stripe } from 'stripe';
2
+ export declare const InvoiceStripeToConvex: (invoice: Stripe.Invoice & {
3
+ id: string;
4
+ }) => {
5
+ number?: string | null | undefined;
6
+ automatic_tax?: any;
7
+ customer_email?: string | null | undefined;
8
+ metadata?: Record<string, string | number | null> | null | undefined;
9
+ custom_fields?: any[] | null | undefined;
10
+ shipping_cost?: any;
11
+ description?: string | null | undefined;
12
+ default_source?: string | null | undefined;
13
+ test_clock?: string | null | undefined;
14
+ auto_advance?: boolean | undefined;
15
+ confirmation_secret?: any;
16
+ hosted_invoice_url?: string | null | undefined;
17
+ lines?: any;
18
+ parent?: any;
19
+ account_country?: string | null | undefined;
20
+ account_name?: string | null | undefined;
21
+ account_tax_ids?: string[] | null | undefined;
22
+ application?: string | null | undefined;
23
+ automatically_finalizes_at?: number | null | undefined;
24
+ customer_address?: any;
25
+ customer_name?: string | null | undefined;
26
+ customer_phone?: string | null | undefined;
27
+ customer_shipping?: any;
28
+ customer_tax_ids?: any[] | null | undefined;
29
+ default_payment_method?: string | null | undefined;
30
+ due_date?: number | null | undefined;
31
+ effective_at?: number | null | undefined;
32
+ ending_balance?: number | null | undefined;
33
+ footer?: string | null | undefined;
34
+ from_invoice?: any;
35
+ invoice_pdf?: string | null | undefined;
36
+ issuer?: any;
37
+ last_finalization_error?: any;
38
+ latest_revision?: string | null | undefined;
39
+ next_payment_attempt?: number | null | undefined;
40
+ on_behalf_of?: string | null | undefined;
41
+ payment_settings?: any;
42
+ payments?: any;
43
+ receipt_number?: string | null | undefined;
44
+ rendering?: any;
45
+ shipping_details?: any;
46
+ statement_descriptor?: string | null | undefined;
47
+ status_transitions?: any;
48
+ subtotal_excluding_tax?: number | null | undefined;
49
+ threshold_reason?: any;
50
+ total_discount_amounts?: any[] | null | undefined;
51
+ total_excluding_tax?: number | null | undefined;
52
+ total_pretax_credit_amounts?: any[] | null | undefined;
53
+ total_taxes?: any[] | null | undefined;
54
+ webhooks_delivered_at?: number | null | undefined;
55
+ object: string;
56
+ id: string;
57
+ currency: string;
58
+ customer: string;
59
+ status: "paid" | "open" | "draft" | "uncollectible" | "void";
60
+ created: number;
61
+ discounts: string[];
62
+ livemode: boolean;
63
+ collection_method: "charge_automatically" | "send_invoice";
64
+ period_end: number;
65
+ period_start: number;
66
+ total: number;
67
+ amount_due: number;
68
+ amount_overpaid: number;
69
+ amount_paid: number;
70
+ amount_remaining: number;
71
+ amount_shipping: number;
72
+ attempt_count: number;
73
+ attempted: boolean;
74
+ billing_reason: "subscription" | "automatic_pending_invoice_item_invoice" | "manual" | "quote_accept" | "subscription_create" | "subscription_cycle" | "subscription_threshold" | "subscription_update" | "upcoming" | null;
75
+ customer_tax_exempt: "reverse" | "exempt" | "none" | null;
76
+ default_tax_rates: any[];
77
+ post_payment_credit_notes_amount: number;
78
+ pre_payment_credit_notes_amount: number;
79
+ starting_balance: number;
80
+ subtotal: number;
81
+ };
82
+ export declare const InvoiceSchema: {
83
+ id: import('convex/values').VString<string, "required">;
84
+ auto_advance: import('convex/values').VBoolean<boolean | undefined, "optional">;
85
+ automatic_tax: import('convex/values').VAny<any, "optional", string>;
86
+ collection_method: import('convex/values').VUnion<"charge_automatically" | "send_invoice", [import('convex/values').VLiteral<"charge_automatically", "required">, import('convex/values').VLiteral<"send_invoice", "required">], "required", never>;
87
+ confirmation_secret: import('convex/values').VAny<any, "optional", string>;
88
+ currency: import('convex/values').VString<string, "required">;
89
+ customer: import('convex/values').VString<string, "required">;
90
+ description: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
91
+ hosted_invoice_url: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
92
+ lines: import('convex/values').VAny<any, "optional", string>;
93
+ 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>;
94
+ parent: import('convex/values').VAny<any, "optional", string>;
95
+ period_end: import('convex/values').VFloat64<number, "required">;
96
+ period_start: import('convex/values').VFloat64<number, "required">;
97
+ status: import('convex/values').VUnion<"paid" | "open" | "draft" | "uncollectible" | "void", [import('convex/values').VLiteral<"draft", "required">, import('convex/values').VLiteral<"open", "required">, import('convex/values').VLiteral<"paid", "required">, import('convex/values').VLiteral<"uncollectible", "required">, import('convex/values').VLiteral<"void", "required">], "required", never>;
98
+ total: import('convex/values').VFloat64<number, "required">;
99
+ object: import('convex/values').VString<string, "required">;
100
+ account_country: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
101
+ account_name: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
102
+ account_tax_ids: 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>;
103
+ amount_due: import('convex/values').VFloat64<number, "required">;
104
+ amount_overpaid: import('convex/values').VFloat64<number, "required">;
105
+ amount_paid: import('convex/values').VFloat64<number, "required">;
106
+ amount_remaining: import('convex/values').VFloat64<number, "required">;
107
+ amount_shipping: import('convex/values').VFloat64<number, "required">;
108
+ application: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
109
+ attempt_count: import('convex/values').VFloat64<number, "required">;
110
+ attempted: import('convex/values').VBoolean<boolean, "required">;
111
+ automatically_finalizes_at: import('convex/values').VUnion<number | null | undefined, [import('convex/values').VFloat64<number, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
112
+ billing_reason: import('convex/values').VUnion<"subscription" | "automatic_pending_invoice_item_invoice" | "manual" | "quote_accept" | "subscription_create" | "subscription_cycle" | "subscription_threshold" | "subscription_update" | "upcoming" | null, [import('convex/values').VLiteral<"automatic_pending_invoice_item_invoice", "required">, import('convex/values').VLiteral<"manual", "required">, import('convex/values').VLiteral<"quote_accept", "required">, import('convex/values').VLiteral<"subscription", "required">, import('convex/values').VLiteral<"subscription_create", "required">, import('convex/values').VLiteral<"subscription_cycle", "required">, import('convex/values').VLiteral<"subscription_threshold", "required">, import('convex/values').VLiteral<"subscription_update", "required">, import('convex/values').VLiteral<"upcoming", "required">, import('convex/values').VNull<null, "required">], "required", never>;
113
+ created: import('convex/values').VFloat64<number, "required">;
114
+ custom_fields: import('convex/values').VUnion<any[] | null | undefined, [import('convex/values').VArray<any[], import('convex/values').VAny<any, "required", string>, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
115
+ customer_address: import('convex/values').VAny<any, "optional", string>;
116
+ customer_email: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
117
+ customer_name: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
118
+ customer_phone: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
119
+ customer_shipping: import('convex/values').VAny<any, "optional", string>;
120
+ customer_tax_exempt: import('convex/values').VUnion<"reverse" | "exempt" | "none" | null, [import('convex/values').VLiteral<"exempt", "required">, import('convex/values').VLiteral<"none", "required">, import('convex/values').VLiteral<"reverse", "required">, import('convex/values').VNull<null, "required">], "required", never>;
121
+ customer_tax_ids: import('convex/values').VUnion<any[] | null | undefined, [import('convex/values').VArray<any[], import('convex/values').VAny<any, "required", string>, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
122
+ default_payment_method: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
123
+ default_source: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
124
+ default_tax_rates: import('convex/values').VArray<any[], import('convex/values').VAny<any, "required", string>, "required">;
125
+ discounts: import('convex/values').VArray<string[], import('convex/values').VString<string, "required">, "required">;
126
+ due_date: import('convex/values').VUnion<number | null | undefined, [import('convex/values').VFloat64<number, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
127
+ effective_at: import('convex/values').VUnion<number | null | undefined, [import('convex/values').VFloat64<number, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
128
+ ending_balance: import('convex/values').VUnion<number | null | undefined, [import('convex/values').VFloat64<number, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
129
+ footer: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
130
+ from_invoice: import('convex/values').VAny<any, "optional", string>;
131
+ invoice_pdf: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
132
+ issuer: import('convex/values').VAny<any, "optional", string>;
133
+ last_finalization_error: import('convex/values').VAny<any, "optional", string>;
134
+ latest_revision: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
135
+ livemode: import('convex/values').VBoolean<boolean, "required">;
136
+ next_payment_attempt: import('convex/values').VUnion<number | null | undefined, [import('convex/values').VFloat64<number, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
137
+ number: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
138
+ on_behalf_of: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
139
+ payment_settings: import('convex/values').VAny<any, "optional", string>;
140
+ payments: import('convex/values').VAny<any, "optional", string>;
141
+ post_payment_credit_notes_amount: import('convex/values').VFloat64<number, "required">;
142
+ pre_payment_credit_notes_amount: import('convex/values').VFloat64<number, "required">;
143
+ receipt_number: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
144
+ rendering: import('convex/values').VAny<any, "optional", string>;
145
+ shipping_cost: import('convex/values').VAny<any, "optional", string>;
146
+ shipping_details: import('convex/values').VAny<any, "optional", string>;
147
+ starting_balance: import('convex/values').VFloat64<number, "required">;
148
+ statement_descriptor: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
149
+ status_transitions: import('convex/values').VAny<any, "optional", string>;
150
+ subtotal: import('convex/values').VFloat64<number, "required">;
151
+ subtotal_excluding_tax: import('convex/values').VUnion<number | null | undefined, [import('convex/values').VFloat64<number, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
152
+ test_clock: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
153
+ threshold_reason: import('convex/values').VAny<any, "optional", string>;
154
+ total_discount_amounts: import('convex/values').VUnion<any[] | null | undefined, [import('convex/values').VArray<any[], import('convex/values').VAny<any, "required", string>, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
155
+ total_excluding_tax: import('convex/values').VUnion<number | null | undefined, [import('convex/values').VFloat64<number, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
156
+ total_pretax_credit_amounts: import('convex/values').VUnion<any[] | null | undefined, [import('convex/values').VArray<any[], import('convex/values').VAny<any, "required", string>, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
157
+ total_taxes: import('convex/values').VUnion<any[] | null | undefined, [import('convex/values').VArray<any[], import('convex/values').VAny<any, "required", string>, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
158
+ webhooks_delivered_at: import('convex/values').VUnion<number | null | undefined, [import('convex/values').VFloat64<number, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
159
+ };
160
+ export declare const InvoiceObject: import('convex/values').VObject<{
161
+ number?: string | null | undefined;
162
+ automatic_tax?: any;
163
+ customer_email?: string | null | undefined;
164
+ metadata?: Record<string, string | number | null> | null | undefined;
165
+ custom_fields?: any[] | null | undefined;
166
+ shipping_cost?: any;
167
+ description?: string | null | undefined;
168
+ default_source?: string | null | undefined;
169
+ test_clock?: string | null | undefined;
170
+ auto_advance?: boolean | undefined;
171
+ confirmation_secret?: any;
172
+ hosted_invoice_url?: string | null | undefined;
173
+ lines?: any;
174
+ parent?: any;
175
+ account_country?: string | null | undefined;
176
+ account_name?: string | null | undefined;
177
+ account_tax_ids?: string[] | null | undefined;
178
+ application?: string | null | undefined;
179
+ automatically_finalizes_at?: number | null | undefined;
180
+ customer_address?: any;
181
+ customer_name?: string | null | undefined;
182
+ customer_phone?: string | null | undefined;
183
+ customer_shipping?: any;
184
+ customer_tax_ids?: any[] | null | undefined;
185
+ default_payment_method?: string | null | undefined;
186
+ due_date?: number | null | undefined;
187
+ effective_at?: number | null | undefined;
188
+ ending_balance?: number | null | undefined;
189
+ footer?: string | null | undefined;
190
+ from_invoice?: any;
191
+ invoice_pdf?: string | null | undefined;
192
+ issuer?: any;
193
+ last_finalization_error?: any;
194
+ latest_revision?: string | null | undefined;
195
+ next_payment_attempt?: number | null | undefined;
196
+ on_behalf_of?: string | null | undefined;
197
+ payment_settings?: any;
198
+ payments?: any;
199
+ receipt_number?: string | null | undefined;
200
+ rendering?: any;
201
+ shipping_details?: any;
202
+ statement_descriptor?: string | null | undefined;
203
+ status_transitions?: any;
204
+ subtotal_excluding_tax?: number | null | undefined;
205
+ threshold_reason?: any;
206
+ total_discount_amounts?: any[] | null | undefined;
207
+ total_excluding_tax?: number | null | undefined;
208
+ total_pretax_credit_amounts?: any[] | null | undefined;
209
+ total_taxes?: any[] | null | undefined;
210
+ webhooks_delivered_at?: number | null | undefined;
211
+ object: string;
212
+ id: string;
213
+ currency: string;
214
+ customer: string;
215
+ status: "paid" | "open" | "draft" | "uncollectible" | "void";
216
+ created: number;
217
+ discounts: string[];
218
+ livemode: boolean;
219
+ collection_method: "charge_automatically" | "send_invoice";
220
+ period_end: number;
221
+ period_start: number;
222
+ total: number;
223
+ amount_due: number;
224
+ amount_overpaid: number;
225
+ amount_paid: number;
226
+ amount_remaining: number;
227
+ amount_shipping: number;
228
+ attempt_count: number;
229
+ attempted: boolean;
230
+ billing_reason: "subscription" | "automatic_pending_invoice_item_invoice" | "manual" | "quote_accept" | "subscription_create" | "subscription_cycle" | "subscription_threshold" | "subscription_update" | "upcoming" | null;
231
+ customer_tax_exempt: "reverse" | "exempt" | "none" | null;
232
+ default_tax_rates: any[];
233
+ post_payment_credit_notes_amount: number;
234
+ pre_payment_credit_notes_amount: number;
235
+ starting_balance: number;
236
+ subtotal: number;
237
+ }, {
238
+ id: import('convex/values').VString<string, "required">;
239
+ auto_advance: import('convex/values').VBoolean<boolean | undefined, "optional">;
240
+ automatic_tax: import('convex/values').VAny<any, "optional", string>;
241
+ collection_method: import('convex/values').VUnion<"charge_automatically" | "send_invoice", [import('convex/values').VLiteral<"charge_automatically", "required">, import('convex/values').VLiteral<"send_invoice", "required">], "required", never>;
242
+ confirmation_secret: import('convex/values').VAny<any, "optional", string>;
243
+ currency: import('convex/values').VString<string, "required">;
244
+ customer: import('convex/values').VString<string, "required">;
245
+ description: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
246
+ hosted_invoice_url: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
247
+ lines: import('convex/values').VAny<any, "optional", string>;
248
+ 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>;
249
+ parent: import('convex/values').VAny<any, "optional", string>;
250
+ period_end: import('convex/values').VFloat64<number, "required">;
251
+ period_start: import('convex/values').VFloat64<number, "required">;
252
+ status: import('convex/values').VUnion<"paid" | "open" | "draft" | "uncollectible" | "void", [import('convex/values').VLiteral<"draft", "required">, import('convex/values').VLiteral<"open", "required">, import('convex/values').VLiteral<"paid", "required">, import('convex/values').VLiteral<"uncollectible", "required">, import('convex/values').VLiteral<"void", "required">], "required", never>;
253
+ total: import('convex/values').VFloat64<number, "required">;
254
+ object: import('convex/values').VString<string, "required">;
255
+ account_country: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
256
+ account_name: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
257
+ account_tax_ids: 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>;
258
+ amount_due: import('convex/values').VFloat64<number, "required">;
259
+ amount_overpaid: import('convex/values').VFloat64<number, "required">;
260
+ amount_paid: import('convex/values').VFloat64<number, "required">;
261
+ amount_remaining: import('convex/values').VFloat64<number, "required">;
262
+ amount_shipping: import('convex/values').VFloat64<number, "required">;
263
+ application: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
264
+ attempt_count: import('convex/values').VFloat64<number, "required">;
265
+ attempted: import('convex/values').VBoolean<boolean, "required">;
266
+ automatically_finalizes_at: import('convex/values').VUnion<number | null | undefined, [import('convex/values').VFloat64<number, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
267
+ billing_reason: import('convex/values').VUnion<"subscription" | "automatic_pending_invoice_item_invoice" | "manual" | "quote_accept" | "subscription_create" | "subscription_cycle" | "subscription_threshold" | "subscription_update" | "upcoming" | null, [import('convex/values').VLiteral<"automatic_pending_invoice_item_invoice", "required">, import('convex/values').VLiteral<"manual", "required">, import('convex/values').VLiteral<"quote_accept", "required">, import('convex/values').VLiteral<"subscription", "required">, import('convex/values').VLiteral<"subscription_create", "required">, import('convex/values').VLiteral<"subscription_cycle", "required">, import('convex/values').VLiteral<"subscription_threshold", "required">, import('convex/values').VLiteral<"subscription_update", "required">, import('convex/values').VLiteral<"upcoming", "required">, import('convex/values').VNull<null, "required">], "required", never>;
268
+ created: import('convex/values').VFloat64<number, "required">;
269
+ custom_fields: import('convex/values').VUnion<any[] | null | undefined, [import('convex/values').VArray<any[], import('convex/values').VAny<any, "required", string>, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
270
+ customer_address: import('convex/values').VAny<any, "optional", string>;
271
+ customer_email: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
272
+ customer_name: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
273
+ customer_phone: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
274
+ customer_shipping: import('convex/values').VAny<any, "optional", string>;
275
+ customer_tax_exempt: import('convex/values').VUnion<"reverse" | "exempt" | "none" | null, [import('convex/values').VLiteral<"exempt", "required">, import('convex/values').VLiteral<"none", "required">, import('convex/values').VLiteral<"reverse", "required">, import('convex/values').VNull<null, "required">], "required", never>;
276
+ customer_tax_ids: import('convex/values').VUnion<any[] | null | undefined, [import('convex/values').VArray<any[], import('convex/values').VAny<any, "required", string>, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
277
+ default_payment_method: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
278
+ default_source: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
279
+ default_tax_rates: import('convex/values').VArray<any[], import('convex/values').VAny<any, "required", string>, "required">;
280
+ discounts: import('convex/values').VArray<string[], import('convex/values').VString<string, "required">, "required">;
281
+ due_date: import('convex/values').VUnion<number | null | undefined, [import('convex/values').VFloat64<number, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
282
+ effective_at: import('convex/values').VUnion<number | null | undefined, [import('convex/values').VFloat64<number, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
283
+ ending_balance: import('convex/values').VUnion<number | null | undefined, [import('convex/values').VFloat64<number, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
284
+ footer: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
285
+ from_invoice: import('convex/values').VAny<any, "optional", string>;
286
+ invoice_pdf: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
287
+ issuer: import('convex/values').VAny<any, "optional", string>;
288
+ last_finalization_error: import('convex/values').VAny<any, "optional", string>;
289
+ latest_revision: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
290
+ livemode: import('convex/values').VBoolean<boolean, "required">;
291
+ next_payment_attempt: import('convex/values').VUnion<number | null | undefined, [import('convex/values').VFloat64<number, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
292
+ number: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
293
+ on_behalf_of: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
294
+ payment_settings: import('convex/values').VAny<any, "optional", string>;
295
+ payments: import('convex/values').VAny<any, "optional", string>;
296
+ post_payment_credit_notes_amount: import('convex/values').VFloat64<number, "required">;
297
+ pre_payment_credit_notes_amount: import('convex/values').VFloat64<number, "required">;
298
+ receipt_number: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
299
+ rendering: import('convex/values').VAny<any, "optional", string>;
300
+ shipping_cost: import('convex/values').VAny<any, "optional", string>;
301
+ shipping_details: import('convex/values').VAny<any, "optional", string>;
302
+ starting_balance: import('convex/values').VFloat64<number, "required">;
303
+ statement_descriptor: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
304
+ status_transitions: import('convex/values').VAny<any, "optional", string>;
305
+ subtotal: import('convex/values').VFloat64<number, "required">;
306
+ subtotal_excluding_tax: import('convex/values').VUnion<number | null | undefined, [import('convex/values').VFloat64<number, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
307
+ test_clock: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
308
+ threshold_reason: import('convex/values').VAny<any, "optional", string>;
309
+ total_discount_amounts: import('convex/values').VUnion<any[] | null | undefined, [import('convex/values').VArray<any[], import('convex/values').VAny<any, "required", string>, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
310
+ total_excluding_tax: import('convex/values').VUnion<number | null | undefined, [import('convex/values').VFloat64<number, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
311
+ total_pretax_credit_amounts: import('convex/values').VUnion<any[] | null | undefined, [import('convex/values').VArray<any[], import('convex/values').VAny<any, "required", string>, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
312
+ total_taxes: import('convex/values').VUnion<any[] | null | undefined, [import('convex/values').VArray<any[], import('convex/values').VAny<any, "required", string>, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
313
+ webhooks_delivered_at: import('convex/values').VUnion<number | null | undefined, [import('convex/values').VFloat64<number, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
314
+ }, "required", "number" | "object" | "id" | "automatic_tax" | "currency" | "customer" | "customer_email" | "metadata" | "status" | "created" | "custom_fields" | "discounts" | "livemode" | "shipping_cost" | `automatic_tax.${string}` | `metadata.${string}` | `shipping_cost.${string}` | "description" | "default_source" | "test_clock" | "auto_advance" | "collection_method" | "confirmation_secret" | "hosted_invoice_url" | "lines" | "parent" | "period_end" | "period_start" | "total" | "account_country" | "account_name" | "account_tax_ids" | "amount_due" | "amount_overpaid" | "amount_paid" | "amount_remaining" | "amount_shipping" | "application" | "attempt_count" | "attempted" | "automatically_finalizes_at" | "billing_reason" | "customer_address" | "customer_name" | "customer_phone" | "customer_shipping" | "customer_tax_exempt" | "customer_tax_ids" | "default_payment_method" | "default_tax_rates" | "due_date" | "effective_at" | "ending_balance" | "footer" | "from_invoice" | "invoice_pdf" | "issuer" | "last_finalization_error" | "latest_revision" | "next_payment_attempt" | "on_behalf_of" | "payment_settings" | "payments" | "post_payment_credit_notes_amount" | "pre_payment_credit_notes_amount" | "receipt_number" | "rendering" | "shipping_details" | "starting_balance" | "statement_descriptor" | "status_transitions" | "subtotal" | "subtotal_excluding_tax" | "threshold_reason" | "total_discount_amounts" | "total_excluding_tax" | "total_pretax_credit_amounts" | "total_taxes" | "webhooks_delivered_at" | `confirmation_secret.${string}` | `lines.${string}` | `parent.${string}` | `customer_address.${string}` | `customer_shipping.${string}` | `from_invoice.${string}` | `issuer.${string}` | `last_finalization_error.${string}` | `payment_settings.${string}` | `payments.${string}` | `rendering.${string}` | `shipping_details.${string}` | `status_transitions.${string}` | `threshold_reason.${string}`>;