@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.
- package/dist/index.d.ts +0 -2
- package/dist/index.js +1 -0
- package/dist/server/actions/index.d.ts +4 -0
- package/dist/server/actions/pay.d.ts +579 -0
- package/dist/server/actions/portal.d.ts +26 -0
- package/dist/server/actions/setup.d.ts +19 -0
- package/dist/server/actions/subscribe.d.ts +44 -0
- package/dist/server/helpers.d.ts +28 -0
- package/dist/server/index.d.ts +589 -0
- package/dist/server/logger.d.ts +8 -0
- package/dist/server/redirects/index.d.ts +47 -0
- package/dist/server/redirects/pay.d.ts +5 -0
- package/dist/server/redirects/portal.d.ts +3 -0
- package/dist/server/redirects/subscribe.d.ts +3 -0
- package/dist/server/redirects/types.d.ts +9 -0
- package/dist/server/schema/checkout-session.d.ts +256 -0
- package/dist/server/schema/coupon.d.ts +112 -0
- package/dist/server/schema/customer.d.ts +366 -0
- package/dist/server/schema/index.d.ts +3511 -0
- package/dist/server/schema/invoice.d.ts +314 -0
- package/dist/server/schema/payment-intent.d.ts +311 -0
- package/dist/server/schema/payout.d.ts +140 -0
- package/dist/server/schema/price.d.ts +148 -0
- package/dist/server/schema/product.d.ts +132 -0
- package/dist/server/schema/promotion-code.d.ts +266 -0
- package/dist/server/schema/refund.d.ts +92 -0
- package/dist/server/schema/review.d.ts +152 -0
- package/dist/server/schema/subscription.d.ts +4 -0
- package/dist/server/store/index.d.ts +582 -0
- package/dist/server/store/operations/delete-by-id.d.ts +3 -0
- package/dist/server/store/operations/index.d.ts +5 -0
- package/dist/server/store/operations/select-all.d.ts +3 -0
- package/dist/server/store/operations/select-by-id.d.ts +4 -0
- package/dist/server/store/operations/select-one.d.ts +3 -0
- package/dist/server/store/operations/upsert.d.ts +4 -0
- package/dist/server/store/types.d.ts +70 -0
- package/dist/server/sync/all.d.ts +5 -0
- package/dist/server/sync/checkouts-session.handler.d.ts +5 -0
- package/dist/server/sync/coupons.handler.d.ts +5 -0
- package/dist/server/sync/customers.handler.d.ts +5 -0
- package/dist/server/sync/invoices.handler.d.ts +5 -0
- package/dist/server/sync/payment-intent.handler.d.ts +5 -0
- package/dist/server/sync/payouts.handler.d.ts +5 -0
- package/dist/server/sync/prices.handler.d.ts +5 -0
- package/dist/server/sync/products.handler.d.ts +5 -0
- package/dist/server/sync/promotion-codes.handler.d.ts +5 -0
- package/dist/server/sync/refunds.handler.d.ts +5 -0
- package/dist/server/sync/reviews.handler.d.ts +5 -0
- package/dist/server/sync/subscription.d.ts +12 -0
- package/dist/server/sync/subscriptions.handler.d.ts +5 -0
- package/dist/server/types.d.ts +29 -0
- package/dist/server/webhooks/checkouts-session.handler.d.ts +2 -0
- package/dist/server/webhooks/coupons.handler.d.ts +2 -0
- package/dist/server/webhooks/customers.handler.d.ts +2 -0
- package/dist/server/webhooks/index.d.ts +2 -0
- package/dist/server/webhooks/invoices.handler.d.ts +2 -0
- package/dist/server/webhooks/payment-intents.handler.d.ts +2 -0
- package/dist/server/webhooks/payouts.handler.d.ts +2 -0
- package/dist/server/webhooks/prices.handler.d.ts +2 -0
- package/dist/server/webhooks/products.handler.d.ts +2 -0
- package/dist/server/webhooks/promotion-codes.handler.d.ts +2 -0
- package/dist/server/webhooks/refunds.handler.d.ts +2 -0
- package/dist/server/webhooks/reviews.handler.d.ts +2 -0
- package/dist/server/webhooks/subscription.handler.d.ts +2 -0
- package/dist/server/webhooks/types.d.ts +11 -0
- package/dist/server.d.ts +2 -3790
- package/dist/server.js +3811 -1236
- package/package.json +9 -8
|
@@ -0,0 +1,3511 @@
|
|
|
1
|
+
import { DataModelFromSchemaDefinition, TableNamesInDataModel } from 'convex/server';
|
|
2
|
+
import { GenericDoc } from '../types';
|
|
3
|
+
export declare const stripeTables: {
|
|
4
|
+
stripe_products: import('convex/server').TableDefinition<import('convex/values').VObject<{
|
|
5
|
+
productId: string;
|
|
6
|
+
stripe: {
|
|
7
|
+
metadata?: Record<string, string | number | null> | null | undefined;
|
|
8
|
+
statement_descriptor?: string | null | undefined;
|
|
9
|
+
unit_label?: string | null | undefined;
|
|
10
|
+
object: string;
|
|
11
|
+
id: string;
|
|
12
|
+
url: string | null;
|
|
13
|
+
created: number;
|
|
14
|
+
livemode: boolean;
|
|
15
|
+
name: string;
|
|
16
|
+
description: string | null;
|
|
17
|
+
active: boolean;
|
|
18
|
+
images: string[];
|
|
19
|
+
package_dimensions: {
|
|
20
|
+
length: number;
|
|
21
|
+
height: number;
|
|
22
|
+
weight: number;
|
|
23
|
+
width: number;
|
|
24
|
+
} | null;
|
|
25
|
+
shippable: boolean | null;
|
|
26
|
+
updated: number;
|
|
27
|
+
marketing_features: {
|
|
28
|
+
name?: string | null | undefined;
|
|
29
|
+
}[];
|
|
30
|
+
default_price: string | null;
|
|
31
|
+
};
|
|
32
|
+
last_synced_at: number;
|
|
33
|
+
}, {
|
|
34
|
+
productId: import('convex/values').VString<string, "required">;
|
|
35
|
+
stripe: import('convex/values').VObject<{
|
|
36
|
+
metadata?: Record<string, string | number | null> | null | undefined;
|
|
37
|
+
statement_descriptor?: string | null | undefined;
|
|
38
|
+
unit_label?: string | null | undefined;
|
|
39
|
+
object: string;
|
|
40
|
+
id: string;
|
|
41
|
+
url: string | null;
|
|
42
|
+
created: number;
|
|
43
|
+
livemode: boolean;
|
|
44
|
+
name: string;
|
|
45
|
+
description: string | null;
|
|
46
|
+
active: boolean;
|
|
47
|
+
images: string[];
|
|
48
|
+
package_dimensions: {
|
|
49
|
+
length: number;
|
|
50
|
+
height: number;
|
|
51
|
+
weight: number;
|
|
52
|
+
width: number;
|
|
53
|
+
} | null;
|
|
54
|
+
shippable: boolean | null;
|
|
55
|
+
updated: number;
|
|
56
|
+
marketing_features: {
|
|
57
|
+
name?: string | null | undefined;
|
|
58
|
+
}[];
|
|
59
|
+
default_price: string | null;
|
|
60
|
+
}, {
|
|
61
|
+
id: import('convex/values').VString<string, "required">;
|
|
62
|
+
object: import('convex/values').VString<string, "required">;
|
|
63
|
+
active: import('convex/values').VBoolean<boolean, "required">;
|
|
64
|
+
description: import('convex/values').VUnion<string | null, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "required", never>;
|
|
65
|
+
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>;
|
|
66
|
+
name: import('convex/values').VString<string, "required">;
|
|
67
|
+
created: import('convex/values').VFloat64<number, "required">;
|
|
68
|
+
images: import('convex/values').VArray<string[], import('convex/values').VString<string, "required">, "required">;
|
|
69
|
+
livemode: import('convex/values').VBoolean<boolean, "required">;
|
|
70
|
+
package_dimensions: import('convex/values').VUnion<{
|
|
71
|
+
length: number;
|
|
72
|
+
height: number;
|
|
73
|
+
weight: number;
|
|
74
|
+
width: number;
|
|
75
|
+
} | null, [import('convex/values').VObject<{
|
|
76
|
+
length: number;
|
|
77
|
+
height: number;
|
|
78
|
+
weight: number;
|
|
79
|
+
width: number;
|
|
80
|
+
}, {
|
|
81
|
+
height: import('convex/values').VFloat64<number, "required">;
|
|
82
|
+
length: import('convex/values').VFloat64<number, "required">;
|
|
83
|
+
weight: import('convex/values').VFloat64<number, "required">;
|
|
84
|
+
width: import('convex/values').VFloat64<number, "required">;
|
|
85
|
+
}, "required", "length" | "height" | "weight" | "width">, import('convex/values').VNull<null, "required">], "required", "length" | "height" | "weight" | "width">;
|
|
86
|
+
shippable: import('convex/values').VUnion<boolean | null, [import('convex/values').VBoolean<boolean, "required">, import('convex/values').VNull<null, "required">], "required", never>;
|
|
87
|
+
statement_descriptor: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
88
|
+
unit_label: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
89
|
+
updated: import('convex/values').VFloat64<number, "required">;
|
|
90
|
+
url: import('convex/values').VUnion<string | null, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "required", never>;
|
|
91
|
+
marketing_features: import('convex/values').VArray<{
|
|
92
|
+
name?: string | null | undefined;
|
|
93
|
+
}[], import('convex/values').VObject<{
|
|
94
|
+
name?: string | null | undefined;
|
|
95
|
+
}, {
|
|
96
|
+
name: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
97
|
+
}, "required", "name">, "required">;
|
|
98
|
+
default_price: import('convex/values').VUnion<string | null, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "required", never>;
|
|
99
|
+
}, "required", "object" | "id" | "metadata" | "url" | "created" | "livemode" | `metadata.${string}` | "name" | "description" | "statement_descriptor" | "active" | "images" | "package_dimensions" | "shippable" | "unit_label" | "updated" | "marketing_features" | "default_price" | "package_dimensions.length" | "package_dimensions.height" | "package_dimensions.weight" | "package_dimensions.width">;
|
|
100
|
+
last_synced_at: import('convex/values').VFloat64<number, "required">;
|
|
101
|
+
}, "required", "productId" | "stripe" | "last_synced_at" | "stripe.object" | "stripe.id" | "stripe.metadata" | "stripe.url" | "stripe.created" | "stripe.livemode" | `stripe.metadata.${string}` | "stripe.name" | "stripe.description" | "stripe.statement_descriptor" | "stripe.active" | "stripe.images" | "stripe.package_dimensions" | "stripe.shippable" | "stripe.unit_label" | "stripe.updated" | "stripe.marketing_features" | "stripe.default_price" | "stripe.package_dimensions.length" | "stripe.package_dimensions.height" | "stripe.package_dimensions.weight" | "stripe.package_dimensions.width">, {
|
|
102
|
+
byActive: ["stripe.active", "_creationTime"];
|
|
103
|
+
byName: ["stripe.name", "_creationTime"];
|
|
104
|
+
}, {}, {}>;
|
|
105
|
+
stripe_prices: import('convex/server').TableDefinition<import('convex/values').VObject<{
|
|
106
|
+
stripe: {
|
|
107
|
+
metadata?: Record<string, string | number | null> | null | undefined;
|
|
108
|
+
object: string;
|
|
109
|
+
type: "one_time" | "recurring";
|
|
110
|
+
id: string;
|
|
111
|
+
currency: string;
|
|
112
|
+
created: number;
|
|
113
|
+
livemode: boolean;
|
|
114
|
+
recurring: {
|
|
115
|
+
interval: "day" | "week" | "month" | "year";
|
|
116
|
+
interval_count: number;
|
|
117
|
+
trial_period_days: number | null;
|
|
118
|
+
meter: string | null;
|
|
119
|
+
usage_type: "licensed" | "metered";
|
|
120
|
+
} | null;
|
|
121
|
+
active: boolean;
|
|
122
|
+
nickname: string | null;
|
|
123
|
+
productId: string;
|
|
124
|
+
unit_amount: number | null;
|
|
125
|
+
billing_scheme: "per_unit" | "tiered";
|
|
126
|
+
lookup_key: string | null;
|
|
127
|
+
tiers_mode: "graduated" | "volume" | null;
|
|
128
|
+
transform_quantity: {
|
|
129
|
+
divide_by: number;
|
|
130
|
+
round: "up" | "down";
|
|
131
|
+
} | null;
|
|
132
|
+
unit_amount_decimal: string | null;
|
|
133
|
+
};
|
|
134
|
+
last_synced_at: number;
|
|
135
|
+
priceId: string;
|
|
136
|
+
}, {
|
|
137
|
+
priceId: import('convex/values').VString<string, "required">;
|
|
138
|
+
stripe: import('convex/values').VObject<{
|
|
139
|
+
metadata?: Record<string, string | number | null> | null | undefined;
|
|
140
|
+
object: string;
|
|
141
|
+
type: "one_time" | "recurring";
|
|
142
|
+
id: string;
|
|
143
|
+
currency: string;
|
|
144
|
+
created: number;
|
|
145
|
+
livemode: boolean;
|
|
146
|
+
recurring: {
|
|
147
|
+
interval: "day" | "week" | "month" | "year";
|
|
148
|
+
interval_count: number;
|
|
149
|
+
trial_period_days: number | null;
|
|
150
|
+
meter: string | null;
|
|
151
|
+
usage_type: "licensed" | "metered";
|
|
152
|
+
} | null;
|
|
153
|
+
active: boolean;
|
|
154
|
+
nickname: string | null;
|
|
155
|
+
productId: string;
|
|
156
|
+
unit_amount: number | null;
|
|
157
|
+
billing_scheme: "per_unit" | "tiered";
|
|
158
|
+
lookup_key: string | null;
|
|
159
|
+
tiers_mode: "graduated" | "volume" | null;
|
|
160
|
+
transform_quantity: {
|
|
161
|
+
divide_by: number;
|
|
162
|
+
round: "up" | "down";
|
|
163
|
+
} | null;
|
|
164
|
+
unit_amount_decimal: string | null;
|
|
165
|
+
}, {
|
|
166
|
+
id: import('convex/values').VString<string, "required">;
|
|
167
|
+
object: import('convex/values').VString<string, "required">;
|
|
168
|
+
active: import('convex/values').VBoolean<boolean, "required">;
|
|
169
|
+
currency: import('convex/values').VString<string, "required">;
|
|
170
|
+
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>;
|
|
171
|
+
nickname: import('convex/values').VUnion<string | null, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "required", never>;
|
|
172
|
+
recurring: import('convex/values').VUnion<{
|
|
173
|
+
interval: "day" | "week" | "month" | "year";
|
|
174
|
+
interval_count: number;
|
|
175
|
+
trial_period_days: number | null;
|
|
176
|
+
meter: string | null;
|
|
177
|
+
usage_type: "licensed" | "metered";
|
|
178
|
+
} | null, [import('convex/values').VObject<{
|
|
179
|
+
interval: "day" | "week" | "month" | "year";
|
|
180
|
+
interval_count: number;
|
|
181
|
+
trial_period_days: number | null;
|
|
182
|
+
meter: string | null;
|
|
183
|
+
usage_type: "licensed" | "metered";
|
|
184
|
+
}, {
|
|
185
|
+
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>;
|
|
186
|
+
interval_count: import('convex/values').VFloat64<number, "required">;
|
|
187
|
+
trial_period_days: import('convex/values').VUnion<number | null, [import('convex/values').VFloat64<number, "required">, import('convex/values').VNull<null, "required">], "required", never>;
|
|
188
|
+
meter: import('convex/values').VUnion<string | null, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "required", never>;
|
|
189
|
+
usage_type: import('convex/values').VUnion<"licensed" | "metered", [import('convex/values').VLiteral<"licensed", "required">, import('convex/values').VLiteral<"metered", "required">], "required", never>;
|
|
190
|
+
}, "required", "interval" | "interval_count" | "trial_period_days" | "meter" | "usage_type">, import('convex/values').VNull<null, "required">], "required", "interval" | "interval_count" | "trial_period_days" | "meter" | "usage_type">;
|
|
191
|
+
productId: import('convex/values').VString<string, "required">;
|
|
192
|
+
type: import('convex/values').VUnion<"one_time" | "recurring", [import('convex/values').VLiteral<"one_time", "required">, import('convex/values').VLiteral<"recurring", "required">], "required", never>;
|
|
193
|
+
unit_amount: import('convex/values').VUnion<number | null, [import('convex/values').VFloat64<number, "required">, import('convex/values').VNull<null, "required">], "required", never>;
|
|
194
|
+
billing_scheme: import('convex/values').VUnion<"per_unit" | "tiered", [import('convex/values').VLiteral<"per_unit", "required">, import('convex/values').VLiteral<"tiered", "required">], "required", never>;
|
|
195
|
+
created: import('convex/values').VFloat64<number, "required">;
|
|
196
|
+
livemode: import('convex/values').VBoolean<boolean, "required">;
|
|
197
|
+
lookup_key: import('convex/values').VUnion<string | null, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "required", never>;
|
|
198
|
+
tiers_mode: import('convex/values').VUnion<"graduated" | "volume" | null, [import('convex/values').VLiteral<"graduated", "required">, import('convex/values').VLiteral<"volume", "required">, import('convex/values').VNull<null, "required">], "required", never>;
|
|
199
|
+
transform_quantity: import('convex/values').VUnion<{
|
|
200
|
+
divide_by: number;
|
|
201
|
+
round: "up" | "down";
|
|
202
|
+
} | null, [import('convex/values').VObject<{
|
|
203
|
+
divide_by: number;
|
|
204
|
+
round: "up" | "down";
|
|
205
|
+
}, {
|
|
206
|
+
divide_by: import('convex/values').VFloat64<number, "required">;
|
|
207
|
+
round: import('convex/values').VUnion<"up" | "down", [import('convex/values').VLiteral<"up", "required">, import('convex/values').VLiteral<"down", "required">], "required", never>;
|
|
208
|
+
}, "required", "divide_by" | "round">, import('convex/values').VNull<null, "required">], "required", "divide_by" | "round">;
|
|
209
|
+
unit_amount_decimal: import('convex/values').VUnion<string | null, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "required", never>;
|
|
210
|
+
}, "required", "object" | "type" | "id" | "currency" | "metadata" | "created" | "livemode" | `metadata.${string}` | "recurring" | "active" | "nickname" | "productId" | "unit_amount" | "billing_scheme" | "lookup_key" | "tiers_mode" | "transform_quantity" | "unit_amount_decimal" | "recurring.interval" | "recurring.interval_count" | "recurring.trial_period_days" | "recurring.meter" | "recurring.usage_type" | "transform_quantity.divide_by" | "transform_quantity.round">;
|
|
211
|
+
last_synced_at: import('convex/values').VFloat64<number, "required">;
|
|
212
|
+
}, "required", "stripe" | "last_synced_at" | "stripe.object" | "stripe.id" | "stripe.metadata" | "stripe.created" | "stripe.livemode" | `stripe.metadata.${string}` | "stripe.active" | "priceId" | "stripe.type" | "stripe.currency" | "stripe.recurring" | "stripe.nickname" | "stripe.productId" | "stripe.unit_amount" | "stripe.billing_scheme" | "stripe.lookup_key" | "stripe.tiers_mode" | "stripe.transform_quantity" | "stripe.unit_amount_decimal" | "stripe.recurring.interval" | "stripe.recurring.interval_count" | "stripe.recurring.trial_period_days" | "stripe.recurring.meter" | "stripe.recurring.usage_type" | "stripe.transform_quantity.divide_by" | "stripe.transform_quantity.round">, {
|
|
213
|
+
byPriceId: ["priceId", "_creationTime"];
|
|
214
|
+
byActive: ["stripe.active", "_creationTime"];
|
|
215
|
+
byRecurringInterval: ["stripe.recurring.interval", "_creationTime"];
|
|
216
|
+
byCurrency: ["stripe.currency", "_creationTime"];
|
|
217
|
+
}, {}, {}>;
|
|
218
|
+
stripe_customers: import('convex/server').TableDefinition<import('convex/values').VObject<{
|
|
219
|
+
stripe: {
|
|
220
|
+
currency?: string | null | undefined;
|
|
221
|
+
metadata?: Record<string, string | number | null> | null | undefined;
|
|
222
|
+
name?: string | null | undefined;
|
|
223
|
+
address?: {
|
|
224
|
+
city?: string | null | undefined;
|
|
225
|
+
country?: string | null | undefined;
|
|
226
|
+
line1?: string | null | undefined;
|
|
227
|
+
line2?: string | null | undefined;
|
|
228
|
+
postal_code?: string | null | undefined;
|
|
229
|
+
state?: string | null | undefined;
|
|
230
|
+
} | null | undefined;
|
|
231
|
+
phone?: string | null | undefined;
|
|
232
|
+
description?: string | null | undefined;
|
|
233
|
+
email?: string | null | undefined;
|
|
234
|
+
shipping?: {
|
|
235
|
+
name?: string | undefined;
|
|
236
|
+
address?: {
|
|
237
|
+
city?: string | null | undefined;
|
|
238
|
+
country?: string | null | undefined;
|
|
239
|
+
line1?: string | null | undefined;
|
|
240
|
+
line2?: string | null | undefined;
|
|
241
|
+
postal_code?: string | null | undefined;
|
|
242
|
+
state?: string | null | undefined;
|
|
243
|
+
} | undefined;
|
|
244
|
+
phone?: string | null | undefined;
|
|
245
|
+
carrier?: string | null | undefined;
|
|
246
|
+
tracking_number?: string | null | undefined;
|
|
247
|
+
} | null | undefined;
|
|
248
|
+
tax?: {
|
|
249
|
+
ip_address?: string | null | undefined;
|
|
250
|
+
automatic_tax: "failed" | "not_collecting" | "supported" | "unrecognized_location";
|
|
251
|
+
location: {
|
|
252
|
+
state?: string | null | undefined;
|
|
253
|
+
country: string;
|
|
254
|
+
source: string;
|
|
255
|
+
} | null;
|
|
256
|
+
} | undefined;
|
|
257
|
+
cash_balance?: any;
|
|
258
|
+
default_source?: string | null | undefined;
|
|
259
|
+
delinquent?: boolean | null | undefined;
|
|
260
|
+
discount?: any;
|
|
261
|
+
invoice_credit_balance?: any;
|
|
262
|
+
invoice_prefix?: string | null | undefined;
|
|
263
|
+
invoice_settings?: any;
|
|
264
|
+
next_invoice_sequence?: number | null | undefined;
|
|
265
|
+
preferred_locales?: string[] | null | undefined;
|
|
266
|
+
sources?: any;
|
|
267
|
+
subscriptions?: any;
|
|
268
|
+
tax_exempt?: "reverse" | "exempt" | "none" | null | undefined;
|
|
269
|
+
tax_ids?: any;
|
|
270
|
+
test_clock?: string | null | undefined;
|
|
271
|
+
object: string;
|
|
272
|
+
id: string;
|
|
273
|
+
created: number;
|
|
274
|
+
livemode: boolean;
|
|
275
|
+
balance: number;
|
|
276
|
+
};
|
|
277
|
+
last_synced_at: number;
|
|
278
|
+
customerId: string;
|
|
279
|
+
entityId: string;
|
|
280
|
+
}, {
|
|
281
|
+
customerId: import('convex/values').VString<string, "required">;
|
|
282
|
+
entityId: import('convex/values').VString<string, "required">;
|
|
283
|
+
stripe: import('convex/values').VObject<{
|
|
284
|
+
currency?: string | null | undefined;
|
|
285
|
+
metadata?: Record<string, string | number | null> | null | undefined;
|
|
286
|
+
name?: string | null | undefined;
|
|
287
|
+
address?: {
|
|
288
|
+
city?: string | null | undefined;
|
|
289
|
+
country?: string | null | undefined;
|
|
290
|
+
line1?: string | null | undefined;
|
|
291
|
+
line2?: string | null | undefined;
|
|
292
|
+
postal_code?: string | null | undefined;
|
|
293
|
+
state?: string | null | undefined;
|
|
294
|
+
} | null | undefined;
|
|
295
|
+
phone?: string | null | undefined;
|
|
296
|
+
description?: string | null | undefined;
|
|
297
|
+
email?: string | null | undefined;
|
|
298
|
+
shipping?: {
|
|
299
|
+
name?: string | undefined;
|
|
300
|
+
address?: {
|
|
301
|
+
city?: string | null | undefined;
|
|
302
|
+
country?: string | null | undefined;
|
|
303
|
+
line1?: string | null | undefined;
|
|
304
|
+
line2?: string | null | undefined;
|
|
305
|
+
postal_code?: string | null | undefined;
|
|
306
|
+
state?: string | null | undefined;
|
|
307
|
+
} | undefined;
|
|
308
|
+
phone?: string | null | undefined;
|
|
309
|
+
carrier?: string | null | undefined;
|
|
310
|
+
tracking_number?: string | null | undefined;
|
|
311
|
+
} | null | undefined;
|
|
312
|
+
tax?: {
|
|
313
|
+
ip_address?: string | null | undefined;
|
|
314
|
+
automatic_tax: "failed" | "not_collecting" | "supported" | "unrecognized_location";
|
|
315
|
+
location: {
|
|
316
|
+
state?: string | null | undefined;
|
|
317
|
+
country: string;
|
|
318
|
+
source: string;
|
|
319
|
+
} | null;
|
|
320
|
+
} | undefined;
|
|
321
|
+
cash_balance?: any;
|
|
322
|
+
default_source?: string | null | undefined;
|
|
323
|
+
delinquent?: boolean | null | undefined;
|
|
324
|
+
discount?: any;
|
|
325
|
+
invoice_credit_balance?: any;
|
|
326
|
+
invoice_prefix?: string | null | undefined;
|
|
327
|
+
invoice_settings?: any;
|
|
328
|
+
next_invoice_sequence?: number | null | undefined;
|
|
329
|
+
preferred_locales?: string[] | null | undefined;
|
|
330
|
+
sources?: any;
|
|
331
|
+
subscriptions?: any;
|
|
332
|
+
tax_exempt?: "reverse" | "exempt" | "none" | null | undefined;
|
|
333
|
+
tax_ids?: any;
|
|
334
|
+
test_clock?: string | null | undefined;
|
|
335
|
+
object: string;
|
|
336
|
+
id: string;
|
|
337
|
+
created: number;
|
|
338
|
+
livemode: boolean;
|
|
339
|
+
balance: number;
|
|
340
|
+
}, {
|
|
341
|
+
id: import('convex/values').VString<string, "required">;
|
|
342
|
+
address: import('convex/values').VUnion<{
|
|
343
|
+
city?: string | null | undefined;
|
|
344
|
+
country?: string | null | undefined;
|
|
345
|
+
line1?: string | null | undefined;
|
|
346
|
+
line2?: string | null | undefined;
|
|
347
|
+
postal_code?: string | null | undefined;
|
|
348
|
+
state?: string | null | undefined;
|
|
349
|
+
} | null | undefined, [import('convex/values').VObject<{
|
|
350
|
+
city?: string | null | undefined;
|
|
351
|
+
country?: string | null | undefined;
|
|
352
|
+
line1?: string | null | undefined;
|
|
353
|
+
line2?: string | null | undefined;
|
|
354
|
+
postal_code?: string | null | undefined;
|
|
355
|
+
state?: string | null | undefined;
|
|
356
|
+
}, {
|
|
357
|
+
city: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
358
|
+
country: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
359
|
+
line1: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
360
|
+
line2: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
361
|
+
postal_code: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
362
|
+
state: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
363
|
+
}, "required", "city" | "country" | "line1" | "line2" | "postal_code" | "state">, import('convex/values').VNull<null, "required">], "optional", "city" | "country" | "line1" | "line2" | "postal_code" | "state">;
|
|
364
|
+
description: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
365
|
+
email: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
366
|
+
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>;
|
|
367
|
+
name: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
368
|
+
phone: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
369
|
+
shipping: import('convex/values').VUnion<{
|
|
370
|
+
name?: string | undefined;
|
|
371
|
+
address?: {
|
|
372
|
+
city?: string | null | undefined;
|
|
373
|
+
country?: string | null | undefined;
|
|
374
|
+
line1?: string | null | undefined;
|
|
375
|
+
line2?: string | null | undefined;
|
|
376
|
+
postal_code?: string | null | undefined;
|
|
377
|
+
state?: string | null | undefined;
|
|
378
|
+
} | undefined;
|
|
379
|
+
phone?: string | null | undefined;
|
|
380
|
+
carrier?: string | null | undefined;
|
|
381
|
+
tracking_number?: string | null | undefined;
|
|
382
|
+
} | null | undefined, [import('convex/values').VObject<{
|
|
383
|
+
name?: string | undefined;
|
|
384
|
+
address?: {
|
|
385
|
+
city?: string | null | undefined;
|
|
386
|
+
country?: string | null | undefined;
|
|
387
|
+
line1?: string | null | undefined;
|
|
388
|
+
line2?: string | null | undefined;
|
|
389
|
+
postal_code?: string | null | undefined;
|
|
390
|
+
state?: string | null | undefined;
|
|
391
|
+
} | undefined;
|
|
392
|
+
phone?: string | null | undefined;
|
|
393
|
+
carrier?: string | null | undefined;
|
|
394
|
+
tracking_number?: string | null | undefined;
|
|
395
|
+
}, {
|
|
396
|
+
address: import('convex/values').VObject<{
|
|
397
|
+
city?: string | null | undefined;
|
|
398
|
+
country?: string | null | undefined;
|
|
399
|
+
line1?: string | null | undefined;
|
|
400
|
+
line2?: string | null | undefined;
|
|
401
|
+
postal_code?: string | null | undefined;
|
|
402
|
+
state?: string | null | undefined;
|
|
403
|
+
} | undefined, {
|
|
404
|
+
city: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
405
|
+
country: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
406
|
+
line1: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
407
|
+
line2: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
408
|
+
postal_code: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
409
|
+
state: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
410
|
+
}, "optional", "city" | "country" | "line1" | "line2" | "postal_code" | "state">;
|
|
411
|
+
name: import('convex/values').VString<string | undefined, "optional">;
|
|
412
|
+
phone: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
413
|
+
carrier: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
414
|
+
tracking_number: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
415
|
+
}, "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">;
|
|
416
|
+
tax: import('convex/values').VObject<{
|
|
417
|
+
ip_address?: string | null | undefined;
|
|
418
|
+
automatic_tax: "failed" | "not_collecting" | "supported" | "unrecognized_location";
|
|
419
|
+
location: {
|
|
420
|
+
state?: string | null | undefined;
|
|
421
|
+
country: string;
|
|
422
|
+
source: string;
|
|
423
|
+
} | null;
|
|
424
|
+
} | undefined, {
|
|
425
|
+
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>;
|
|
426
|
+
ip_address: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
427
|
+
location: import('convex/values').VUnion<{
|
|
428
|
+
state?: string | null | undefined;
|
|
429
|
+
country: string;
|
|
430
|
+
source: string;
|
|
431
|
+
} | null, [import('convex/values').VObject<{
|
|
432
|
+
state?: string | null | undefined;
|
|
433
|
+
country: string;
|
|
434
|
+
source: string;
|
|
435
|
+
}, {
|
|
436
|
+
country: import('convex/values').VString<string, "required">;
|
|
437
|
+
source: import('convex/values').VString<string, "required">;
|
|
438
|
+
state: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
439
|
+
}, "required", "country" | "state" | "source">, import('convex/values').VNull<null, "required">], "required", "country" | "state" | "source">;
|
|
440
|
+
}, "optional", "automatic_tax" | "ip_address" | "location" | "location.country" | "location.state" | "location.source">;
|
|
441
|
+
object: import('convex/values').VString<string, "required">;
|
|
442
|
+
balance: import('convex/values').VFloat64<number, "required">;
|
|
443
|
+
cash_balance: import('convex/values').VUnion<any, [import('convex/values').VAny<any, "required", string>, import('convex/values').VNull<null, "required">], "optional", string>;
|
|
444
|
+
created: import('convex/values').VFloat64<number, "required">;
|
|
445
|
+
currency: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
446
|
+
default_source: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
447
|
+
delinquent: import('convex/values').VUnion<boolean | null | undefined, [import('convex/values').VBoolean<boolean, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
448
|
+
discount: import('convex/values').VUnion<any, [import('convex/values').VAny<any, "required", string>, import('convex/values').VNull<null, "required">], "optional", string>;
|
|
449
|
+
invoice_credit_balance: import('convex/values').VAny<any, "optional", string>;
|
|
450
|
+
invoice_prefix: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
451
|
+
invoice_settings: import('convex/values').VAny<any, "optional", string>;
|
|
452
|
+
livemode: import('convex/values').VBoolean<boolean, "required">;
|
|
453
|
+
next_invoice_sequence: import('convex/values').VUnion<number | null | undefined, [import('convex/values').VFloat64<number, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
454
|
+
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>;
|
|
455
|
+
sources: import('convex/values').VUnion<any, [import('convex/values').VAny<any, "required", string>, import('convex/values').VNull<null, "required">], "optional", string>;
|
|
456
|
+
subscriptions: import('convex/values').VUnion<any, [import('convex/values').VAny<any, "required", string>, import('convex/values').VNull<null, "required">], "optional", string>;
|
|
457
|
+
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>;
|
|
458
|
+
tax_ids: import('convex/values').VUnion<any, [import('convex/values').VAny<any, "required", string>, import('convex/values').VNull<null, "required">], "optional", string>;
|
|
459
|
+
test_clock: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
460
|
+
}, "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}`>;
|
|
461
|
+
last_synced_at: import('convex/values').VFloat64<number, "required">;
|
|
462
|
+
}, "required", "stripe" | "last_synced_at" | "stripe.object" | "stripe.id" | "stripe.metadata" | "stripe.created" | "stripe.livemode" | `stripe.metadata.${string}` | "stripe.name" | "stripe.description" | "stripe.currency" | "customerId" | "entityId" | "stripe.address" | "stripe.phone" | "stripe.address.city" | "stripe.address.country" | "stripe.address.line1" | "stripe.address.line2" | "stripe.address.postal_code" | "stripe.address.state" | "stripe.email" | "stripe.shipping" | "stripe.tax" | "stripe.balance" | "stripe.cash_balance" | "stripe.default_source" | "stripe.delinquent" | "stripe.discount" | "stripe.invoice_credit_balance" | "stripe.invoice_prefix" | "stripe.invoice_settings" | "stripe.next_invoice_sequence" | "stripe.preferred_locales" | "stripe.sources" | "stripe.subscriptions" | "stripe.tax_exempt" | "stripe.tax_ids" | "stripe.test_clock" | "stripe.shipping.name" | "stripe.shipping.address" | "stripe.shipping.phone" | "stripe.shipping.carrier" | "stripe.shipping.tracking_number" | "stripe.shipping.address.city" | "stripe.shipping.address.country" | "stripe.shipping.address.line1" | "stripe.shipping.address.line2" | "stripe.shipping.address.postal_code" | "stripe.shipping.address.state" | "stripe.tax.automatic_tax" | "stripe.tax.ip_address" | "stripe.tax.location" | "stripe.tax.location.country" | "stripe.tax.location.state" | "stripe.tax.location.source" | `stripe.cash_balance.${string}` | `stripe.discount.${string}` | `stripe.invoice_credit_balance.${string}` | `stripe.invoice_settings.${string}` | `stripe.sources.${string}` | `stripe.subscriptions.${string}` | `stripe.tax_ids.${string}`>, {
|
|
463
|
+
byCustomerId: ["customerId", "_creationTime"];
|
|
464
|
+
byEntityId: ["entityId", "_creationTime"];
|
|
465
|
+
}, {}, {}>;
|
|
466
|
+
stripe_subscriptions: import('convex/server').TableDefinition<import('convex/values').VObject<{
|
|
467
|
+
stripe: any;
|
|
468
|
+
last_synced_at: number;
|
|
469
|
+
customerId: string;
|
|
470
|
+
subscriptionId: string | null;
|
|
471
|
+
}, {
|
|
472
|
+
subscriptionId: import('convex/values').VUnion<string | null, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "required", never>;
|
|
473
|
+
customerId: import('convex/values').VString<string, "required">;
|
|
474
|
+
stripe: import('convex/values').VAny<any, "required", string>;
|
|
475
|
+
last_synced_at: import('convex/values').VFloat64<number, "required">;
|
|
476
|
+
}, "required", "stripe" | "last_synced_at" | "customerId" | "subscriptionId" | `stripe.${string}`>, {
|
|
477
|
+
bySubscriptionId: ["subscriptionId", "_creationTime"];
|
|
478
|
+
byCustomerId: ["customerId", "_creationTime"];
|
|
479
|
+
}, {}, {}>;
|
|
480
|
+
stripe_coupons: import('convex/server').TableDefinition<import('convex/values').VObject<{
|
|
481
|
+
stripe: {
|
|
482
|
+
currency?: string | null | undefined;
|
|
483
|
+
metadata?: Record<string, string | number | null> | null | undefined;
|
|
484
|
+
amount_off?: number | null | undefined;
|
|
485
|
+
name?: string | null | undefined;
|
|
486
|
+
percent_off?: number | null | undefined;
|
|
487
|
+
applies_to?: {
|
|
488
|
+
products: string[];
|
|
489
|
+
} | null | undefined;
|
|
490
|
+
currency_options?: Record<string, {
|
|
491
|
+
amount_off: number;
|
|
492
|
+
}> | null | undefined;
|
|
493
|
+
duration_in_months?: number | null | undefined;
|
|
494
|
+
max_redemptions?: number | null | undefined;
|
|
495
|
+
redeem_by?: number | null | undefined;
|
|
496
|
+
object: string;
|
|
497
|
+
id: string;
|
|
498
|
+
created: number;
|
|
499
|
+
livemode: boolean;
|
|
500
|
+
duration: "forever" | "once" | "repeating";
|
|
501
|
+
times_redeemed: number;
|
|
502
|
+
valid: boolean;
|
|
503
|
+
};
|
|
504
|
+
last_synced_at: number;
|
|
505
|
+
couponId: string;
|
|
506
|
+
}, {
|
|
507
|
+
couponId: import('convex/values').VString<string, "required">;
|
|
508
|
+
stripe: import('convex/values').VObject<{
|
|
509
|
+
currency?: string | null | undefined;
|
|
510
|
+
metadata?: Record<string, string | number | null> | null | undefined;
|
|
511
|
+
amount_off?: number | null | undefined;
|
|
512
|
+
name?: string | null | undefined;
|
|
513
|
+
percent_off?: number | null | undefined;
|
|
514
|
+
applies_to?: {
|
|
515
|
+
products: string[];
|
|
516
|
+
} | null | undefined;
|
|
517
|
+
currency_options?: Record<string, {
|
|
518
|
+
amount_off: number;
|
|
519
|
+
}> | null | undefined;
|
|
520
|
+
duration_in_months?: number | null | undefined;
|
|
521
|
+
max_redemptions?: number | null | undefined;
|
|
522
|
+
redeem_by?: number | null | undefined;
|
|
523
|
+
object: string;
|
|
524
|
+
id: string;
|
|
525
|
+
created: number;
|
|
526
|
+
livemode: boolean;
|
|
527
|
+
duration: "forever" | "once" | "repeating";
|
|
528
|
+
times_redeemed: number;
|
|
529
|
+
valid: boolean;
|
|
530
|
+
}, {
|
|
531
|
+
id: import('convex/values').VString<string, "required">;
|
|
532
|
+
amount_off: import('convex/values').VUnion<number | null | undefined, [import('convex/values').VFloat64<number, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
533
|
+
currency: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
534
|
+
duration: import('convex/values').VUnion<"forever" | "once" | "repeating", [import('convex/values').VLiteral<"forever", "required">, import('convex/values').VLiteral<"once", "required">, import('convex/values').VLiteral<"repeating", "required">], "required", never>;
|
|
535
|
+
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>;
|
|
536
|
+
name: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
537
|
+
percent_off: import('convex/values').VUnion<number | null | undefined, [import('convex/values').VFloat64<number, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
538
|
+
object: import('convex/values').VString<string, "required">;
|
|
539
|
+
applies_to: import('convex/values').VUnion<{
|
|
540
|
+
products: string[];
|
|
541
|
+
} | null | undefined, [import('convex/values').VObject<{
|
|
542
|
+
products: string[];
|
|
543
|
+
}, {
|
|
544
|
+
products: import('convex/values').VArray<string[], import('convex/values').VString<string, "required">, "required">;
|
|
545
|
+
}, "required", "products">, import('convex/values').VNull<null, "required">], "optional", "products">;
|
|
546
|
+
created: import('convex/values').VFloat64<number, "required">;
|
|
547
|
+
currency_options: import('convex/values').VUnion<Record<string, {
|
|
548
|
+
amount_off: number;
|
|
549
|
+
}> | null | undefined, [import('convex/values').VRecord<Record<string, {
|
|
550
|
+
amount_off: number;
|
|
551
|
+
}>, import('convex/values').VString<string, "required">, import('convex/values').VObject<{
|
|
552
|
+
amount_off: number;
|
|
553
|
+
}, {
|
|
554
|
+
amount_off: import('convex/values').VFloat64<number, "required">;
|
|
555
|
+
}, "required", "amount_off">, "required", string>, import('convex/values').VNull<null, "required">], "optional", string>;
|
|
556
|
+
duration_in_months: import('convex/values').VUnion<number | null | undefined, [import('convex/values').VFloat64<number, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
557
|
+
livemode: import('convex/values').VBoolean<boolean, "required">;
|
|
558
|
+
max_redemptions: import('convex/values').VUnion<number | null | undefined, [import('convex/values').VFloat64<number, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
559
|
+
redeem_by: import('convex/values').VUnion<number | null | undefined, [import('convex/values').VFloat64<number, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
560
|
+
times_redeemed: import('convex/values').VFloat64<number, "required">;
|
|
561
|
+
valid: import('convex/values').VBoolean<boolean, "required">;
|
|
562
|
+
}, "required", "object" | "id" | "currency" | "metadata" | "created" | "livemode" | `metadata.${string}` | "amount_off" | "duration" | "name" | "percent_off" | "applies_to" | "currency_options" | "duration_in_months" | "max_redemptions" | "redeem_by" | "times_redeemed" | "valid" | "applies_to.products" | `currency_options.${string}`>;
|
|
563
|
+
last_synced_at: import('convex/values').VFloat64<number, "required">;
|
|
564
|
+
}, "required", "stripe" | "last_synced_at" | "stripe.object" | "stripe.id" | "stripe.metadata" | "stripe.created" | "stripe.livemode" | `stripe.metadata.${string}` | "stripe.name" | "stripe.currency" | "couponId" | "stripe.amount_off" | "stripe.duration" | "stripe.percent_off" | "stripe.applies_to" | "stripe.currency_options" | "stripe.duration_in_months" | "stripe.max_redemptions" | "stripe.redeem_by" | "stripe.times_redeemed" | "stripe.valid" | "stripe.applies_to.products" | `stripe.currency_options.${string}`>, {
|
|
565
|
+
byCouponId: ["couponId", "_creationTime"];
|
|
566
|
+
}, {}, {}>;
|
|
567
|
+
stripe_promotion_codes: import('convex/server').TableDefinition<import('convex/values').VObject<{
|
|
568
|
+
stripe: {
|
|
569
|
+
customer?: string | null | undefined;
|
|
570
|
+
metadata?: Record<string, string | number | null> | null | undefined;
|
|
571
|
+
expires_at?: number | null | undefined;
|
|
572
|
+
max_redemptions?: number | null | undefined;
|
|
573
|
+
object: string;
|
|
574
|
+
id: string;
|
|
575
|
+
created: number;
|
|
576
|
+
livemode: boolean;
|
|
577
|
+
times_redeemed: number;
|
|
578
|
+
coupon: {
|
|
579
|
+
currency?: string | null | undefined;
|
|
580
|
+
metadata?: Record<string, string | number | null> | null | undefined;
|
|
581
|
+
amount_off?: number | null | undefined;
|
|
582
|
+
name?: string | null | undefined;
|
|
583
|
+
percent_off?: number | null | undefined;
|
|
584
|
+
applies_to?: {
|
|
585
|
+
products: string[];
|
|
586
|
+
} | null | undefined;
|
|
587
|
+
currency_options?: Record<string, {
|
|
588
|
+
amount_off: number;
|
|
589
|
+
}> | null | undefined;
|
|
590
|
+
duration_in_months?: number | null | undefined;
|
|
591
|
+
max_redemptions?: number | null | undefined;
|
|
592
|
+
redeem_by?: number | null | undefined;
|
|
593
|
+
object: string;
|
|
594
|
+
id: string;
|
|
595
|
+
created: number;
|
|
596
|
+
livemode: boolean;
|
|
597
|
+
duration: "forever" | "once" | "repeating";
|
|
598
|
+
times_redeemed: number;
|
|
599
|
+
valid: boolean;
|
|
600
|
+
};
|
|
601
|
+
code: string;
|
|
602
|
+
active: boolean;
|
|
603
|
+
restrictions: {
|
|
604
|
+
currency_options?: Record<string, {
|
|
605
|
+
minimum_amount?: number | null | undefined;
|
|
606
|
+
}> | null | undefined;
|
|
607
|
+
minimum_amount?: number | null | undefined;
|
|
608
|
+
first_time_transaction?: boolean | undefined;
|
|
609
|
+
minimum_amount_currency?: string | null | undefined;
|
|
610
|
+
};
|
|
611
|
+
};
|
|
612
|
+
last_synced_at: number;
|
|
613
|
+
promotionCodeId: string;
|
|
614
|
+
}, {
|
|
615
|
+
promotionCodeId: import('convex/values').VString<string, "required">;
|
|
616
|
+
stripe: import('convex/values').VObject<{
|
|
617
|
+
customer?: string | null | undefined;
|
|
618
|
+
metadata?: Record<string, string | number | null> | null | undefined;
|
|
619
|
+
expires_at?: number | null | undefined;
|
|
620
|
+
max_redemptions?: number | null | undefined;
|
|
621
|
+
object: string;
|
|
622
|
+
id: string;
|
|
623
|
+
created: number;
|
|
624
|
+
livemode: boolean;
|
|
625
|
+
times_redeemed: number;
|
|
626
|
+
coupon: {
|
|
627
|
+
currency?: string | null | undefined;
|
|
628
|
+
metadata?: Record<string, string | number | null> | null | undefined;
|
|
629
|
+
amount_off?: number | null | undefined;
|
|
630
|
+
name?: string | null | undefined;
|
|
631
|
+
percent_off?: number | null | undefined;
|
|
632
|
+
applies_to?: {
|
|
633
|
+
products: string[];
|
|
634
|
+
} | null | undefined;
|
|
635
|
+
currency_options?: Record<string, {
|
|
636
|
+
amount_off: number;
|
|
637
|
+
}> | null | undefined;
|
|
638
|
+
duration_in_months?: number | null | undefined;
|
|
639
|
+
max_redemptions?: number | null | undefined;
|
|
640
|
+
redeem_by?: number | null | undefined;
|
|
641
|
+
object: string;
|
|
642
|
+
id: string;
|
|
643
|
+
created: number;
|
|
644
|
+
livemode: boolean;
|
|
645
|
+
duration: "forever" | "once" | "repeating";
|
|
646
|
+
times_redeemed: number;
|
|
647
|
+
valid: boolean;
|
|
648
|
+
};
|
|
649
|
+
code: string;
|
|
650
|
+
active: boolean;
|
|
651
|
+
restrictions: {
|
|
652
|
+
currency_options?: Record<string, {
|
|
653
|
+
minimum_amount?: number | null | undefined;
|
|
654
|
+
}> | null | undefined;
|
|
655
|
+
minimum_amount?: number | null | undefined;
|
|
656
|
+
first_time_transaction?: boolean | undefined;
|
|
657
|
+
minimum_amount_currency?: string | null | undefined;
|
|
658
|
+
};
|
|
659
|
+
}, {
|
|
660
|
+
id: import('convex/values').VString<string, "required">;
|
|
661
|
+
code: import('convex/values').VString<string, "required">;
|
|
662
|
+
coupon: import('convex/values').VObject<{
|
|
663
|
+
currency?: string | null | undefined;
|
|
664
|
+
metadata?: Record<string, string | number | null> | null | undefined;
|
|
665
|
+
amount_off?: number | null | undefined;
|
|
666
|
+
name?: string | null | undefined;
|
|
667
|
+
percent_off?: number | null | undefined;
|
|
668
|
+
applies_to?: {
|
|
669
|
+
products: string[];
|
|
670
|
+
} | null | undefined;
|
|
671
|
+
currency_options?: Record<string, {
|
|
672
|
+
amount_off: number;
|
|
673
|
+
}> | null | undefined;
|
|
674
|
+
duration_in_months?: number | null | undefined;
|
|
675
|
+
max_redemptions?: number | null | undefined;
|
|
676
|
+
redeem_by?: number | null | undefined;
|
|
677
|
+
object: string;
|
|
678
|
+
id: string;
|
|
679
|
+
created: number;
|
|
680
|
+
livemode: boolean;
|
|
681
|
+
duration: "forever" | "once" | "repeating";
|
|
682
|
+
times_redeemed: number;
|
|
683
|
+
valid: boolean;
|
|
684
|
+
}, {
|
|
685
|
+
id: import('convex/values').VString<string, "required">;
|
|
686
|
+
amount_off: import('convex/values').VUnion<number | null | undefined, [import('convex/values').VFloat64<number, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
687
|
+
currency: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
688
|
+
duration: import('convex/values').VUnion<"forever" | "once" | "repeating", [import('convex/values').VLiteral<"forever", "required">, import('convex/values').VLiteral<"once", "required">, import('convex/values').VLiteral<"repeating", "required">], "required", never>;
|
|
689
|
+
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>;
|
|
690
|
+
name: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
691
|
+
percent_off: import('convex/values').VUnion<number | null | undefined, [import('convex/values').VFloat64<number, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
692
|
+
object: import('convex/values').VString<string, "required">;
|
|
693
|
+
applies_to: import('convex/values').VUnion<{
|
|
694
|
+
products: string[];
|
|
695
|
+
} | null | undefined, [import('convex/values').VObject<{
|
|
696
|
+
products: string[];
|
|
697
|
+
}, {
|
|
698
|
+
products: import('convex/values').VArray<string[], import('convex/values').VString<string, "required">, "required">;
|
|
699
|
+
}, "required", "products">, import('convex/values').VNull<null, "required">], "optional", "products">;
|
|
700
|
+
created: import('convex/values').VFloat64<number, "required">;
|
|
701
|
+
currency_options: import('convex/values').VUnion<Record<string, {
|
|
702
|
+
amount_off: number;
|
|
703
|
+
}> | null | undefined, [import('convex/values').VRecord<Record<string, {
|
|
704
|
+
amount_off: number;
|
|
705
|
+
}>, import('convex/values').VString<string, "required">, import('convex/values').VObject<{
|
|
706
|
+
amount_off: number;
|
|
707
|
+
}, {
|
|
708
|
+
amount_off: import('convex/values').VFloat64<number, "required">;
|
|
709
|
+
}, "required", "amount_off">, "required", string>, import('convex/values').VNull<null, "required">], "optional", string>;
|
|
710
|
+
duration_in_months: import('convex/values').VUnion<number | null | undefined, [import('convex/values').VFloat64<number, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
711
|
+
livemode: import('convex/values').VBoolean<boolean, "required">;
|
|
712
|
+
max_redemptions: import('convex/values').VUnion<number | null | undefined, [import('convex/values').VFloat64<number, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
713
|
+
redeem_by: import('convex/values').VUnion<number | null | undefined, [import('convex/values').VFloat64<number, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
714
|
+
times_redeemed: import('convex/values').VFloat64<number, "required">;
|
|
715
|
+
valid: import('convex/values').VBoolean<boolean, "required">;
|
|
716
|
+
}, "required", "object" | "id" | "currency" | "metadata" | "created" | "livemode" | `metadata.${string}` | "amount_off" | "duration" | "name" | "percent_off" | "applies_to" | "currency_options" | "duration_in_months" | "max_redemptions" | "redeem_by" | "times_redeemed" | "valid" | "applies_to.products" | `currency_options.${string}`>;
|
|
717
|
+
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>;
|
|
718
|
+
object: import('convex/values').VString<string, "required">;
|
|
719
|
+
active: import('convex/values').VBoolean<boolean, "required">;
|
|
720
|
+
created: import('convex/values').VFloat64<number, "required">;
|
|
721
|
+
customer: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
722
|
+
expires_at: import('convex/values').VUnion<number | null | undefined, [import('convex/values').VFloat64<number, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
723
|
+
livemode: import('convex/values').VBoolean<boolean, "required">;
|
|
724
|
+
max_redemptions: import('convex/values').VUnion<number | null | undefined, [import('convex/values').VFloat64<number, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
725
|
+
restrictions: import('convex/values').VObject<{
|
|
726
|
+
currency_options?: Record<string, {
|
|
727
|
+
minimum_amount?: number | null | undefined;
|
|
728
|
+
}> | null | undefined;
|
|
729
|
+
minimum_amount?: number | null | undefined;
|
|
730
|
+
first_time_transaction?: boolean | undefined;
|
|
731
|
+
minimum_amount_currency?: string | null | undefined;
|
|
732
|
+
}, {
|
|
733
|
+
currency_options: import('convex/values').VUnion<Record<string, {
|
|
734
|
+
minimum_amount?: number | null | undefined;
|
|
735
|
+
}> | null | undefined, [import('convex/values').VRecord<Record<string, {
|
|
736
|
+
minimum_amount?: number | null | undefined;
|
|
737
|
+
}>, import('convex/values').VString<string, "required">, import('convex/values').VObject<{
|
|
738
|
+
minimum_amount?: number | null | undefined;
|
|
739
|
+
}, {
|
|
740
|
+
minimum_amount: import('convex/values').VUnion<number | null | undefined, [import('convex/values').VFloat64<number, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
741
|
+
}, "required", "minimum_amount">, "required", string>, import('convex/values').VNull<null, "required">], "optional", string>;
|
|
742
|
+
first_time_transaction: import('convex/values').VBoolean<boolean | undefined, "optional">;
|
|
743
|
+
minimum_amount: import('convex/values').VUnion<number | null | undefined, [import('convex/values').VFloat64<number, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
744
|
+
minimum_amount_currency: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
745
|
+
}, "required", "currency_options" | `currency_options.${string}` | "minimum_amount" | "first_time_transaction" | "minimum_amount_currency">;
|
|
746
|
+
times_redeemed: import('convex/values').VFloat64<number, "required">;
|
|
747
|
+
}, "required", "object" | "id" | "customer" | "metadata" | "created" | "expires_at" | "livemode" | `metadata.${string}` | "max_redemptions" | "times_redeemed" | "coupon" | "code" | "active" | "restrictions" | "coupon.object" | "coupon.id" | "coupon.currency" | "coupon.metadata" | "coupon.created" | "coupon.livemode" | `coupon.metadata.${string}` | "coupon.amount_off" | "coupon.duration" | "coupon.name" | "coupon.percent_off" | "coupon.applies_to" | "coupon.currency_options" | "coupon.duration_in_months" | "coupon.max_redemptions" | "coupon.redeem_by" | "coupon.times_redeemed" | "coupon.valid" | "coupon.applies_to.products" | `coupon.currency_options.${string}` | "restrictions.currency_options" | `restrictions.currency_options.${string}` | "restrictions.minimum_amount" | "restrictions.first_time_transaction" | "restrictions.minimum_amount_currency">;
|
|
748
|
+
last_synced_at: import('convex/values').VFloat64<number, "required">;
|
|
749
|
+
}, "required", "stripe" | "last_synced_at" | "stripe.object" | "stripe.id" | "stripe.metadata" | "stripe.created" | "stripe.livemode" | `stripe.metadata.${string}` | "stripe.active" | "stripe.max_redemptions" | "stripe.times_redeemed" | "promotionCodeId" | "stripe.customer" | "stripe.expires_at" | "stripe.coupon" | "stripe.code" | "stripe.restrictions" | "stripe.coupon.object" | "stripe.coupon.id" | "stripe.coupon.currency" | "stripe.coupon.metadata" | "stripe.coupon.created" | "stripe.coupon.livemode" | `stripe.coupon.metadata.${string}` | "stripe.coupon.amount_off" | "stripe.coupon.duration" | "stripe.coupon.name" | "stripe.coupon.percent_off" | "stripe.coupon.applies_to" | "stripe.coupon.currency_options" | "stripe.coupon.duration_in_months" | "stripe.coupon.max_redemptions" | "stripe.coupon.redeem_by" | "stripe.coupon.times_redeemed" | "stripe.coupon.valid" | "stripe.coupon.applies_to.products" | `stripe.coupon.currency_options.${string}` | "stripe.restrictions.currency_options" | `stripe.restrictions.currency_options.${string}` | "stripe.restrictions.minimum_amount" | "stripe.restrictions.first_time_transaction" | "stripe.restrictions.minimum_amount_currency">, {
|
|
750
|
+
byPromotionCodeId: ["promotionCodeId", "_creationTime"];
|
|
751
|
+
}, {}, {}>;
|
|
752
|
+
stripe_payouts: import('convex/server').TableDefinition<import('convex/values').VObject<{
|
|
753
|
+
stripe: {
|
|
754
|
+
currency?: string | null | undefined;
|
|
755
|
+
metadata?: Record<string, string | number | null> | null | undefined;
|
|
756
|
+
description?: string | null | undefined;
|
|
757
|
+
statement_descriptor?: string | null | undefined;
|
|
758
|
+
application_fee_amount?: number | null | undefined;
|
|
759
|
+
application_only?: string | null | undefined;
|
|
760
|
+
balance_transaction?: string | null | undefined;
|
|
761
|
+
destination?: string | null | undefined;
|
|
762
|
+
failure_balance_transaction?: string | null | undefined;
|
|
763
|
+
failure_code?: string | null | undefined;
|
|
764
|
+
failure_message?: string | null | undefined;
|
|
765
|
+
original_payout?: string | null | undefined;
|
|
766
|
+
payout_method?: string | null | undefined;
|
|
767
|
+
reconciliation_status?: "completed" | "in_progress" | "not_applicable" | undefined;
|
|
768
|
+
reversed_by?: string | null | undefined;
|
|
769
|
+
trace_id?: {
|
|
770
|
+
value?: string | null | undefined;
|
|
771
|
+
status: string;
|
|
772
|
+
} | null | undefined;
|
|
773
|
+
object: string;
|
|
774
|
+
type: "card" | "bank_account";
|
|
775
|
+
id: string;
|
|
776
|
+
status: string;
|
|
777
|
+
created: number;
|
|
778
|
+
livemode: boolean;
|
|
779
|
+
amount: number;
|
|
780
|
+
automatic: boolean;
|
|
781
|
+
arrival_date: number;
|
|
782
|
+
method: string;
|
|
783
|
+
source_type: string;
|
|
784
|
+
};
|
|
785
|
+
last_synced_at: number;
|
|
786
|
+
payoutId: string;
|
|
787
|
+
}, {
|
|
788
|
+
payoutId: import('convex/values').VString<string, "required">;
|
|
789
|
+
stripe: import('convex/values').VObject<{
|
|
790
|
+
currency?: string | null | undefined;
|
|
791
|
+
metadata?: Record<string, string | number | null> | null | undefined;
|
|
792
|
+
description?: string | null | undefined;
|
|
793
|
+
statement_descriptor?: string | null | undefined;
|
|
794
|
+
application_fee_amount?: number | null | undefined;
|
|
795
|
+
application_only?: string | null | undefined;
|
|
796
|
+
balance_transaction?: string | null | undefined;
|
|
797
|
+
destination?: string | null | undefined;
|
|
798
|
+
failure_balance_transaction?: string | null | undefined;
|
|
799
|
+
failure_code?: string | null | undefined;
|
|
800
|
+
failure_message?: string | null | undefined;
|
|
801
|
+
original_payout?: string | null | undefined;
|
|
802
|
+
payout_method?: string | null | undefined;
|
|
803
|
+
reconciliation_status?: "completed" | "in_progress" | "not_applicable" | undefined;
|
|
804
|
+
reversed_by?: string | null | undefined;
|
|
805
|
+
trace_id?: {
|
|
806
|
+
value?: string | null | undefined;
|
|
807
|
+
status: string;
|
|
808
|
+
} | null | undefined;
|
|
809
|
+
object: string;
|
|
810
|
+
type: "card" | "bank_account";
|
|
811
|
+
id: string;
|
|
812
|
+
status: string;
|
|
813
|
+
created: number;
|
|
814
|
+
livemode: boolean;
|
|
815
|
+
amount: number;
|
|
816
|
+
automatic: boolean;
|
|
817
|
+
arrival_date: number;
|
|
818
|
+
method: string;
|
|
819
|
+
source_type: string;
|
|
820
|
+
}, {
|
|
821
|
+
id: import('convex/values').VString<string, "required">;
|
|
822
|
+
amount: import('convex/values').VFloat64<number, "required">;
|
|
823
|
+
arrival_date: import('convex/values').VFloat64<number, "required">;
|
|
824
|
+
currency: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
825
|
+
description: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
826
|
+
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>;
|
|
827
|
+
statement_descriptor: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
828
|
+
status: import('convex/values').VString<string, "required">;
|
|
829
|
+
object: import('convex/values').VString<string, "required">;
|
|
830
|
+
application_only: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
831
|
+
application_fee_amount: import('convex/values').VUnion<number | null | undefined, [import('convex/values').VFloat64<number, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
832
|
+
automatic: import('convex/values').VBoolean<boolean, "required">;
|
|
833
|
+
balance_transaction: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
834
|
+
created: import('convex/values').VFloat64<number, "required">;
|
|
835
|
+
destination: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
836
|
+
failure_balance_transaction: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
837
|
+
failure_code: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VLiteral<"account_closed", "required">, import('convex/values').VLiteral<"account_frozen", "required">, import('convex/values').VLiteral<"bank_account_restricted", "required">, import('convex/values').VLiteral<"bank_ownership_changed", "required">, import('convex/values').VLiteral<"could_not_process", "required">, import('convex/values').VLiteral<"debit_not_authorized", "required">, import('convex/values').VLiteral<"declined", "required">, import('convex/values').VLiteral<"incorrect_account_holder_address", "required">, import('convex/values').VLiteral<"incorrect_account_holder_name", "required">, import('convex/values').VLiteral<"incorrect_account_holder_tax_id", "required">, import('convex/values').VLiteral<"incorrect_account_type", "required">, import('convex/values').VLiteral<"insufficient_funds", "required">, import('convex/values').VLiteral<"invalid_account_number", "required">, import('convex/values').VLiteral<"invalid_account_number_length", "required">, import('convex/values').VLiteral<"invalid_currency", "required">, import('convex/values').VLiteral<"no_account", "required">, import('convex/values').VLiteral<"unsupported_card", "required">, import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
838
|
+
failure_message: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
839
|
+
livemode: import('convex/values').VBoolean<boolean, "required">;
|
|
840
|
+
method: import('convex/values').VString<string, "required">;
|
|
841
|
+
original_payout: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
842
|
+
payout_method: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
843
|
+
reconciliation_status: import('convex/values').VUnion<"completed" | "in_progress" | "not_applicable" | undefined, [import('convex/values').VLiteral<"completed", "required">, import('convex/values').VLiteral<"in_progress", "required">, import('convex/values').VLiteral<"not_applicable", "required">], "optional", never>;
|
|
844
|
+
reversed_by: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
845
|
+
source_type: import('convex/values').VString<string, "required">;
|
|
846
|
+
trace_id: import('convex/values').VUnion<{
|
|
847
|
+
value?: string | null | undefined;
|
|
848
|
+
status: string;
|
|
849
|
+
} | null | undefined, [import('convex/values').VNull<null, "required">, import('convex/values').VObject<{
|
|
850
|
+
value?: string | null | undefined;
|
|
851
|
+
status: string;
|
|
852
|
+
}, {
|
|
853
|
+
status: import('convex/values').VString<string, "required">;
|
|
854
|
+
value: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
855
|
+
}, "required", "status" | "value">], "optional", "status" | "value">;
|
|
856
|
+
type: import('convex/values').VUnion<"card" | "bank_account", [import('convex/values').VLiteral<"bank_account", "required">, import('convex/values').VLiteral<"card", "required">], "required", never>;
|
|
857
|
+
}, "required", "object" | "type" | "id" | "currency" | "metadata" | "status" | "created" | "livemode" | `metadata.${string}` | "description" | "statement_descriptor" | "amount" | "automatic" | "application_fee_amount" | "arrival_date" | "application_only" | "balance_transaction" | "destination" | "failure_balance_transaction" | "failure_code" | "failure_message" | "method" | "original_payout" | "payout_method" | "reconciliation_status" | "reversed_by" | "source_type" | "trace_id" | "trace_id.status" | "trace_id.value">;
|
|
858
|
+
last_synced_at: import('convex/values').VFloat64<number, "required">;
|
|
859
|
+
}, "required", "stripe" | "last_synced_at" | "stripe.object" | "stripe.id" | "stripe.metadata" | "stripe.created" | "stripe.livemode" | `stripe.metadata.${string}` | "stripe.description" | "stripe.statement_descriptor" | "stripe.type" | "stripe.currency" | "payoutId" | "stripe.status" | "stripe.amount" | "stripe.automatic" | "stripe.application_fee_amount" | "stripe.arrival_date" | "stripe.application_only" | "stripe.balance_transaction" | "stripe.destination" | "stripe.failure_balance_transaction" | "stripe.failure_code" | "stripe.failure_message" | "stripe.method" | "stripe.original_payout" | "stripe.payout_method" | "stripe.reconciliation_status" | "stripe.reversed_by" | "stripe.source_type" | "stripe.trace_id" | "stripe.trace_id.status" | "stripe.trace_id.value">, {
|
|
860
|
+
byPayoutId: ["payoutId", "_creationTime"];
|
|
861
|
+
}, {}, {}>;
|
|
862
|
+
stripe_refunds: import('convex/server').TableDefinition<import('convex/values').VObject<{
|
|
863
|
+
stripe: {
|
|
864
|
+
metadata?: Record<string, string | number | null> | null | undefined;
|
|
865
|
+
payment_intent?: string | null | undefined;
|
|
866
|
+
status?: string | null | undefined;
|
|
867
|
+
description?: string | null | undefined;
|
|
868
|
+
receipt_number?: string | null | undefined;
|
|
869
|
+
charge?: string | null | undefined;
|
|
870
|
+
next_action?: any;
|
|
871
|
+
balance_transaction?: string | null | undefined;
|
|
872
|
+
failure_balance_transaction?: string | null | undefined;
|
|
873
|
+
reason?: string | null | undefined;
|
|
874
|
+
destination_details?: any;
|
|
875
|
+
failure_reason?: string | null | undefined;
|
|
876
|
+
instructions_email?: string | null | undefined;
|
|
877
|
+
pending_reason?: string | null | undefined;
|
|
878
|
+
source_transfer_reversal?: string | null | undefined;
|
|
879
|
+
transfer_reversal?: string | null | undefined;
|
|
880
|
+
object: string;
|
|
881
|
+
id: string;
|
|
882
|
+
currency: string;
|
|
883
|
+
created: number;
|
|
884
|
+
amount: number;
|
|
885
|
+
};
|
|
886
|
+
last_synced_at: number;
|
|
887
|
+
refundId: string;
|
|
888
|
+
}, {
|
|
889
|
+
refundId: import('convex/values').VString<string, "required">;
|
|
890
|
+
stripe: import('convex/values').VObject<{
|
|
891
|
+
metadata?: Record<string, string | number | null> | null | undefined;
|
|
892
|
+
payment_intent?: string | null | undefined;
|
|
893
|
+
status?: string | null | undefined;
|
|
894
|
+
description?: string | null | undefined;
|
|
895
|
+
receipt_number?: string | null | undefined;
|
|
896
|
+
charge?: string | null | undefined;
|
|
897
|
+
next_action?: any;
|
|
898
|
+
balance_transaction?: string | null | undefined;
|
|
899
|
+
failure_balance_transaction?: string | null | undefined;
|
|
900
|
+
reason?: string | null | undefined;
|
|
901
|
+
destination_details?: any;
|
|
902
|
+
failure_reason?: string | null | undefined;
|
|
903
|
+
instructions_email?: string | null | undefined;
|
|
904
|
+
pending_reason?: string | null | undefined;
|
|
905
|
+
source_transfer_reversal?: string | null | undefined;
|
|
906
|
+
transfer_reversal?: string | null | undefined;
|
|
907
|
+
object: string;
|
|
908
|
+
id: string;
|
|
909
|
+
currency: string;
|
|
910
|
+
created: number;
|
|
911
|
+
amount: number;
|
|
912
|
+
}, {
|
|
913
|
+
id: import('convex/values').VString<string, "required">;
|
|
914
|
+
amount: import('convex/values').VFloat64<number, "required">;
|
|
915
|
+
charge: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
916
|
+
currency: import('convex/values').VString<string, "required">;
|
|
917
|
+
description: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
918
|
+
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>;
|
|
919
|
+
payment_intent: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
920
|
+
reason: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
921
|
+
status: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
922
|
+
object: import('convex/values').VString<string, "required">;
|
|
923
|
+
balance_transaction: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
924
|
+
created: import('convex/values').VFloat64<number, "required">;
|
|
925
|
+
destination_details: import('convex/values').VUnion<any, [import('convex/values').VAny<any, "required", string>, import('convex/values').VObject<{}, {}, "required", never>, import('convex/values').VNull<null, "required">], "optional", string>;
|
|
926
|
+
failure_balance_transaction: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
927
|
+
failure_reason: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
928
|
+
instructions_email: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
929
|
+
next_action: import('convex/values').VUnion<any, [import('convex/values').VAny<any, "required", string>, import('convex/values').VObject<{}, {}, "required", never>, import('convex/values').VNull<null, "required">], "optional", string>;
|
|
930
|
+
pending_reason: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
931
|
+
receipt_number: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
932
|
+
source_transfer_reversal: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
933
|
+
transfer_reversal: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
934
|
+
}, "required", "object" | "id" | "currency" | "metadata" | "payment_intent" | "status" | "created" | `metadata.${string}` | "description" | "receipt_number" | "charge" | "amount" | "next_action" | `next_action.${string}` | "balance_transaction" | "failure_balance_transaction" | "reason" | "destination_details" | "failure_reason" | "instructions_email" | "pending_reason" | "source_transfer_reversal" | "transfer_reversal" | `destination_details.${string}`>;
|
|
935
|
+
last_synced_at: import('convex/values').VFloat64<number, "required">;
|
|
936
|
+
}, "required", "stripe" | "last_synced_at" | "stripe.object" | "stripe.id" | "stripe.metadata" | "stripe.created" | `stripe.metadata.${string}` | "stripe.description" | "stripe.currency" | "stripe.status" | "stripe.amount" | "stripe.balance_transaction" | "stripe.failure_balance_transaction" | "refundId" | "stripe.payment_intent" | "stripe.receipt_number" | "stripe.charge" | "stripe.next_action" | `stripe.next_action.${string}` | "stripe.reason" | "stripe.destination_details" | "stripe.failure_reason" | "stripe.instructions_email" | "stripe.pending_reason" | "stripe.source_transfer_reversal" | "stripe.transfer_reversal" | `stripe.destination_details.${string}`>, {
|
|
937
|
+
byRefundId: ["refundId", "_creationTime"];
|
|
938
|
+
}, {}, {}>;
|
|
939
|
+
stripe_payment_intents: import('convex/server').TableDefinition<import('convex/values').VObject<{
|
|
940
|
+
stripe: {
|
|
941
|
+
customer?: string | null | undefined;
|
|
942
|
+
metadata?: Record<string, string | number | null> | null | undefined;
|
|
943
|
+
client_secret?: string | null | undefined;
|
|
944
|
+
payment_method_configuration_details?: {
|
|
945
|
+
parent?: string | null | undefined;
|
|
946
|
+
id: string;
|
|
947
|
+
} | null | undefined;
|
|
948
|
+
payment_method_options?: any;
|
|
949
|
+
presentment_details?: any;
|
|
950
|
+
description?: string | null | undefined;
|
|
951
|
+
shipping?: any;
|
|
952
|
+
payment_method?: string | null | undefined;
|
|
953
|
+
application?: string | null | undefined;
|
|
954
|
+
on_behalf_of?: string | null | undefined;
|
|
955
|
+
statement_descriptor?: string | null | undefined;
|
|
956
|
+
last_payment_error?: {
|
|
957
|
+
payment_method?: any;
|
|
958
|
+
advice_code?: string | null | undefined;
|
|
959
|
+
charge?: string | null | undefined;
|
|
960
|
+
code?: string | null | undefined;
|
|
961
|
+
decline_code?: string | null | undefined;
|
|
962
|
+
doc_url?: string | null | undefined;
|
|
963
|
+
message?: string | null | undefined;
|
|
964
|
+
network_advice_code?: string | null | undefined;
|
|
965
|
+
network_decline_code?: string | null | undefined;
|
|
966
|
+
param?: string | null | undefined;
|
|
967
|
+
payment_method_type?: string | null | undefined;
|
|
968
|
+
last_payment_error?: any;
|
|
969
|
+
latest_charge?: string | null | undefined;
|
|
970
|
+
type: "api_error" | "card_error" | "idempotency_error" | "invalid_request_error";
|
|
971
|
+
} | null | undefined;
|
|
972
|
+
latest_charge?: string | null | undefined;
|
|
973
|
+
processing?: any;
|
|
974
|
+
automatic_payment_methods?: {
|
|
975
|
+
allow_redirects?: "always" | "never" | null | undefined;
|
|
976
|
+
enabled: boolean;
|
|
977
|
+
} | null | undefined;
|
|
978
|
+
next_action?: any;
|
|
979
|
+
receipt_email?: string | null | undefined;
|
|
980
|
+
statement_descriptor_suffix?: string | null | undefined;
|
|
981
|
+
amount_details?: {
|
|
982
|
+
tip?: {
|
|
983
|
+
amount?: number | null | undefined;
|
|
984
|
+
} | null | undefined;
|
|
985
|
+
} | null | undefined;
|
|
986
|
+
application_fee_amount?: number | null | undefined;
|
|
987
|
+
canceled_at?: number | null | undefined;
|
|
988
|
+
cancellation_reason?: "expired" | "abandoned" | "automatic" | "duplicate" | "failed_invoice" | "fraudulent" | "requested_by_customer" | "void_invoice" | null | undefined;
|
|
989
|
+
review?: string | null | undefined;
|
|
990
|
+
transfer_data?: any;
|
|
991
|
+
transfer_group?: string | null | undefined;
|
|
992
|
+
object: string;
|
|
993
|
+
id: string;
|
|
994
|
+
currency: string | null;
|
|
995
|
+
status: "canceled" | "processing" | "requires_action" | "requires_capture" | "requires_confirmation" | "requires_payment_method" | "succeeded";
|
|
996
|
+
created: number;
|
|
997
|
+
livemode: boolean;
|
|
998
|
+
payment_method_types: string[];
|
|
999
|
+
amount: number;
|
|
1000
|
+
setup_future_usage: "off_session" | "on_session" | null;
|
|
1001
|
+
amount_capturable: number;
|
|
1002
|
+
amount_received: number;
|
|
1003
|
+
capture_method: "manual" | "automatic" | "automatic_sync" | "automatic_async";
|
|
1004
|
+
confirmation_method: "manual" | "automatic";
|
|
1005
|
+
excluded_payment_method_types: string[] | null;
|
|
1006
|
+
};
|
|
1007
|
+
last_synced_at: number;
|
|
1008
|
+
paymentIntentId: string;
|
|
1009
|
+
}, {
|
|
1010
|
+
paymentIntentId: import('convex/values').VString<string, "required">;
|
|
1011
|
+
stripe: import('convex/values').VObject<{
|
|
1012
|
+
customer?: string | null | undefined;
|
|
1013
|
+
metadata?: Record<string, string | number | null> | null | undefined;
|
|
1014
|
+
client_secret?: string | null | undefined;
|
|
1015
|
+
payment_method_configuration_details?: {
|
|
1016
|
+
parent?: string | null | undefined;
|
|
1017
|
+
id: string;
|
|
1018
|
+
} | null | undefined;
|
|
1019
|
+
payment_method_options?: any;
|
|
1020
|
+
presentment_details?: any;
|
|
1021
|
+
description?: string | null | undefined;
|
|
1022
|
+
shipping?: any;
|
|
1023
|
+
payment_method?: string | null | undefined;
|
|
1024
|
+
application?: string | null | undefined;
|
|
1025
|
+
on_behalf_of?: string | null | undefined;
|
|
1026
|
+
statement_descriptor?: string | null | undefined;
|
|
1027
|
+
last_payment_error?: {
|
|
1028
|
+
payment_method?: any;
|
|
1029
|
+
advice_code?: string | null | undefined;
|
|
1030
|
+
charge?: string | null | undefined;
|
|
1031
|
+
code?: string | null | undefined;
|
|
1032
|
+
decline_code?: string | null | undefined;
|
|
1033
|
+
doc_url?: string | null | undefined;
|
|
1034
|
+
message?: string | null | undefined;
|
|
1035
|
+
network_advice_code?: string | null | undefined;
|
|
1036
|
+
network_decline_code?: string | null | undefined;
|
|
1037
|
+
param?: string | null | undefined;
|
|
1038
|
+
payment_method_type?: string | null | undefined;
|
|
1039
|
+
last_payment_error?: any;
|
|
1040
|
+
latest_charge?: string | null | undefined;
|
|
1041
|
+
type: "api_error" | "card_error" | "idempotency_error" | "invalid_request_error";
|
|
1042
|
+
} | null | undefined;
|
|
1043
|
+
latest_charge?: string | null | undefined;
|
|
1044
|
+
processing?: any;
|
|
1045
|
+
automatic_payment_methods?: {
|
|
1046
|
+
allow_redirects?: "always" | "never" | null | undefined;
|
|
1047
|
+
enabled: boolean;
|
|
1048
|
+
} | null | undefined;
|
|
1049
|
+
next_action?: any;
|
|
1050
|
+
receipt_email?: string | null | undefined;
|
|
1051
|
+
statement_descriptor_suffix?: string | null | undefined;
|
|
1052
|
+
amount_details?: {
|
|
1053
|
+
tip?: {
|
|
1054
|
+
amount?: number | null | undefined;
|
|
1055
|
+
} | null | undefined;
|
|
1056
|
+
} | null | undefined;
|
|
1057
|
+
application_fee_amount?: number | null | undefined;
|
|
1058
|
+
canceled_at?: number | null | undefined;
|
|
1059
|
+
cancellation_reason?: "expired" | "abandoned" | "automatic" | "duplicate" | "failed_invoice" | "fraudulent" | "requested_by_customer" | "void_invoice" | null | undefined;
|
|
1060
|
+
review?: string | null | undefined;
|
|
1061
|
+
transfer_data?: any;
|
|
1062
|
+
transfer_group?: string | null | undefined;
|
|
1063
|
+
object: string;
|
|
1064
|
+
id: string;
|
|
1065
|
+
currency: string | null;
|
|
1066
|
+
status: "canceled" | "processing" | "requires_action" | "requires_capture" | "requires_confirmation" | "requires_payment_method" | "succeeded";
|
|
1067
|
+
created: number;
|
|
1068
|
+
livemode: boolean;
|
|
1069
|
+
payment_method_types: string[];
|
|
1070
|
+
amount: number;
|
|
1071
|
+
setup_future_usage: "off_session" | "on_session" | null;
|
|
1072
|
+
amount_capturable: number;
|
|
1073
|
+
amount_received: number;
|
|
1074
|
+
capture_method: "manual" | "automatic" | "automatic_sync" | "automatic_async";
|
|
1075
|
+
confirmation_method: "manual" | "automatic";
|
|
1076
|
+
excluded_payment_method_types: string[] | null;
|
|
1077
|
+
}, {
|
|
1078
|
+
id: import('convex/values').VString<string, "required">;
|
|
1079
|
+
amount: import('convex/values').VFloat64<number, "required">;
|
|
1080
|
+
automatic_payment_methods: import('convex/values').VUnion<{
|
|
1081
|
+
allow_redirects?: "always" | "never" | null | undefined;
|
|
1082
|
+
enabled: boolean;
|
|
1083
|
+
} | null | undefined, [import('convex/values').VObject<{
|
|
1084
|
+
allow_redirects?: "always" | "never" | null | undefined;
|
|
1085
|
+
enabled: boolean;
|
|
1086
|
+
}, {
|
|
1087
|
+
allow_redirects: import('convex/values').VUnion<"always" | "never" | null | undefined, [import('convex/values').VLiteral<"always", "required">, import('convex/values').VLiteral<"never", "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
1088
|
+
enabled: import('convex/values').VBoolean<boolean, "required">;
|
|
1089
|
+
}, "required", "allow_redirects" | "enabled">, import('convex/values').VNull<null, "required">], "optional", "allow_redirects" | "enabled">;
|
|
1090
|
+
client_secret: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
1091
|
+
currency: import('convex/values').VUnion<string | null, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "required", never>;
|
|
1092
|
+
customer: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
1093
|
+
description: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
1094
|
+
last_payment_error: import('convex/values').VUnion<{
|
|
1095
|
+
payment_method?: any;
|
|
1096
|
+
advice_code?: string | null | undefined;
|
|
1097
|
+
charge?: string | null | undefined;
|
|
1098
|
+
code?: string | null | undefined;
|
|
1099
|
+
decline_code?: string | null | undefined;
|
|
1100
|
+
doc_url?: string | null | undefined;
|
|
1101
|
+
message?: string | null | undefined;
|
|
1102
|
+
network_advice_code?: string | null | undefined;
|
|
1103
|
+
network_decline_code?: string | null | undefined;
|
|
1104
|
+
param?: string | null | undefined;
|
|
1105
|
+
payment_method_type?: string | null | undefined;
|
|
1106
|
+
last_payment_error?: any;
|
|
1107
|
+
latest_charge?: string | null | undefined;
|
|
1108
|
+
type: "api_error" | "card_error" | "idempotency_error" | "invalid_request_error";
|
|
1109
|
+
} | null | undefined, [import('convex/values').VObject<{
|
|
1110
|
+
payment_method?: any;
|
|
1111
|
+
advice_code?: string | null | undefined;
|
|
1112
|
+
charge?: string | null | undefined;
|
|
1113
|
+
code?: string | null | undefined;
|
|
1114
|
+
decline_code?: string | null | undefined;
|
|
1115
|
+
doc_url?: string | null | undefined;
|
|
1116
|
+
message?: string | null | undefined;
|
|
1117
|
+
network_advice_code?: string | null | undefined;
|
|
1118
|
+
network_decline_code?: string | null | undefined;
|
|
1119
|
+
param?: string | null | undefined;
|
|
1120
|
+
payment_method_type?: string | null | undefined;
|
|
1121
|
+
last_payment_error?: any;
|
|
1122
|
+
latest_charge?: string | null | undefined;
|
|
1123
|
+
type: "api_error" | "card_error" | "idempotency_error" | "invalid_request_error";
|
|
1124
|
+
}, {
|
|
1125
|
+
advice_code: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
1126
|
+
charge: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
1127
|
+
code: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
1128
|
+
decline_code: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
1129
|
+
doc_url: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
1130
|
+
message: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
1131
|
+
network_advice_code: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
1132
|
+
network_decline_code: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
1133
|
+
param: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
1134
|
+
payment_method: import('convex/values').VAny<any, "optional", string>;
|
|
1135
|
+
payment_method_type: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
1136
|
+
last_payment_error: import('convex/values').VAny<any, "optional", string>;
|
|
1137
|
+
type: import('convex/values').VUnion<"api_error" | "card_error" | "idempotency_error" | "invalid_request_error", [import('convex/values').VLiteral<"api_error", "required">, import('convex/values').VLiteral<"card_error", "required">, import('convex/values').VLiteral<"idempotency_error", "required">, import('convex/values').VLiteral<"invalid_request_error", "required">], "required", never>;
|
|
1138
|
+
latest_charge: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
1139
|
+
}, "required", "type" | "payment_method" | "advice_code" | "charge" | "code" | "decline_code" | "doc_url" | "message" | "network_advice_code" | "network_decline_code" | "param" | "payment_method_type" | "last_payment_error" | "latest_charge" | `payment_method.${string}` | `last_payment_error.${string}`>, import('convex/values').VNull<null, "required">], "optional", "type" | "payment_method" | "advice_code" | "charge" | "code" | "decline_code" | "doc_url" | "message" | "network_advice_code" | "network_decline_code" | "param" | "payment_method_type" | "last_payment_error" | "latest_charge" | `payment_method.${string}` | `last_payment_error.${string}`>;
|
|
1140
|
+
latest_charge: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
1141
|
+
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>;
|
|
1142
|
+
next_action: import('convex/values').VAny<any, "optional", string>;
|
|
1143
|
+
payment_method: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
1144
|
+
receipt_email: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
1145
|
+
setup_future_usage: import('convex/values').VUnion<"off_session" | "on_session" | null, [import('convex/values').VLiteral<"off_session", "required">, import('convex/values').VLiteral<"on_session", "required">, import('convex/values').VNull<null, "required">], "required", never>;
|
|
1146
|
+
shipping: import('convex/values').VAny<any, "optional", string>;
|
|
1147
|
+
statement_descriptor: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
1148
|
+
statement_descriptor_suffix: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
1149
|
+
status: import('convex/values').VUnion<"canceled" | "processing" | "requires_action" | "requires_capture" | "requires_confirmation" | "requires_payment_method" | "succeeded", [import('convex/values').VLiteral<"canceled", "required">, import('convex/values').VLiteral<"processing", "required">, import('convex/values').VLiteral<"requires_action", "required">, import('convex/values').VLiteral<"requires_capture", "required">, import('convex/values').VLiteral<"requires_confirmation", "required">, import('convex/values').VLiteral<"requires_payment_method", "required">, import('convex/values').VLiteral<"succeeded", "required">], "required", never>;
|
|
1150
|
+
object: import('convex/values').VString<string, "required">;
|
|
1151
|
+
amount_capturable: import('convex/values').VFloat64<number, "required">;
|
|
1152
|
+
amount_details: import('convex/values').VUnion<{
|
|
1153
|
+
tip?: {
|
|
1154
|
+
amount?: number | null | undefined;
|
|
1155
|
+
} | null | undefined;
|
|
1156
|
+
} | null | undefined, [import('convex/values').VObject<{
|
|
1157
|
+
tip?: {
|
|
1158
|
+
amount?: number | null | undefined;
|
|
1159
|
+
} | null | undefined;
|
|
1160
|
+
}, {
|
|
1161
|
+
tip: import('convex/values').VUnion<{
|
|
1162
|
+
amount?: number | null | undefined;
|
|
1163
|
+
} | null | undefined, [import('convex/values').VObject<{
|
|
1164
|
+
amount?: number | null | undefined;
|
|
1165
|
+
}, {
|
|
1166
|
+
amount: import('convex/values').VUnion<number | null | undefined, [import('convex/values').VFloat64<number, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
1167
|
+
}, "required", "amount">, import('convex/values').VNull<null, "required">], "optional", "amount">;
|
|
1168
|
+
}, "required", "tip" | "tip.amount">, import('convex/values').VNull<null, "required">], "optional", "tip" | "tip.amount">;
|
|
1169
|
+
amount_received: import('convex/values').VFloat64<number, "required">;
|
|
1170
|
+
application: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
1171
|
+
application_fee_amount: import('convex/values').VUnion<number | null | undefined, [import('convex/values').VFloat64<number, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
1172
|
+
canceled_at: import('convex/values').VUnion<number | null | undefined, [import('convex/values').VFloat64<number, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
1173
|
+
cancellation_reason: import('convex/values').VUnion<"expired" | "abandoned" | "automatic" | "duplicate" | "failed_invoice" | "fraudulent" | "requested_by_customer" | "void_invoice" | null | undefined, [import('convex/values').VLiteral<"abandoned", "required">, import('convex/values').VLiteral<"automatic", "required">, import('convex/values').VLiteral<"duplicate", "required">, import('convex/values').VLiteral<"expired", "required">, import('convex/values').VLiteral<"failed_invoice", "required">, import('convex/values').VLiteral<"fraudulent", "required">, import('convex/values').VLiteral<"requested_by_customer", "required">, import('convex/values').VLiteral<"void_invoice", "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
1174
|
+
capture_method: import('convex/values').VUnion<"manual" | "automatic" | "automatic_sync" | "automatic_async", [import('convex/values').VLiteral<"automatic", "required">, import('convex/values').VLiteral<"automatic_sync", "required">, import('convex/values').VLiteral<"automatic_async", "required">, import('convex/values').VLiteral<"manual", "required">], "required", never>;
|
|
1175
|
+
confirmation_method: import('convex/values').VUnion<"manual" | "automatic", [import('convex/values').VLiteral<"automatic", "required">, import('convex/values').VLiteral<"manual", "required">], "required", never>;
|
|
1176
|
+
created: import('convex/values').VFloat64<number, "required">;
|
|
1177
|
+
excluded_payment_method_types: import('convex/values').VUnion<string[] | null, [import('convex/values').VArray<string[], import('convex/values').VString<string, "required">, "required">, import('convex/values').VNull<null, "required">], "required", never>;
|
|
1178
|
+
livemode: import('convex/values').VBoolean<boolean, "required">;
|
|
1179
|
+
on_behalf_of: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
1180
|
+
payment_method_configuration_details: import('convex/values').VUnion<{
|
|
1181
|
+
parent?: string | null | undefined;
|
|
1182
|
+
id: string;
|
|
1183
|
+
} | null | undefined, [import('convex/values').VObject<{
|
|
1184
|
+
parent?: string | null | undefined;
|
|
1185
|
+
id: string;
|
|
1186
|
+
}, {
|
|
1187
|
+
id: import('convex/values').VString<string, "required">;
|
|
1188
|
+
parent: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
1189
|
+
}, "required", "id" | "parent">, import('convex/values').VNull<null, "required">], "optional", "id" | "parent">;
|
|
1190
|
+
payment_method_options: import('convex/values').VAny<any, "optional", string>;
|
|
1191
|
+
payment_method_types: import('convex/values').VArray<string[], import('convex/values').VString<string, "required">, "required">;
|
|
1192
|
+
presentment_details: import('convex/values').VAny<any, "optional", string>;
|
|
1193
|
+
processing: import('convex/values').VAny<any, "optional", string>;
|
|
1194
|
+
review: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
1195
|
+
transfer_data: import('convex/values').VAny<any, "optional", string>;
|
|
1196
|
+
transfer_group: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
1197
|
+
}, "required", "object" | "id" | "currency" | "customer" | "metadata" | "status" | "client_secret" | "created" | "livemode" | "payment_method_configuration_details" | "payment_method_options" | "payment_method_types" | "presentment_details" | `metadata.${string}` | `payment_method_options.${string}` | `presentment_details.${string}` | "description" | "shipping" | "payment_method" | "application" | "on_behalf_of" | "statement_descriptor" | "last_payment_error" | "latest_charge" | "processing" | "amount" | "automatic_payment_methods" | "next_action" | "receipt_email" | "setup_future_usage" | "statement_descriptor_suffix" | "amount_capturable" | "amount_details" | "amount_received" | "application_fee_amount" | "canceled_at" | "cancellation_reason" | "capture_method" | "confirmation_method" | "excluded_payment_method_types" | "review" | "transfer_data" | "transfer_group" | "payment_method_configuration_details.id" | "payment_method_configuration_details.parent" | `shipping.${string}` | "last_payment_error.type" | "last_payment_error.payment_method" | "last_payment_error.advice_code" | "last_payment_error.charge" | "last_payment_error.code" | "last_payment_error.decline_code" | "last_payment_error.doc_url" | "last_payment_error.message" | "last_payment_error.network_advice_code" | "last_payment_error.network_decline_code" | "last_payment_error.param" | "last_payment_error.payment_method_type" | "last_payment_error.last_payment_error" | "last_payment_error.latest_charge" | `last_payment_error.payment_method.${string}` | `last_payment_error.last_payment_error.${string}` | `processing.${string}` | "automatic_payment_methods.allow_redirects" | "automatic_payment_methods.enabled" | `next_action.${string}` | "amount_details.tip" | "amount_details.tip.amount" | `transfer_data.${string}`>;
|
|
1198
|
+
last_synced_at: import('convex/values').VFloat64<number, "required">;
|
|
1199
|
+
}, "required", "stripe" | "last_synced_at" | "stripe.object" | "stripe.id" | "stripe.metadata" | "stripe.created" | "stripe.livemode" | `stripe.metadata.${string}` | "stripe.description" | "stripe.statement_descriptor" | "stripe.currency" | "stripe.shipping" | "stripe.customer" | "stripe.status" | "stripe.amount" | "stripe.application_fee_amount" | "stripe.next_action" | `stripe.next_action.${string}` | "paymentIntentId" | "stripe.client_secret" | "stripe.payment_method_configuration_details" | "stripe.payment_method_options" | "stripe.payment_method_types" | "stripe.presentment_details" | `stripe.payment_method_options.${string}` | `stripe.presentment_details.${string}` | "stripe.payment_method" | "stripe.application" | "stripe.on_behalf_of" | "stripe.last_payment_error" | "stripe.latest_charge" | "stripe.processing" | "stripe.automatic_payment_methods" | "stripe.receipt_email" | "stripe.setup_future_usage" | "stripe.statement_descriptor_suffix" | "stripe.amount_capturable" | "stripe.amount_details" | "stripe.amount_received" | "stripe.canceled_at" | "stripe.cancellation_reason" | "stripe.capture_method" | "stripe.confirmation_method" | "stripe.excluded_payment_method_types" | "stripe.review" | "stripe.transfer_data" | "stripe.transfer_group" | "stripe.payment_method_configuration_details.id" | "stripe.payment_method_configuration_details.parent" | `stripe.shipping.${string}` | "stripe.last_payment_error.type" | "stripe.last_payment_error.payment_method" | "stripe.last_payment_error.advice_code" | "stripe.last_payment_error.charge" | "stripe.last_payment_error.code" | "stripe.last_payment_error.decline_code" | "stripe.last_payment_error.doc_url" | "stripe.last_payment_error.message" | "stripe.last_payment_error.network_advice_code" | "stripe.last_payment_error.network_decline_code" | "stripe.last_payment_error.param" | "stripe.last_payment_error.payment_method_type" | "stripe.last_payment_error.last_payment_error" | "stripe.last_payment_error.latest_charge" | `stripe.last_payment_error.payment_method.${string}` | `stripe.last_payment_error.last_payment_error.${string}` | `stripe.processing.${string}` | "stripe.automatic_payment_methods.allow_redirects" | "stripe.automatic_payment_methods.enabled" | "stripe.amount_details.tip" | "stripe.amount_details.tip.amount" | `stripe.transfer_data.${string}`>, {
|
|
1200
|
+
byPaymentIntentId: ["paymentIntentId", "_creationTime"];
|
|
1201
|
+
}, {}, {}>;
|
|
1202
|
+
stripe_checkout_sessions: import('convex/server').TableDefinition<import('convex/values').VObject<{
|
|
1203
|
+
stripe: {
|
|
1204
|
+
subscription?: string | null | undefined;
|
|
1205
|
+
client_reference_id?: string | null | undefined;
|
|
1206
|
+
currency?: string | null | undefined;
|
|
1207
|
+
customer?: string | null | undefined;
|
|
1208
|
+
customer_email?: string | null | undefined;
|
|
1209
|
+
line_items?: any[] | null | undefined;
|
|
1210
|
+
metadata?: Record<string, string | number | null> | null | undefined;
|
|
1211
|
+
payment_intent?: string | null | undefined;
|
|
1212
|
+
return_url?: string | null | undefined;
|
|
1213
|
+
success_url?: string | null | undefined;
|
|
1214
|
+
ui_mode?: "custom" | "embedded" | "hosted" | null | undefined;
|
|
1215
|
+
url?: string | null | undefined;
|
|
1216
|
+
adaptive_pricing?: any;
|
|
1217
|
+
after_expiration?: any;
|
|
1218
|
+
allow_promotion_codes?: boolean | null | undefined;
|
|
1219
|
+
amount_subtotal?: number | null | undefined;
|
|
1220
|
+
amount_total?: number | null | undefined;
|
|
1221
|
+
billing_address_collection?: "required" | "auto" | null | undefined;
|
|
1222
|
+
cancel_url?: string | null | undefined;
|
|
1223
|
+
client_secret?: string | null | undefined;
|
|
1224
|
+
collected_information?: any;
|
|
1225
|
+
consent?: any;
|
|
1226
|
+
consent_collection?: any;
|
|
1227
|
+
currency_conversion?: any;
|
|
1228
|
+
customer_creation?: "always" | "if_required" | null | undefined;
|
|
1229
|
+
customer_details?: any;
|
|
1230
|
+
discounts?: any[] | null | undefined;
|
|
1231
|
+
invoice?: string | null | undefined;
|
|
1232
|
+
invoice_creation?: any;
|
|
1233
|
+
locale?: string | null | undefined;
|
|
1234
|
+
optional_items?: any[] | null | undefined;
|
|
1235
|
+
origin_context?: "mobile_app" | "web" | null | undefined;
|
|
1236
|
+
payment_link?: string | null | undefined;
|
|
1237
|
+
payment_method_collection?: "always" | "if_required" | null | undefined;
|
|
1238
|
+
payment_method_configuration_details?: any;
|
|
1239
|
+
payment_method_options?: any;
|
|
1240
|
+
permissions?: any;
|
|
1241
|
+
phone_number_collection?: any;
|
|
1242
|
+
presentment_details?: any;
|
|
1243
|
+
recovered_from?: string | null | undefined;
|
|
1244
|
+
redirect_on_completion?: "always" | "if_required" | "never" | null | undefined;
|
|
1245
|
+
saved_payment_method_options?: any;
|
|
1246
|
+
setup_intent?: string | null | undefined;
|
|
1247
|
+
shipping_address_collection?: any;
|
|
1248
|
+
shipping_cost?: any;
|
|
1249
|
+
submit_type?: "auto" | "book" | "donate" | "pay" | "subscribe" | null | undefined;
|
|
1250
|
+
tax_id_collection?: any;
|
|
1251
|
+
total_details?: any;
|
|
1252
|
+
wallet_options?: any;
|
|
1253
|
+
object: string;
|
|
1254
|
+
id: string;
|
|
1255
|
+
automatic_tax: any;
|
|
1256
|
+
mode: "payment" | "setup" | "subscription";
|
|
1257
|
+
payment_status: "no_payment_required" | "paid" | "unpaid";
|
|
1258
|
+
status: "complete" | "expired" | "open" | null;
|
|
1259
|
+
created: number;
|
|
1260
|
+
custom_fields: any[];
|
|
1261
|
+
custom_text: any;
|
|
1262
|
+
expires_at: number;
|
|
1263
|
+
livemode: boolean;
|
|
1264
|
+
payment_method_types: string[];
|
|
1265
|
+
shipping_options: any[];
|
|
1266
|
+
};
|
|
1267
|
+
last_synced_at: number;
|
|
1268
|
+
checkoutSessionId: string;
|
|
1269
|
+
}, {
|
|
1270
|
+
checkoutSessionId: import('convex/values').VString<string, "required">;
|
|
1271
|
+
stripe: import('convex/values').VObject<{
|
|
1272
|
+
subscription?: string | null | undefined;
|
|
1273
|
+
client_reference_id?: string | null | undefined;
|
|
1274
|
+
currency?: string | null | undefined;
|
|
1275
|
+
customer?: string | null | undefined;
|
|
1276
|
+
customer_email?: string | null | undefined;
|
|
1277
|
+
line_items?: any[] | null | undefined;
|
|
1278
|
+
metadata?: Record<string, string | number | null> | null | undefined;
|
|
1279
|
+
payment_intent?: string | null | undefined;
|
|
1280
|
+
return_url?: string | null | undefined;
|
|
1281
|
+
success_url?: string | null | undefined;
|
|
1282
|
+
ui_mode?: "custom" | "embedded" | "hosted" | null | undefined;
|
|
1283
|
+
url?: string | null | undefined;
|
|
1284
|
+
adaptive_pricing?: any;
|
|
1285
|
+
after_expiration?: any;
|
|
1286
|
+
allow_promotion_codes?: boolean | null | undefined;
|
|
1287
|
+
amount_subtotal?: number | null | undefined;
|
|
1288
|
+
amount_total?: number | null | undefined;
|
|
1289
|
+
billing_address_collection?: "required" | "auto" | null | undefined;
|
|
1290
|
+
cancel_url?: string | null | undefined;
|
|
1291
|
+
client_secret?: string | null | undefined;
|
|
1292
|
+
collected_information?: any;
|
|
1293
|
+
consent?: any;
|
|
1294
|
+
consent_collection?: any;
|
|
1295
|
+
currency_conversion?: any;
|
|
1296
|
+
customer_creation?: "always" | "if_required" | null | undefined;
|
|
1297
|
+
customer_details?: any;
|
|
1298
|
+
discounts?: any[] | null | undefined;
|
|
1299
|
+
invoice?: string | null | undefined;
|
|
1300
|
+
invoice_creation?: any;
|
|
1301
|
+
locale?: string | null | undefined;
|
|
1302
|
+
optional_items?: any[] | null | undefined;
|
|
1303
|
+
origin_context?: "mobile_app" | "web" | null | undefined;
|
|
1304
|
+
payment_link?: string | null | undefined;
|
|
1305
|
+
payment_method_collection?: "always" | "if_required" | null | undefined;
|
|
1306
|
+
payment_method_configuration_details?: any;
|
|
1307
|
+
payment_method_options?: any;
|
|
1308
|
+
permissions?: any;
|
|
1309
|
+
phone_number_collection?: any;
|
|
1310
|
+
presentment_details?: any;
|
|
1311
|
+
recovered_from?: string | null | undefined;
|
|
1312
|
+
redirect_on_completion?: "always" | "if_required" | "never" | null | undefined;
|
|
1313
|
+
saved_payment_method_options?: any;
|
|
1314
|
+
setup_intent?: string | null | undefined;
|
|
1315
|
+
shipping_address_collection?: any;
|
|
1316
|
+
shipping_cost?: any;
|
|
1317
|
+
submit_type?: "auto" | "book" | "donate" | "pay" | "subscribe" | null | undefined;
|
|
1318
|
+
tax_id_collection?: any;
|
|
1319
|
+
total_details?: any;
|
|
1320
|
+
wallet_options?: any;
|
|
1321
|
+
object: string;
|
|
1322
|
+
id: string;
|
|
1323
|
+
automatic_tax: any;
|
|
1324
|
+
mode: "payment" | "setup" | "subscription";
|
|
1325
|
+
payment_status: "no_payment_required" | "paid" | "unpaid";
|
|
1326
|
+
status: "complete" | "expired" | "open" | null;
|
|
1327
|
+
created: number;
|
|
1328
|
+
custom_fields: any[];
|
|
1329
|
+
custom_text: any;
|
|
1330
|
+
expires_at: number;
|
|
1331
|
+
livemode: boolean;
|
|
1332
|
+
payment_method_types: string[];
|
|
1333
|
+
shipping_options: any[];
|
|
1334
|
+
}, {
|
|
1335
|
+
id: import('convex/values').VString<string, "required">;
|
|
1336
|
+
automatic_tax: import('convex/values').VAny<any, "required", string>;
|
|
1337
|
+
client_reference_id: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
1338
|
+
currency: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
1339
|
+
customer: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
1340
|
+
customer_email: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
1341
|
+
line_items: 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>;
|
|
1342
|
+
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>;
|
|
1343
|
+
mode: import('convex/values').VUnion<"payment" | "setup" | "subscription", [import('convex/values').VLiteral<"payment", "required">, import('convex/values').VLiteral<"setup", "required">, import('convex/values').VLiteral<"subscription", "required">], "required", never>;
|
|
1344
|
+
payment_intent: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
1345
|
+
payment_status: import('convex/values').VUnion<"no_payment_required" | "paid" | "unpaid", [import('convex/values').VLiteral<"no_payment_required", "required">, import('convex/values').VLiteral<"paid", "required">, import('convex/values').VLiteral<"unpaid", "required">], "required", never>;
|
|
1346
|
+
return_url: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
1347
|
+
status: import('convex/values').VUnion<"complete" | "expired" | "open" | null, [import('convex/values').VLiteral<"complete", "required">, import('convex/values').VLiteral<"expired", "required">, import('convex/values').VLiteral<"open", "required">, import('convex/values').VNull<null, "required">], "required", never>;
|
|
1348
|
+
success_url: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
1349
|
+
ui_mode: import('convex/values').VUnion<"custom" | "embedded" | "hosted" | null | undefined, [import('convex/values').VLiteral<"custom", "required">, import('convex/values').VLiteral<"embedded", "required">, import('convex/values').VLiteral<"hosted", "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
1350
|
+
url: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
1351
|
+
object: import('convex/values').VString<string, "required">;
|
|
1352
|
+
adaptive_pricing: import('convex/values').VUnion<any, [import('convex/values').VAny<any, "required", string>, import('convex/values').VNull<null, "required">], "optional", string>;
|
|
1353
|
+
after_expiration: import('convex/values').VUnion<any, [import('convex/values').VAny<any, "required", string>, import('convex/values').VNull<null, "required">], "optional", string>;
|
|
1354
|
+
allow_promotion_codes: import('convex/values').VUnion<boolean | null | undefined, [import('convex/values').VBoolean<boolean, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
1355
|
+
amount_subtotal: import('convex/values').VUnion<number | null | undefined, [import('convex/values').VFloat64<number, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
1356
|
+
amount_total: import('convex/values').VUnion<number | null | undefined, [import('convex/values').VFloat64<number, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
1357
|
+
billing_address_collection: import('convex/values').VUnion<"required" | "auto" | null | undefined, [import('convex/values').VLiteral<"auto", "required">, import('convex/values').VLiteral<"required", "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
1358
|
+
cancel_url: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
1359
|
+
client_secret: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
1360
|
+
collected_information: import('convex/values').VUnion<any, [import('convex/values').VAny<any, "required", string>, import('convex/values').VNull<null, "required">], "optional", string>;
|
|
1361
|
+
consent: import('convex/values').VUnion<any, [import('convex/values').VAny<any, "required", string>, import('convex/values').VNull<null, "required">], "optional", string>;
|
|
1362
|
+
consent_collection: import('convex/values').VUnion<any, [import('convex/values').VAny<any, "required", string>, import('convex/values').VNull<null, "required">], "optional", string>;
|
|
1363
|
+
created: import('convex/values').VFloat64<number, "required">;
|
|
1364
|
+
currency_conversion: import('convex/values').VUnion<any, [import('convex/values').VAny<any, "required", string>, import('convex/values').VNull<null, "required">], "optional", string>;
|
|
1365
|
+
custom_fields: import('convex/values').VArray<any[], import('convex/values').VAny<any, "required", string>, "required">;
|
|
1366
|
+
custom_text: import('convex/values').VAny<any, "required", string>;
|
|
1367
|
+
customer_creation: import('convex/values').VUnion<"always" | "if_required" | null | undefined, [import('convex/values').VLiteral<"always", "required">, import('convex/values').VLiteral<"if_required", "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
1368
|
+
customer_details: import('convex/values').VUnion<any, [import('convex/values').VAny<any, "required", string>, import('convex/values').VNull<null, "required">], "optional", string>;
|
|
1369
|
+
discounts: 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>;
|
|
1370
|
+
expires_at: import('convex/values').VFloat64<number, "required">;
|
|
1371
|
+
invoice: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
1372
|
+
invoice_creation: import('convex/values').VUnion<any, [import('convex/values').VAny<any, "required", string>, import('convex/values').VNull<null, "required">], "optional", string>;
|
|
1373
|
+
livemode: import('convex/values').VBoolean<boolean, "required">;
|
|
1374
|
+
locale: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
1375
|
+
optional_items: 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>;
|
|
1376
|
+
origin_context: import('convex/values').VUnion<"mobile_app" | "web" | null | undefined, [import('convex/values').VLiteral<"mobile_app", "required">, import('convex/values').VLiteral<"web", "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
1377
|
+
payment_link: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
1378
|
+
payment_method_collection: import('convex/values').VUnion<"always" | "if_required" | null | undefined, [import('convex/values').VLiteral<"always", "required">, import('convex/values').VLiteral<"if_required", "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
1379
|
+
payment_method_configuration_details: import('convex/values').VUnion<any, [import('convex/values').VAny<any, "required", string>, import('convex/values').VNull<null, "required">], "optional", string>;
|
|
1380
|
+
payment_method_options: import('convex/values').VUnion<any, [import('convex/values').VAny<any, "required", string>, import('convex/values').VNull<null, "required">], "optional", string>;
|
|
1381
|
+
payment_method_types: import('convex/values').VArray<string[], import('convex/values').VString<string, "required">, "required">;
|
|
1382
|
+
permissions: import('convex/values').VUnion<any, [import('convex/values').VAny<any, "required", string>, import('convex/values').VNull<null, "required">], "optional", string>;
|
|
1383
|
+
phone_number_collection: import('convex/values').VUnion<any, [import('convex/values').VAny<any, "required", string>, import('convex/values').VNull<null, "required">], "optional", string>;
|
|
1384
|
+
presentment_details: import('convex/values').VUnion<any, [import('convex/values').VAny<any, "required", string>, import('convex/values').VNull<null, "required">], "optional", string>;
|
|
1385
|
+
recovered_from: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
1386
|
+
redirect_on_completion: import('convex/values').VUnion<"always" | "if_required" | "never" | null | undefined, [import('convex/values').VLiteral<"always", "required">, import('convex/values').VLiteral<"if_required", "required">, import('convex/values').VLiteral<"never", "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
1387
|
+
saved_payment_method_options: import('convex/values').VUnion<any, [import('convex/values').VAny<any, "required", string>, import('convex/values').VNull<null, "required">], "optional", string>;
|
|
1388
|
+
setup_intent: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
1389
|
+
shipping_address_collection: import('convex/values').VUnion<any, [import('convex/values').VAny<any, "required", string>, import('convex/values').VNull<null, "required">], "optional", string>;
|
|
1390
|
+
shipping_cost: import('convex/values').VUnion<any, [import('convex/values').VAny<any, "required", string>, import('convex/values').VNull<null, "required">], "optional", string>;
|
|
1391
|
+
shipping_options: import('convex/values').VArray<any[], import('convex/values').VAny<any, "required", string>, "required">;
|
|
1392
|
+
submit_type: import('convex/values').VUnion<"auto" | "book" | "donate" | "pay" | "subscribe" | null | undefined, [import('convex/values').VLiteral<"auto", "required">, import('convex/values').VLiteral<"book", "required">, import('convex/values').VLiteral<"donate", "required">, import('convex/values').VLiteral<"pay", "required">, import('convex/values').VLiteral<"subscribe", "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
1393
|
+
subscription: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
1394
|
+
tax_id_collection: import('convex/values').VUnion<any, [import('convex/values').VAny<any, "required", string>, import('convex/values').VNull<null, "required">], "optional", string>;
|
|
1395
|
+
total_details: import('convex/values').VUnion<any, [import('convex/values').VAny<any, "required", string>, import('convex/values').VNull<null, "required">], "optional", string>;
|
|
1396
|
+
wallet_options: import('convex/values').VUnion<any, [import('convex/values').VAny<any, "required", string>, import('convex/values').VNull<null, "required">], "optional", string>;
|
|
1397
|
+
}, "required", "object" | "id" | "subscription" | "automatic_tax" | "client_reference_id" | "currency" | "customer" | "customer_email" | "line_items" | "metadata" | "mode" | "payment_intent" | "payment_status" | "return_url" | "status" | "success_url" | "ui_mode" | "url" | "adaptive_pricing" | "after_expiration" | "allow_promotion_codes" | "amount_subtotal" | "amount_total" | "billing_address_collection" | "cancel_url" | "client_secret" | "collected_information" | "consent" | "consent_collection" | "created" | "currency_conversion" | "custom_fields" | "custom_text" | "customer_creation" | "customer_details" | "discounts" | "expires_at" | "invoice" | "invoice_creation" | "livemode" | "locale" | "optional_items" | "origin_context" | "payment_link" | "payment_method_collection" | "payment_method_configuration_details" | "payment_method_options" | "payment_method_types" | "permissions" | "phone_number_collection" | "presentment_details" | "recovered_from" | "redirect_on_completion" | "saved_payment_method_options" | "setup_intent" | "shipping_address_collection" | "shipping_cost" | "shipping_options" | "submit_type" | "tax_id_collection" | "total_details" | "wallet_options" | `automatic_tax.${string}` | `metadata.${string}` | `adaptive_pricing.${string}` | `after_expiration.${string}` | `collected_information.${string}` | `consent.${string}` | `consent_collection.${string}` | `currency_conversion.${string}` | `custom_text.${string}` | `customer_details.${string}` | `invoice_creation.${string}` | `payment_method_configuration_details.${string}` | `payment_method_options.${string}` | `permissions.${string}` | `phone_number_collection.${string}` | `presentment_details.${string}` | `saved_payment_method_options.${string}` | `shipping_address_collection.${string}` | `shipping_cost.${string}` | `tax_id_collection.${string}` | `total_details.${string}` | `wallet_options.${string}`>;
|
|
1398
|
+
last_synced_at: import('convex/values').VFloat64<number, "required">;
|
|
1399
|
+
}, "required", "stripe" | "last_synced_at" | "stripe.object" | "stripe.id" | "stripe.metadata" | "stripe.url" | "stripe.created" | "stripe.livemode" | `stripe.metadata.${string}` | "stripe.currency" | "stripe.customer" | "stripe.expires_at" | "stripe.status" | "stripe.payment_intent" | "stripe.client_secret" | "stripe.payment_method_configuration_details" | "stripe.payment_method_options" | "stripe.payment_method_types" | "stripe.presentment_details" | `stripe.payment_method_options.${string}` | `stripe.presentment_details.${string}` | "checkoutSessionId" | "stripe.subscription" | "stripe.automatic_tax" | "stripe.client_reference_id" | "stripe.customer_email" | "stripe.line_items" | "stripe.mode" | "stripe.payment_status" | "stripe.return_url" | "stripe.success_url" | "stripe.ui_mode" | "stripe.adaptive_pricing" | "stripe.after_expiration" | "stripe.allow_promotion_codes" | "stripe.amount_subtotal" | "stripe.amount_total" | "stripe.billing_address_collection" | "stripe.cancel_url" | "stripe.collected_information" | "stripe.consent" | "stripe.consent_collection" | "stripe.currency_conversion" | "stripe.custom_fields" | "stripe.custom_text" | "stripe.customer_creation" | "stripe.customer_details" | "stripe.discounts" | "stripe.invoice" | "stripe.invoice_creation" | "stripe.locale" | "stripe.optional_items" | "stripe.origin_context" | "stripe.payment_link" | "stripe.payment_method_collection" | "stripe.permissions" | "stripe.phone_number_collection" | "stripe.recovered_from" | "stripe.redirect_on_completion" | "stripe.saved_payment_method_options" | "stripe.setup_intent" | "stripe.shipping_address_collection" | "stripe.shipping_cost" | "stripe.shipping_options" | "stripe.submit_type" | "stripe.tax_id_collection" | "stripe.total_details" | "stripe.wallet_options" | `stripe.automatic_tax.${string}` | `stripe.adaptive_pricing.${string}` | `stripe.after_expiration.${string}` | `stripe.collected_information.${string}` | `stripe.consent.${string}` | `stripe.consent_collection.${string}` | `stripe.currency_conversion.${string}` | `stripe.custom_text.${string}` | `stripe.customer_details.${string}` | `stripe.invoice_creation.${string}` | `stripe.payment_method_configuration_details.${string}` | `stripe.permissions.${string}` | `stripe.phone_number_collection.${string}` | `stripe.saved_payment_method_options.${string}` | `stripe.shipping_address_collection.${string}` | `stripe.shipping_cost.${string}` | `stripe.tax_id_collection.${string}` | `stripe.total_details.${string}` | `stripe.wallet_options.${string}`>, {
|
|
1400
|
+
byCheckoutSessionId: ["checkoutSessionId", "_creationTime"];
|
|
1401
|
+
}, {}, {}>;
|
|
1402
|
+
stripe_invoices: import('convex/server').TableDefinition<import('convex/values').VObject<{
|
|
1403
|
+
stripe: {
|
|
1404
|
+
number?: string | null | undefined;
|
|
1405
|
+
automatic_tax?: any;
|
|
1406
|
+
customer_email?: string | null | undefined;
|
|
1407
|
+
metadata?: Record<string, string | number | null> | null | undefined;
|
|
1408
|
+
custom_fields?: any[] | null | undefined;
|
|
1409
|
+
shipping_cost?: any;
|
|
1410
|
+
description?: string | null | undefined;
|
|
1411
|
+
default_source?: string | null | undefined;
|
|
1412
|
+
test_clock?: string | null | undefined;
|
|
1413
|
+
auto_advance?: boolean | undefined;
|
|
1414
|
+
confirmation_secret?: any;
|
|
1415
|
+
hosted_invoice_url?: string | null | undefined;
|
|
1416
|
+
lines?: any;
|
|
1417
|
+
parent?: any;
|
|
1418
|
+
account_country?: string | null | undefined;
|
|
1419
|
+
account_name?: string | null | undefined;
|
|
1420
|
+
account_tax_ids?: string[] | null | undefined;
|
|
1421
|
+
application?: string | null | undefined;
|
|
1422
|
+
automatically_finalizes_at?: number | null | undefined;
|
|
1423
|
+
customer_address?: any;
|
|
1424
|
+
customer_name?: string | null | undefined;
|
|
1425
|
+
customer_phone?: string | null | undefined;
|
|
1426
|
+
customer_shipping?: any;
|
|
1427
|
+
customer_tax_ids?: any[] | null | undefined;
|
|
1428
|
+
default_payment_method?: string | null | undefined;
|
|
1429
|
+
due_date?: number | null | undefined;
|
|
1430
|
+
effective_at?: number | null | undefined;
|
|
1431
|
+
ending_balance?: number | null | undefined;
|
|
1432
|
+
footer?: string | null | undefined;
|
|
1433
|
+
from_invoice?: any;
|
|
1434
|
+
invoice_pdf?: string | null | undefined;
|
|
1435
|
+
issuer?: any;
|
|
1436
|
+
last_finalization_error?: any;
|
|
1437
|
+
latest_revision?: string | null | undefined;
|
|
1438
|
+
next_payment_attempt?: number | null | undefined;
|
|
1439
|
+
on_behalf_of?: string | null | undefined;
|
|
1440
|
+
payment_settings?: any;
|
|
1441
|
+
payments?: any;
|
|
1442
|
+
receipt_number?: string | null | undefined;
|
|
1443
|
+
rendering?: any;
|
|
1444
|
+
shipping_details?: any;
|
|
1445
|
+
statement_descriptor?: string | null | undefined;
|
|
1446
|
+
status_transitions?: any;
|
|
1447
|
+
subtotal_excluding_tax?: number | null | undefined;
|
|
1448
|
+
threshold_reason?: any;
|
|
1449
|
+
total_discount_amounts?: any[] | null | undefined;
|
|
1450
|
+
total_excluding_tax?: number | null | undefined;
|
|
1451
|
+
total_pretax_credit_amounts?: any[] | null | undefined;
|
|
1452
|
+
total_taxes?: any[] | null | undefined;
|
|
1453
|
+
webhooks_delivered_at?: number | null | undefined;
|
|
1454
|
+
object: string;
|
|
1455
|
+
id: string;
|
|
1456
|
+
currency: string;
|
|
1457
|
+
customer: string;
|
|
1458
|
+
status: "paid" | "open" | "draft" | "uncollectible" | "void";
|
|
1459
|
+
created: number;
|
|
1460
|
+
discounts: string[];
|
|
1461
|
+
livemode: boolean;
|
|
1462
|
+
collection_method: "charge_automatically" | "send_invoice";
|
|
1463
|
+
period_end: number;
|
|
1464
|
+
period_start: number;
|
|
1465
|
+
total: number;
|
|
1466
|
+
amount_due: number;
|
|
1467
|
+
amount_overpaid: number;
|
|
1468
|
+
amount_paid: number;
|
|
1469
|
+
amount_remaining: number;
|
|
1470
|
+
amount_shipping: number;
|
|
1471
|
+
attempt_count: number;
|
|
1472
|
+
attempted: boolean;
|
|
1473
|
+
billing_reason: "subscription" | "automatic_pending_invoice_item_invoice" | "manual" | "quote_accept" | "subscription_create" | "subscription_cycle" | "subscription_threshold" | "subscription_update" | "upcoming" | null;
|
|
1474
|
+
customer_tax_exempt: "reverse" | "exempt" | "none" | null;
|
|
1475
|
+
default_tax_rates: any[];
|
|
1476
|
+
post_payment_credit_notes_amount: number;
|
|
1477
|
+
pre_payment_credit_notes_amount: number;
|
|
1478
|
+
starting_balance: number;
|
|
1479
|
+
subtotal: number;
|
|
1480
|
+
};
|
|
1481
|
+
last_synced_at: number;
|
|
1482
|
+
invoiceId: string;
|
|
1483
|
+
}, {
|
|
1484
|
+
invoiceId: import('convex/values').VString<string, "required">;
|
|
1485
|
+
stripe: import('convex/values').VObject<{
|
|
1486
|
+
number?: string | null | undefined;
|
|
1487
|
+
automatic_tax?: any;
|
|
1488
|
+
customer_email?: string | null | undefined;
|
|
1489
|
+
metadata?: Record<string, string | number | null> | null | undefined;
|
|
1490
|
+
custom_fields?: any[] | null | undefined;
|
|
1491
|
+
shipping_cost?: any;
|
|
1492
|
+
description?: string | null | undefined;
|
|
1493
|
+
default_source?: string | null | undefined;
|
|
1494
|
+
test_clock?: string | null | undefined;
|
|
1495
|
+
auto_advance?: boolean | undefined;
|
|
1496
|
+
confirmation_secret?: any;
|
|
1497
|
+
hosted_invoice_url?: string | null | undefined;
|
|
1498
|
+
lines?: any;
|
|
1499
|
+
parent?: any;
|
|
1500
|
+
account_country?: string | null | undefined;
|
|
1501
|
+
account_name?: string | null | undefined;
|
|
1502
|
+
account_tax_ids?: string[] | null | undefined;
|
|
1503
|
+
application?: string | null | undefined;
|
|
1504
|
+
automatically_finalizes_at?: number | null | undefined;
|
|
1505
|
+
customer_address?: any;
|
|
1506
|
+
customer_name?: string | null | undefined;
|
|
1507
|
+
customer_phone?: string | null | undefined;
|
|
1508
|
+
customer_shipping?: any;
|
|
1509
|
+
customer_tax_ids?: any[] | null | undefined;
|
|
1510
|
+
default_payment_method?: string | null | undefined;
|
|
1511
|
+
due_date?: number | null | undefined;
|
|
1512
|
+
effective_at?: number | null | undefined;
|
|
1513
|
+
ending_balance?: number | null | undefined;
|
|
1514
|
+
footer?: string | null | undefined;
|
|
1515
|
+
from_invoice?: any;
|
|
1516
|
+
invoice_pdf?: string | null | undefined;
|
|
1517
|
+
issuer?: any;
|
|
1518
|
+
last_finalization_error?: any;
|
|
1519
|
+
latest_revision?: string | null | undefined;
|
|
1520
|
+
next_payment_attempt?: number | null | undefined;
|
|
1521
|
+
on_behalf_of?: string | null | undefined;
|
|
1522
|
+
payment_settings?: any;
|
|
1523
|
+
payments?: any;
|
|
1524
|
+
receipt_number?: string | null | undefined;
|
|
1525
|
+
rendering?: any;
|
|
1526
|
+
shipping_details?: any;
|
|
1527
|
+
statement_descriptor?: string | null | undefined;
|
|
1528
|
+
status_transitions?: any;
|
|
1529
|
+
subtotal_excluding_tax?: number | null | undefined;
|
|
1530
|
+
threshold_reason?: any;
|
|
1531
|
+
total_discount_amounts?: any[] | null | undefined;
|
|
1532
|
+
total_excluding_tax?: number | null | undefined;
|
|
1533
|
+
total_pretax_credit_amounts?: any[] | null | undefined;
|
|
1534
|
+
total_taxes?: any[] | null | undefined;
|
|
1535
|
+
webhooks_delivered_at?: number | null | undefined;
|
|
1536
|
+
object: string;
|
|
1537
|
+
id: string;
|
|
1538
|
+
currency: string;
|
|
1539
|
+
customer: string;
|
|
1540
|
+
status: "paid" | "open" | "draft" | "uncollectible" | "void";
|
|
1541
|
+
created: number;
|
|
1542
|
+
discounts: string[];
|
|
1543
|
+
livemode: boolean;
|
|
1544
|
+
collection_method: "charge_automatically" | "send_invoice";
|
|
1545
|
+
period_end: number;
|
|
1546
|
+
period_start: number;
|
|
1547
|
+
total: number;
|
|
1548
|
+
amount_due: number;
|
|
1549
|
+
amount_overpaid: number;
|
|
1550
|
+
amount_paid: number;
|
|
1551
|
+
amount_remaining: number;
|
|
1552
|
+
amount_shipping: number;
|
|
1553
|
+
attempt_count: number;
|
|
1554
|
+
attempted: boolean;
|
|
1555
|
+
billing_reason: "subscription" | "automatic_pending_invoice_item_invoice" | "manual" | "quote_accept" | "subscription_create" | "subscription_cycle" | "subscription_threshold" | "subscription_update" | "upcoming" | null;
|
|
1556
|
+
customer_tax_exempt: "reverse" | "exempt" | "none" | null;
|
|
1557
|
+
default_tax_rates: any[];
|
|
1558
|
+
post_payment_credit_notes_amount: number;
|
|
1559
|
+
pre_payment_credit_notes_amount: number;
|
|
1560
|
+
starting_balance: number;
|
|
1561
|
+
subtotal: number;
|
|
1562
|
+
}, {
|
|
1563
|
+
id: import('convex/values').VString<string, "required">;
|
|
1564
|
+
auto_advance: import('convex/values').VBoolean<boolean | undefined, "optional">;
|
|
1565
|
+
automatic_tax: import('convex/values').VAny<any, "optional", string>;
|
|
1566
|
+
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>;
|
|
1567
|
+
confirmation_secret: import('convex/values').VAny<any, "optional", string>;
|
|
1568
|
+
currency: import('convex/values').VString<string, "required">;
|
|
1569
|
+
customer: import('convex/values').VString<string, "required">;
|
|
1570
|
+
description: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
1571
|
+
hosted_invoice_url: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
1572
|
+
lines: import('convex/values').VAny<any, "optional", string>;
|
|
1573
|
+
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>;
|
|
1574
|
+
parent: import('convex/values').VAny<any, "optional", string>;
|
|
1575
|
+
period_end: import('convex/values').VFloat64<number, "required">;
|
|
1576
|
+
period_start: import('convex/values').VFloat64<number, "required">;
|
|
1577
|
+
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>;
|
|
1578
|
+
total: import('convex/values').VFloat64<number, "required">;
|
|
1579
|
+
object: import('convex/values').VString<string, "required">;
|
|
1580
|
+
account_country: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
1581
|
+
account_name: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
1582
|
+
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>;
|
|
1583
|
+
amount_due: import('convex/values').VFloat64<number, "required">;
|
|
1584
|
+
amount_overpaid: import('convex/values').VFloat64<number, "required">;
|
|
1585
|
+
amount_paid: import('convex/values').VFloat64<number, "required">;
|
|
1586
|
+
amount_remaining: import('convex/values').VFloat64<number, "required">;
|
|
1587
|
+
amount_shipping: import('convex/values').VFloat64<number, "required">;
|
|
1588
|
+
application: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
1589
|
+
attempt_count: import('convex/values').VFloat64<number, "required">;
|
|
1590
|
+
attempted: import('convex/values').VBoolean<boolean, "required">;
|
|
1591
|
+
automatically_finalizes_at: import('convex/values').VUnion<number | null | undefined, [import('convex/values').VFloat64<number, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
1592
|
+
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>;
|
|
1593
|
+
created: import('convex/values').VFloat64<number, "required">;
|
|
1594
|
+
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>;
|
|
1595
|
+
customer_address: import('convex/values').VAny<any, "optional", string>;
|
|
1596
|
+
customer_email: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
1597
|
+
customer_name: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
1598
|
+
customer_phone: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
1599
|
+
customer_shipping: import('convex/values').VAny<any, "optional", string>;
|
|
1600
|
+
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>;
|
|
1601
|
+
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>;
|
|
1602
|
+
default_payment_method: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
1603
|
+
default_source: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
1604
|
+
default_tax_rates: import('convex/values').VArray<any[], import('convex/values').VAny<any, "required", string>, "required">;
|
|
1605
|
+
discounts: import('convex/values').VArray<string[], import('convex/values').VString<string, "required">, "required">;
|
|
1606
|
+
due_date: import('convex/values').VUnion<number | null | undefined, [import('convex/values').VFloat64<number, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
1607
|
+
effective_at: import('convex/values').VUnion<number | null | undefined, [import('convex/values').VFloat64<number, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
1608
|
+
ending_balance: import('convex/values').VUnion<number | null | undefined, [import('convex/values').VFloat64<number, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
1609
|
+
footer: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
1610
|
+
from_invoice: import('convex/values').VAny<any, "optional", string>;
|
|
1611
|
+
invoice_pdf: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
1612
|
+
issuer: import('convex/values').VAny<any, "optional", string>;
|
|
1613
|
+
last_finalization_error: import('convex/values').VAny<any, "optional", string>;
|
|
1614
|
+
latest_revision: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
1615
|
+
livemode: import('convex/values').VBoolean<boolean, "required">;
|
|
1616
|
+
next_payment_attempt: import('convex/values').VUnion<number | null | undefined, [import('convex/values').VFloat64<number, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
1617
|
+
number: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
1618
|
+
on_behalf_of: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
1619
|
+
payment_settings: import('convex/values').VAny<any, "optional", string>;
|
|
1620
|
+
payments: import('convex/values').VAny<any, "optional", string>;
|
|
1621
|
+
post_payment_credit_notes_amount: import('convex/values').VFloat64<number, "required">;
|
|
1622
|
+
pre_payment_credit_notes_amount: import('convex/values').VFloat64<number, "required">;
|
|
1623
|
+
receipt_number: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
1624
|
+
rendering: import('convex/values').VAny<any, "optional", string>;
|
|
1625
|
+
shipping_cost: import('convex/values').VAny<any, "optional", string>;
|
|
1626
|
+
shipping_details: import('convex/values').VAny<any, "optional", string>;
|
|
1627
|
+
starting_balance: import('convex/values').VFloat64<number, "required">;
|
|
1628
|
+
statement_descriptor: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
1629
|
+
status_transitions: import('convex/values').VAny<any, "optional", string>;
|
|
1630
|
+
subtotal: import('convex/values').VFloat64<number, "required">;
|
|
1631
|
+
subtotal_excluding_tax: import('convex/values').VUnion<number | null | undefined, [import('convex/values').VFloat64<number, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
1632
|
+
test_clock: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
1633
|
+
threshold_reason: import('convex/values').VAny<any, "optional", string>;
|
|
1634
|
+
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>;
|
|
1635
|
+
total_excluding_tax: import('convex/values').VUnion<number | null | undefined, [import('convex/values').VFloat64<number, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
1636
|
+
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>;
|
|
1637
|
+
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>;
|
|
1638
|
+
webhooks_delivered_at: import('convex/values').VUnion<number | null | undefined, [import('convex/values').VFloat64<number, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
1639
|
+
}, "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}`>;
|
|
1640
|
+
last_synced_at: import('convex/values').VFloat64<number, "required">;
|
|
1641
|
+
}, "required", "stripe" | "last_synced_at" | "stripe.object" | "stripe.id" | "stripe.metadata" | "stripe.created" | "stripe.livemode" | `stripe.metadata.${string}` | "stripe.description" | "stripe.statement_descriptor" | "stripe.currency" | "stripe.default_source" | "stripe.test_clock" | "stripe.customer" | "stripe.status" | "stripe.receipt_number" | "stripe.application" | "stripe.on_behalf_of" | "stripe.automatic_tax" | "stripe.customer_email" | "stripe.custom_fields" | "stripe.discounts" | "stripe.shipping_cost" | `stripe.automatic_tax.${string}` | `stripe.shipping_cost.${string}` | "invoiceId" | "stripe.number" | "stripe.auto_advance" | "stripe.collection_method" | "stripe.confirmation_secret" | "stripe.hosted_invoice_url" | "stripe.lines" | "stripe.parent" | "stripe.period_end" | "stripe.period_start" | "stripe.total" | "stripe.account_country" | "stripe.account_name" | "stripe.account_tax_ids" | "stripe.amount_due" | "stripe.amount_overpaid" | "stripe.amount_paid" | "stripe.amount_remaining" | "stripe.amount_shipping" | "stripe.attempt_count" | "stripe.attempted" | "stripe.automatically_finalizes_at" | "stripe.billing_reason" | "stripe.customer_address" | "stripe.customer_name" | "stripe.customer_phone" | "stripe.customer_shipping" | "stripe.customer_tax_exempt" | "stripe.customer_tax_ids" | "stripe.default_payment_method" | "stripe.default_tax_rates" | "stripe.due_date" | "stripe.effective_at" | "stripe.ending_balance" | "stripe.footer" | "stripe.from_invoice" | "stripe.invoice_pdf" | "stripe.issuer" | "stripe.last_finalization_error" | "stripe.latest_revision" | "stripe.next_payment_attempt" | "stripe.payment_settings" | "stripe.payments" | "stripe.post_payment_credit_notes_amount" | "stripe.pre_payment_credit_notes_amount" | "stripe.rendering" | "stripe.shipping_details" | "stripe.starting_balance" | "stripe.status_transitions" | "stripe.subtotal" | "stripe.subtotal_excluding_tax" | "stripe.threshold_reason" | "stripe.total_discount_amounts" | "stripe.total_excluding_tax" | "stripe.total_pretax_credit_amounts" | "stripe.total_taxes" | "stripe.webhooks_delivered_at" | `stripe.confirmation_secret.${string}` | `stripe.lines.${string}` | `stripe.parent.${string}` | `stripe.customer_address.${string}` | `stripe.customer_shipping.${string}` | `stripe.from_invoice.${string}` | `stripe.issuer.${string}` | `stripe.last_finalization_error.${string}` | `stripe.payment_settings.${string}` | `stripe.payments.${string}` | `stripe.rendering.${string}` | `stripe.shipping_details.${string}` | `stripe.status_transitions.${string}` | `stripe.threshold_reason.${string}`>, {
|
|
1642
|
+
byInvoiceId: ["invoiceId", "_creationTime"];
|
|
1643
|
+
}, {}, {}>;
|
|
1644
|
+
stripe_reviews: import('convex/server').TableDefinition<import('convex/values').VObject<{
|
|
1645
|
+
stripe: {
|
|
1646
|
+
payment_intent?: string | null | undefined;
|
|
1647
|
+
ip_address?: string | null | undefined;
|
|
1648
|
+
charge?: string | null | undefined;
|
|
1649
|
+
billing_zip?: string | null | undefined;
|
|
1650
|
+
closed_reason?: "canceled" | "approved" | "refunded" | "refunded_as_fraud" | "disputed" | "redacted" | "payment_never_settled" | "acknowledged" | null | undefined;
|
|
1651
|
+
ip_address_location?: {
|
|
1652
|
+
city?: string | null | undefined;
|
|
1653
|
+
country?: string | null | undefined;
|
|
1654
|
+
latitude?: number | null | undefined;
|
|
1655
|
+
longitude?: number | null | undefined;
|
|
1656
|
+
region?: string | null | undefined;
|
|
1657
|
+
} | null | undefined;
|
|
1658
|
+
session?: {
|
|
1659
|
+
browser?: string | null | undefined;
|
|
1660
|
+
device?: string | null | undefined;
|
|
1661
|
+
platform?: string | null | undefined;
|
|
1662
|
+
version?: string | null | undefined;
|
|
1663
|
+
} | null | undefined;
|
|
1664
|
+
object: string;
|
|
1665
|
+
id: string;
|
|
1666
|
+
open: boolean;
|
|
1667
|
+
created: number;
|
|
1668
|
+
livemode: boolean;
|
|
1669
|
+
reason: string;
|
|
1670
|
+
opened_reason: "manual" | "rule";
|
|
1671
|
+
};
|
|
1672
|
+
last_synced_at: number;
|
|
1673
|
+
reviewId: string;
|
|
1674
|
+
}, {
|
|
1675
|
+
reviewId: import('convex/values').VString<string, "required">;
|
|
1676
|
+
stripe: import('convex/values').VObject<{
|
|
1677
|
+
payment_intent?: string | null | undefined;
|
|
1678
|
+
ip_address?: string | null | undefined;
|
|
1679
|
+
charge?: string | null | undefined;
|
|
1680
|
+
billing_zip?: string | null | undefined;
|
|
1681
|
+
closed_reason?: "canceled" | "approved" | "refunded" | "refunded_as_fraud" | "disputed" | "redacted" | "payment_never_settled" | "acknowledged" | null | undefined;
|
|
1682
|
+
ip_address_location?: {
|
|
1683
|
+
city?: string | null | undefined;
|
|
1684
|
+
country?: string | null | undefined;
|
|
1685
|
+
latitude?: number | null | undefined;
|
|
1686
|
+
longitude?: number | null | undefined;
|
|
1687
|
+
region?: string | null | undefined;
|
|
1688
|
+
} | null | undefined;
|
|
1689
|
+
session?: {
|
|
1690
|
+
browser?: string | null | undefined;
|
|
1691
|
+
device?: string | null | undefined;
|
|
1692
|
+
platform?: string | null | undefined;
|
|
1693
|
+
version?: string | null | undefined;
|
|
1694
|
+
} | null | undefined;
|
|
1695
|
+
object: string;
|
|
1696
|
+
id: string;
|
|
1697
|
+
open: boolean;
|
|
1698
|
+
created: number;
|
|
1699
|
+
livemode: boolean;
|
|
1700
|
+
reason: string;
|
|
1701
|
+
opened_reason: "manual" | "rule";
|
|
1702
|
+
}, {
|
|
1703
|
+
id: import('convex/values').VString<string, "required">;
|
|
1704
|
+
charge: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
1705
|
+
open: import('convex/values').VBoolean<boolean, "required">;
|
|
1706
|
+
payment_intent: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
1707
|
+
reason: import('convex/values').VString<string, "required">;
|
|
1708
|
+
object: import('convex/values').VString<string, "required">;
|
|
1709
|
+
billing_zip: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
1710
|
+
closed_reason: import('convex/values').VUnion<"canceled" | "approved" | "refunded" | "refunded_as_fraud" | "disputed" | "redacted" | "payment_never_settled" | "acknowledged" | null | undefined, [import('convex/values').VLiteral<"approved", "required">, import('convex/values').VLiteral<"refunded", "required">, import('convex/values').VLiteral<"refunded_as_fraud", "required">, import('convex/values').VLiteral<"disputed", "required">, import('convex/values').VLiteral<"redacted", "required">, import('convex/values').VLiteral<"canceled", "required">, import('convex/values').VLiteral<"payment_never_settled", "required">, import('convex/values').VLiteral<"acknowledged", "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
1711
|
+
created: import('convex/values').VFloat64<number, "required">;
|
|
1712
|
+
ip_address: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
1713
|
+
ip_address_location: import('convex/values').VUnion<{
|
|
1714
|
+
city?: string | null | undefined;
|
|
1715
|
+
country?: string | null | undefined;
|
|
1716
|
+
latitude?: number | null | undefined;
|
|
1717
|
+
longitude?: number | null | undefined;
|
|
1718
|
+
region?: string | null | undefined;
|
|
1719
|
+
} | null | undefined, [import('convex/values').VObject<{
|
|
1720
|
+
city?: string | null | undefined;
|
|
1721
|
+
country?: string | null | undefined;
|
|
1722
|
+
latitude?: number | null | undefined;
|
|
1723
|
+
longitude?: number | null | undefined;
|
|
1724
|
+
region?: string | null | undefined;
|
|
1725
|
+
}, {
|
|
1726
|
+
city: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
1727
|
+
country: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
1728
|
+
latitude: import('convex/values').VUnion<number | null | undefined, [import('convex/values').VFloat64<number, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
1729
|
+
longitude: import('convex/values').VUnion<number | null | undefined, [import('convex/values').VFloat64<number, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
1730
|
+
region: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
1731
|
+
}, "required", "city" | "country" | "latitude" | "longitude" | "region">, import('convex/values').VNull<null, "required">], "optional", "city" | "country" | "latitude" | "longitude" | "region">;
|
|
1732
|
+
livemode: import('convex/values').VBoolean<boolean, "required">;
|
|
1733
|
+
opened_reason: import('convex/values').VUnion<"manual" | "rule", [import('convex/values').VLiteral<"manual", "required">, import('convex/values').VLiteral<"rule", "required">], "required", never>;
|
|
1734
|
+
session: import('convex/values').VUnion<{
|
|
1735
|
+
browser?: string | null | undefined;
|
|
1736
|
+
device?: string | null | undefined;
|
|
1737
|
+
platform?: string | null | undefined;
|
|
1738
|
+
version?: string | null | undefined;
|
|
1739
|
+
} | null | undefined, [import('convex/values').VObject<{
|
|
1740
|
+
browser?: string | null | undefined;
|
|
1741
|
+
device?: string | null | undefined;
|
|
1742
|
+
platform?: string | null | undefined;
|
|
1743
|
+
version?: string | null | undefined;
|
|
1744
|
+
}, {
|
|
1745
|
+
browser: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
1746
|
+
device: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
1747
|
+
platform: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
1748
|
+
version: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
1749
|
+
}, "required", "browser" | "device" | "platform" | "version">, import('convex/values').VNull<null, "required">], "optional", "browser" | "device" | "platform" | "version">;
|
|
1750
|
+
}, "required", "object" | "id" | "open" | "payment_intent" | "created" | "livemode" | "ip_address" | "charge" | "reason" | "billing_zip" | "closed_reason" | "ip_address_location" | "opened_reason" | "session" | "ip_address_location.city" | "ip_address_location.country" | "ip_address_location.latitude" | "ip_address_location.longitude" | "ip_address_location.region" | "session.browser" | "session.device" | "session.platform" | "session.version">;
|
|
1751
|
+
last_synced_at: import('convex/values').VFloat64<number, "required">;
|
|
1752
|
+
}, "required", "stripe" | "last_synced_at" | "stripe.object" | "stripe.id" | "stripe.created" | "stripe.livemode" | "stripe.payment_intent" | "stripe.charge" | "stripe.reason" | "reviewId" | "stripe.open" | "stripe.ip_address" | "stripe.billing_zip" | "stripe.closed_reason" | "stripe.ip_address_location" | "stripe.opened_reason" | "stripe.session" | "stripe.ip_address_location.city" | "stripe.ip_address_location.country" | "stripe.ip_address_location.latitude" | "stripe.ip_address_location.longitude" | "stripe.ip_address_location.region" | "stripe.session.browser" | "stripe.session.device" | "stripe.session.platform" | "stripe.session.version">, {
|
|
1753
|
+
reviewId: ["reviewId", "_creationTime"];
|
|
1754
|
+
}, {}, {}>;
|
|
1755
|
+
};
|
|
1756
|
+
declare const defaultSchema: import('convex/server').SchemaDefinition<{
|
|
1757
|
+
stripe_products: import('convex/server').TableDefinition<import('convex/values').VObject<{
|
|
1758
|
+
productId: string;
|
|
1759
|
+
stripe: {
|
|
1760
|
+
metadata?: Record<string, string | number | null> | null | undefined;
|
|
1761
|
+
statement_descriptor?: string | null | undefined;
|
|
1762
|
+
unit_label?: string | null | undefined;
|
|
1763
|
+
object: string;
|
|
1764
|
+
id: string;
|
|
1765
|
+
url: string | null;
|
|
1766
|
+
created: number;
|
|
1767
|
+
livemode: boolean;
|
|
1768
|
+
name: string;
|
|
1769
|
+
description: string | null;
|
|
1770
|
+
active: boolean;
|
|
1771
|
+
images: string[];
|
|
1772
|
+
package_dimensions: {
|
|
1773
|
+
length: number;
|
|
1774
|
+
height: number;
|
|
1775
|
+
weight: number;
|
|
1776
|
+
width: number;
|
|
1777
|
+
} | null;
|
|
1778
|
+
shippable: boolean | null;
|
|
1779
|
+
updated: number;
|
|
1780
|
+
marketing_features: {
|
|
1781
|
+
name?: string | null | undefined;
|
|
1782
|
+
}[];
|
|
1783
|
+
default_price: string | null;
|
|
1784
|
+
};
|
|
1785
|
+
last_synced_at: number;
|
|
1786
|
+
}, {
|
|
1787
|
+
productId: import('convex/values').VString<string, "required">;
|
|
1788
|
+
stripe: import('convex/values').VObject<{
|
|
1789
|
+
metadata?: Record<string, string | number | null> | null | undefined;
|
|
1790
|
+
statement_descriptor?: string | null | undefined;
|
|
1791
|
+
unit_label?: string | null | undefined;
|
|
1792
|
+
object: string;
|
|
1793
|
+
id: string;
|
|
1794
|
+
url: string | null;
|
|
1795
|
+
created: number;
|
|
1796
|
+
livemode: boolean;
|
|
1797
|
+
name: string;
|
|
1798
|
+
description: string | null;
|
|
1799
|
+
active: boolean;
|
|
1800
|
+
images: string[];
|
|
1801
|
+
package_dimensions: {
|
|
1802
|
+
length: number;
|
|
1803
|
+
height: number;
|
|
1804
|
+
weight: number;
|
|
1805
|
+
width: number;
|
|
1806
|
+
} | null;
|
|
1807
|
+
shippable: boolean | null;
|
|
1808
|
+
updated: number;
|
|
1809
|
+
marketing_features: {
|
|
1810
|
+
name?: string | null | undefined;
|
|
1811
|
+
}[];
|
|
1812
|
+
default_price: string | null;
|
|
1813
|
+
}, {
|
|
1814
|
+
id: import('convex/values').VString<string, "required">;
|
|
1815
|
+
object: import('convex/values').VString<string, "required">;
|
|
1816
|
+
active: import('convex/values').VBoolean<boolean, "required">;
|
|
1817
|
+
description: import('convex/values').VUnion<string | null, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "required", never>;
|
|
1818
|
+
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>;
|
|
1819
|
+
name: import('convex/values').VString<string, "required">;
|
|
1820
|
+
created: import('convex/values').VFloat64<number, "required">;
|
|
1821
|
+
images: import('convex/values').VArray<string[], import('convex/values').VString<string, "required">, "required">;
|
|
1822
|
+
livemode: import('convex/values').VBoolean<boolean, "required">;
|
|
1823
|
+
package_dimensions: import('convex/values').VUnion<{
|
|
1824
|
+
length: number;
|
|
1825
|
+
height: number;
|
|
1826
|
+
weight: number;
|
|
1827
|
+
width: number;
|
|
1828
|
+
} | null, [import('convex/values').VObject<{
|
|
1829
|
+
length: number;
|
|
1830
|
+
height: number;
|
|
1831
|
+
weight: number;
|
|
1832
|
+
width: number;
|
|
1833
|
+
}, {
|
|
1834
|
+
height: import('convex/values').VFloat64<number, "required">;
|
|
1835
|
+
length: import('convex/values').VFloat64<number, "required">;
|
|
1836
|
+
weight: import('convex/values').VFloat64<number, "required">;
|
|
1837
|
+
width: import('convex/values').VFloat64<number, "required">;
|
|
1838
|
+
}, "required", "length" | "height" | "weight" | "width">, import('convex/values').VNull<null, "required">], "required", "length" | "height" | "weight" | "width">;
|
|
1839
|
+
shippable: import('convex/values').VUnion<boolean | null, [import('convex/values').VBoolean<boolean, "required">, import('convex/values').VNull<null, "required">], "required", never>;
|
|
1840
|
+
statement_descriptor: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
1841
|
+
unit_label: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
1842
|
+
updated: import('convex/values').VFloat64<number, "required">;
|
|
1843
|
+
url: import('convex/values').VUnion<string | null, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "required", never>;
|
|
1844
|
+
marketing_features: import('convex/values').VArray<{
|
|
1845
|
+
name?: string | null | undefined;
|
|
1846
|
+
}[], import('convex/values').VObject<{
|
|
1847
|
+
name?: string | null | undefined;
|
|
1848
|
+
}, {
|
|
1849
|
+
name: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
1850
|
+
}, "required", "name">, "required">;
|
|
1851
|
+
default_price: import('convex/values').VUnion<string | null, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "required", never>;
|
|
1852
|
+
}, "required", "object" | "id" | "metadata" | "url" | "created" | "livemode" | `metadata.${string}` | "name" | "description" | "statement_descriptor" | "active" | "images" | "package_dimensions" | "shippable" | "unit_label" | "updated" | "marketing_features" | "default_price" | "package_dimensions.length" | "package_dimensions.height" | "package_dimensions.weight" | "package_dimensions.width">;
|
|
1853
|
+
last_synced_at: import('convex/values').VFloat64<number, "required">;
|
|
1854
|
+
}, "required", "productId" | "stripe" | "last_synced_at" | "stripe.object" | "stripe.id" | "stripe.metadata" | "stripe.url" | "stripe.created" | "stripe.livemode" | `stripe.metadata.${string}` | "stripe.name" | "stripe.description" | "stripe.statement_descriptor" | "stripe.active" | "stripe.images" | "stripe.package_dimensions" | "stripe.shippable" | "stripe.unit_label" | "stripe.updated" | "stripe.marketing_features" | "stripe.default_price" | "stripe.package_dimensions.length" | "stripe.package_dimensions.height" | "stripe.package_dimensions.weight" | "stripe.package_dimensions.width">, {
|
|
1855
|
+
byActive: ["stripe.active", "_creationTime"];
|
|
1856
|
+
byName: ["stripe.name", "_creationTime"];
|
|
1857
|
+
}, {}, {}>;
|
|
1858
|
+
stripe_prices: import('convex/server').TableDefinition<import('convex/values').VObject<{
|
|
1859
|
+
stripe: {
|
|
1860
|
+
metadata?: Record<string, string | number | null> | null | undefined;
|
|
1861
|
+
object: string;
|
|
1862
|
+
type: "one_time" | "recurring";
|
|
1863
|
+
id: string;
|
|
1864
|
+
currency: string;
|
|
1865
|
+
created: number;
|
|
1866
|
+
livemode: boolean;
|
|
1867
|
+
recurring: {
|
|
1868
|
+
interval: "day" | "week" | "month" | "year";
|
|
1869
|
+
interval_count: number;
|
|
1870
|
+
trial_period_days: number | null;
|
|
1871
|
+
meter: string | null;
|
|
1872
|
+
usage_type: "licensed" | "metered";
|
|
1873
|
+
} | null;
|
|
1874
|
+
active: boolean;
|
|
1875
|
+
nickname: string | null;
|
|
1876
|
+
productId: string;
|
|
1877
|
+
unit_amount: number | null;
|
|
1878
|
+
billing_scheme: "per_unit" | "tiered";
|
|
1879
|
+
lookup_key: string | null;
|
|
1880
|
+
tiers_mode: "graduated" | "volume" | null;
|
|
1881
|
+
transform_quantity: {
|
|
1882
|
+
divide_by: number;
|
|
1883
|
+
round: "up" | "down";
|
|
1884
|
+
} | null;
|
|
1885
|
+
unit_amount_decimal: string | null;
|
|
1886
|
+
};
|
|
1887
|
+
last_synced_at: number;
|
|
1888
|
+
priceId: string;
|
|
1889
|
+
}, {
|
|
1890
|
+
priceId: import('convex/values').VString<string, "required">;
|
|
1891
|
+
stripe: import('convex/values').VObject<{
|
|
1892
|
+
metadata?: Record<string, string | number | null> | null | undefined;
|
|
1893
|
+
object: string;
|
|
1894
|
+
type: "one_time" | "recurring";
|
|
1895
|
+
id: string;
|
|
1896
|
+
currency: string;
|
|
1897
|
+
created: number;
|
|
1898
|
+
livemode: boolean;
|
|
1899
|
+
recurring: {
|
|
1900
|
+
interval: "day" | "week" | "month" | "year";
|
|
1901
|
+
interval_count: number;
|
|
1902
|
+
trial_period_days: number | null;
|
|
1903
|
+
meter: string | null;
|
|
1904
|
+
usage_type: "licensed" | "metered";
|
|
1905
|
+
} | null;
|
|
1906
|
+
active: boolean;
|
|
1907
|
+
nickname: string | null;
|
|
1908
|
+
productId: string;
|
|
1909
|
+
unit_amount: number | null;
|
|
1910
|
+
billing_scheme: "per_unit" | "tiered";
|
|
1911
|
+
lookup_key: string | null;
|
|
1912
|
+
tiers_mode: "graduated" | "volume" | null;
|
|
1913
|
+
transform_quantity: {
|
|
1914
|
+
divide_by: number;
|
|
1915
|
+
round: "up" | "down";
|
|
1916
|
+
} | null;
|
|
1917
|
+
unit_amount_decimal: string | null;
|
|
1918
|
+
}, {
|
|
1919
|
+
id: import('convex/values').VString<string, "required">;
|
|
1920
|
+
object: import('convex/values').VString<string, "required">;
|
|
1921
|
+
active: import('convex/values').VBoolean<boolean, "required">;
|
|
1922
|
+
currency: import('convex/values').VString<string, "required">;
|
|
1923
|
+
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>;
|
|
1924
|
+
nickname: import('convex/values').VUnion<string | null, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "required", never>;
|
|
1925
|
+
recurring: import('convex/values').VUnion<{
|
|
1926
|
+
interval: "day" | "week" | "month" | "year";
|
|
1927
|
+
interval_count: number;
|
|
1928
|
+
trial_period_days: number | null;
|
|
1929
|
+
meter: string | null;
|
|
1930
|
+
usage_type: "licensed" | "metered";
|
|
1931
|
+
} | null, [import('convex/values').VObject<{
|
|
1932
|
+
interval: "day" | "week" | "month" | "year";
|
|
1933
|
+
interval_count: number;
|
|
1934
|
+
trial_period_days: number | null;
|
|
1935
|
+
meter: string | null;
|
|
1936
|
+
usage_type: "licensed" | "metered";
|
|
1937
|
+
}, {
|
|
1938
|
+
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>;
|
|
1939
|
+
interval_count: import('convex/values').VFloat64<number, "required">;
|
|
1940
|
+
trial_period_days: import('convex/values').VUnion<number | null, [import('convex/values').VFloat64<number, "required">, import('convex/values').VNull<null, "required">], "required", never>;
|
|
1941
|
+
meter: import('convex/values').VUnion<string | null, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "required", never>;
|
|
1942
|
+
usage_type: import('convex/values').VUnion<"licensed" | "metered", [import('convex/values').VLiteral<"licensed", "required">, import('convex/values').VLiteral<"metered", "required">], "required", never>;
|
|
1943
|
+
}, "required", "interval" | "interval_count" | "trial_period_days" | "meter" | "usage_type">, import('convex/values').VNull<null, "required">], "required", "interval" | "interval_count" | "trial_period_days" | "meter" | "usage_type">;
|
|
1944
|
+
productId: import('convex/values').VString<string, "required">;
|
|
1945
|
+
type: import('convex/values').VUnion<"one_time" | "recurring", [import('convex/values').VLiteral<"one_time", "required">, import('convex/values').VLiteral<"recurring", "required">], "required", never>;
|
|
1946
|
+
unit_amount: import('convex/values').VUnion<number | null, [import('convex/values').VFloat64<number, "required">, import('convex/values').VNull<null, "required">], "required", never>;
|
|
1947
|
+
billing_scheme: import('convex/values').VUnion<"per_unit" | "tiered", [import('convex/values').VLiteral<"per_unit", "required">, import('convex/values').VLiteral<"tiered", "required">], "required", never>;
|
|
1948
|
+
created: import('convex/values').VFloat64<number, "required">;
|
|
1949
|
+
livemode: import('convex/values').VBoolean<boolean, "required">;
|
|
1950
|
+
lookup_key: import('convex/values').VUnion<string | null, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "required", never>;
|
|
1951
|
+
tiers_mode: import('convex/values').VUnion<"graduated" | "volume" | null, [import('convex/values').VLiteral<"graduated", "required">, import('convex/values').VLiteral<"volume", "required">, import('convex/values').VNull<null, "required">], "required", never>;
|
|
1952
|
+
transform_quantity: import('convex/values').VUnion<{
|
|
1953
|
+
divide_by: number;
|
|
1954
|
+
round: "up" | "down";
|
|
1955
|
+
} | null, [import('convex/values').VObject<{
|
|
1956
|
+
divide_by: number;
|
|
1957
|
+
round: "up" | "down";
|
|
1958
|
+
}, {
|
|
1959
|
+
divide_by: import('convex/values').VFloat64<number, "required">;
|
|
1960
|
+
round: import('convex/values').VUnion<"up" | "down", [import('convex/values').VLiteral<"up", "required">, import('convex/values').VLiteral<"down", "required">], "required", never>;
|
|
1961
|
+
}, "required", "divide_by" | "round">, import('convex/values').VNull<null, "required">], "required", "divide_by" | "round">;
|
|
1962
|
+
unit_amount_decimal: import('convex/values').VUnion<string | null, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "required", never>;
|
|
1963
|
+
}, "required", "object" | "type" | "id" | "currency" | "metadata" | "created" | "livemode" | `metadata.${string}` | "recurring" | "active" | "nickname" | "productId" | "unit_amount" | "billing_scheme" | "lookup_key" | "tiers_mode" | "transform_quantity" | "unit_amount_decimal" | "recurring.interval" | "recurring.interval_count" | "recurring.trial_period_days" | "recurring.meter" | "recurring.usage_type" | "transform_quantity.divide_by" | "transform_quantity.round">;
|
|
1964
|
+
last_synced_at: import('convex/values').VFloat64<number, "required">;
|
|
1965
|
+
}, "required", "stripe" | "last_synced_at" | "stripe.object" | "stripe.id" | "stripe.metadata" | "stripe.created" | "stripe.livemode" | `stripe.metadata.${string}` | "stripe.active" | "priceId" | "stripe.type" | "stripe.currency" | "stripe.recurring" | "stripe.nickname" | "stripe.productId" | "stripe.unit_amount" | "stripe.billing_scheme" | "stripe.lookup_key" | "stripe.tiers_mode" | "stripe.transform_quantity" | "stripe.unit_amount_decimal" | "stripe.recurring.interval" | "stripe.recurring.interval_count" | "stripe.recurring.trial_period_days" | "stripe.recurring.meter" | "stripe.recurring.usage_type" | "stripe.transform_quantity.divide_by" | "stripe.transform_quantity.round">, {
|
|
1966
|
+
byPriceId: ["priceId", "_creationTime"];
|
|
1967
|
+
byActive: ["stripe.active", "_creationTime"];
|
|
1968
|
+
byRecurringInterval: ["stripe.recurring.interval", "_creationTime"];
|
|
1969
|
+
byCurrency: ["stripe.currency", "_creationTime"];
|
|
1970
|
+
}, {}, {}>;
|
|
1971
|
+
stripe_customers: import('convex/server').TableDefinition<import('convex/values').VObject<{
|
|
1972
|
+
stripe: {
|
|
1973
|
+
currency?: string | null | undefined;
|
|
1974
|
+
metadata?: Record<string, string | number | null> | null | undefined;
|
|
1975
|
+
name?: string | null | undefined;
|
|
1976
|
+
address?: {
|
|
1977
|
+
city?: string | null | undefined;
|
|
1978
|
+
country?: string | null | undefined;
|
|
1979
|
+
line1?: string | null | undefined;
|
|
1980
|
+
line2?: string | null | undefined;
|
|
1981
|
+
postal_code?: string | null | undefined;
|
|
1982
|
+
state?: string | null | undefined;
|
|
1983
|
+
} | null | undefined;
|
|
1984
|
+
phone?: string | null | undefined;
|
|
1985
|
+
description?: string | null | undefined;
|
|
1986
|
+
email?: string | null | undefined;
|
|
1987
|
+
shipping?: {
|
|
1988
|
+
name?: string | undefined;
|
|
1989
|
+
address?: {
|
|
1990
|
+
city?: string | null | undefined;
|
|
1991
|
+
country?: string | null | undefined;
|
|
1992
|
+
line1?: string | null | undefined;
|
|
1993
|
+
line2?: string | null | undefined;
|
|
1994
|
+
postal_code?: string | null | undefined;
|
|
1995
|
+
state?: string | null | undefined;
|
|
1996
|
+
} | undefined;
|
|
1997
|
+
phone?: string | null | undefined;
|
|
1998
|
+
carrier?: string | null | undefined;
|
|
1999
|
+
tracking_number?: string | null | undefined;
|
|
2000
|
+
} | null | undefined;
|
|
2001
|
+
tax?: {
|
|
2002
|
+
ip_address?: string | null | undefined;
|
|
2003
|
+
automatic_tax: "failed" | "not_collecting" | "supported" | "unrecognized_location";
|
|
2004
|
+
location: {
|
|
2005
|
+
state?: string | null | undefined;
|
|
2006
|
+
country: string;
|
|
2007
|
+
source: string;
|
|
2008
|
+
} | null;
|
|
2009
|
+
} | undefined;
|
|
2010
|
+
cash_balance?: any;
|
|
2011
|
+
default_source?: string | null | undefined;
|
|
2012
|
+
delinquent?: boolean | null | undefined;
|
|
2013
|
+
discount?: any;
|
|
2014
|
+
invoice_credit_balance?: any;
|
|
2015
|
+
invoice_prefix?: string | null | undefined;
|
|
2016
|
+
invoice_settings?: any;
|
|
2017
|
+
next_invoice_sequence?: number | null | undefined;
|
|
2018
|
+
preferred_locales?: string[] | null | undefined;
|
|
2019
|
+
sources?: any;
|
|
2020
|
+
subscriptions?: any;
|
|
2021
|
+
tax_exempt?: "reverse" | "exempt" | "none" | null | undefined;
|
|
2022
|
+
tax_ids?: any;
|
|
2023
|
+
test_clock?: string | null | undefined;
|
|
2024
|
+
object: string;
|
|
2025
|
+
id: string;
|
|
2026
|
+
created: number;
|
|
2027
|
+
livemode: boolean;
|
|
2028
|
+
balance: number;
|
|
2029
|
+
};
|
|
2030
|
+
last_synced_at: number;
|
|
2031
|
+
customerId: string;
|
|
2032
|
+
entityId: string;
|
|
2033
|
+
}, {
|
|
2034
|
+
customerId: import('convex/values').VString<string, "required">;
|
|
2035
|
+
entityId: import('convex/values').VString<string, "required">;
|
|
2036
|
+
stripe: import('convex/values').VObject<{
|
|
2037
|
+
currency?: string | null | undefined;
|
|
2038
|
+
metadata?: Record<string, string | number | null> | null | undefined;
|
|
2039
|
+
name?: string | null | undefined;
|
|
2040
|
+
address?: {
|
|
2041
|
+
city?: string | null | undefined;
|
|
2042
|
+
country?: string | null | undefined;
|
|
2043
|
+
line1?: string | null | undefined;
|
|
2044
|
+
line2?: string | null | undefined;
|
|
2045
|
+
postal_code?: string | null | undefined;
|
|
2046
|
+
state?: string | null | undefined;
|
|
2047
|
+
} | null | undefined;
|
|
2048
|
+
phone?: string | null | undefined;
|
|
2049
|
+
description?: string | null | undefined;
|
|
2050
|
+
email?: string | null | undefined;
|
|
2051
|
+
shipping?: {
|
|
2052
|
+
name?: string | undefined;
|
|
2053
|
+
address?: {
|
|
2054
|
+
city?: string | null | undefined;
|
|
2055
|
+
country?: string | null | undefined;
|
|
2056
|
+
line1?: string | null | undefined;
|
|
2057
|
+
line2?: string | null | undefined;
|
|
2058
|
+
postal_code?: string | null | undefined;
|
|
2059
|
+
state?: string | null | undefined;
|
|
2060
|
+
} | undefined;
|
|
2061
|
+
phone?: string | null | undefined;
|
|
2062
|
+
carrier?: string | null | undefined;
|
|
2063
|
+
tracking_number?: string | null | undefined;
|
|
2064
|
+
} | null | undefined;
|
|
2065
|
+
tax?: {
|
|
2066
|
+
ip_address?: string | null | undefined;
|
|
2067
|
+
automatic_tax: "failed" | "not_collecting" | "supported" | "unrecognized_location";
|
|
2068
|
+
location: {
|
|
2069
|
+
state?: string | null | undefined;
|
|
2070
|
+
country: string;
|
|
2071
|
+
source: string;
|
|
2072
|
+
} | null;
|
|
2073
|
+
} | undefined;
|
|
2074
|
+
cash_balance?: any;
|
|
2075
|
+
default_source?: string | null | undefined;
|
|
2076
|
+
delinquent?: boolean | null | undefined;
|
|
2077
|
+
discount?: any;
|
|
2078
|
+
invoice_credit_balance?: any;
|
|
2079
|
+
invoice_prefix?: string | null | undefined;
|
|
2080
|
+
invoice_settings?: any;
|
|
2081
|
+
next_invoice_sequence?: number | null | undefined;
|
|
2082
|
+
preferred_locales?: string[] | null | undefined;
|
|
2083
|
+
sources?: any;
|
|
2084
|
+
subscriptions?: any;
|
|
2085
|
+
tax_exempt?: "reverse" | "exempt" | "none" | null | undefined;
|
|
2086
|
+
tax_ids?: any;
|
|
2087
|
+
test_clock?: string | null | undefined;
|
|
2088
|
+
object: string;
|
|
2089
|
+
id: string;
|
|
2090
|
+
created: number;
|
|
2091
|
+
livemode: boolean;
|
|
2092
|
+
balance: number;
|
|
2093
|
+
}, {
|
|
2094
|
+
id: import('convex/values').VString<string, "required">;
|
|
2095
|
+
address: import('convex/values').VUnion<{
|
|
2096
|
+
city?: string | null | undefined;
|
|
2097
|
+
country?: string | null | undefined;
|
|
2098
|
+
line1?: string | null | undefined;
|
|
2099
|
+
line2?: string | null | undefined;
|
|
2100
|
+
postal_code?: string | null | undefined;
|
|
2101
|
+
state?: string | null | undefined;
|
|
2102
|
+
} | null | undefined, [import('convex/values').VObject<{
|
|
2103
|
+
city?: string | null | undefined;
|
|
2104
|
+
country?: string | null | undefined;
|
|
2105
|
+
line1?: string | null | undefined;
|
|
2106
|
+
line2?: string | null | undefined;
|
|
2107
|
+
postal_code?: string | null | undefined;
|
|
2108
|
+
state?: string | null | undefined;
|
|
2109
|
+
}, {
|
|
2110
|
+
city: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
2111
|
+
country: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
2112
|
+
line1: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
2113
|
+
line2: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
2114
|
+
postal_code: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
2115
|
+
state: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
2116
|
+
}, "required", "city" | "country" | "line1" | "line2" | "postal_code" | "state">, import('convex/values').VNull<null, "required">], "optional", "city" | "country" | "line1" | "line2" | "postal_code" | "state">;
|
|
2117
|
+
description: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
2118
|
+
email: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
2119
|
+
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>;
|
|
2120
|
+
name: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
2121
|
+
phone: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
2122
|
+
shipping: import('convex/values').VUnion<{
|
|
2123
|
+
name?: string | undefined;
|
|
2124
|
+
address?: {
|
|
2125
|
+
city?: string | null | undefined;
|
|
2126
|
+
country?: string | null | undefined;
|
|
2127
|
+
line1?: string | null | undefined;
|
|
2128
|
+
line2?: string | null | undefined;
|
|
2129
|
+
postal_code?: string | null | undefined;
|
|
2130
|
+
state?: string | null | undefined;
|
|
2131
|
+
} | undefined;
|
|
2132
|
+
phone?: string | null | undefined;
|
|
2133
|
+
carrier?: string | null | undefined;
|
|
2134
|
+
tracking_number?: string | null | undefined;
|
|
2135
|
+
} | null | undefined, [import('convex/values').VObject<{
|
|
2136
|
+
name?: string | undefined;
|
|
2137
|
+
address?: {
|
|
2138
|
+
city?: string | null | undefined;
|
|
2139
|
+
country?: string | null | undefined;
|
|
2140
|
+
line1?: string | null | undefined;
|
|
2141
|
+
line2?: string | null | undefined;
|
|
2142
|
+
postal_code?: string | null | undefined;
|
|
2143
|
+
state?: string | null | undefined;
|
|
2144
|
+
} | undefined;
|
|
2145
|
+
phone?: string | null | undefined;
|
|
2146
|
+
carrier?: string | null | undefined;
|
|
2147
|
+
tracking_number?: string | null | undefined;
|
|
2148
|
+
}, {
|
|
2149
|
+
address: import('convex/values').VObject<{
|
|
2150
|
+
city?: string | null | undefined;
|
|
2151
|
+
country?: string | null | undefined;
|
|
2152
|
+
line1?: string | null | undefined;
|
|
2153
|
+
line2?: string | null | undefined;
|
|
2154
|
+
postal_code?: string | null | undefined;
|
|
2155
|
+
state?: string | null | undefined;
|
|
2156
|
+
} | undefined, {
|
|
2157
|
+
city: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
2158
|
+
country: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
2159
|
+
line1: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
2160
|
+
line2: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
2161
|
+
postal_code: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
2162
|
+
state: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
2163
|
+
}, "optional", "city" | "country" | "line1" | "line2" | "postal_code" | "state">;
|
|
2164
|
+
name: import('convex/values').VString<string | undefined, "optional">;
|
|
2165
|
+
phone: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
2166
|
+
carrier: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
2167
|
+
tracking_number: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
2168
|
+
}, "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">;
|
|
2169
|
+
tax: import('convex/values').VObject<{
|
|
2170
|
+
ip_address?: string | null | undefined;
|
|
2171
|
+
automatic_tax: "failed" | "not_collecting" | "supported" | "unrecognized_location";
|
|
2172
|
+
location: {
|
|
2173
|
+
state?: string | null | undefined;
|
|
2174
|
+
country: string;
|
|
2175
|
+
source: string;
|
|
2176
|
+
} | null;
|
|
2177
|
+
} | undefined, {
|
|
2178
|
+
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>;
|
|
2179
|
+
ip_address: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
2180
|
+
location: import('convex/values').VUnion<{
|
|
2181
|
+
state?: string | null | undefined;
|
|
2182
|
+
country: string;
|
|
2183
|
+
source: string;
|
|
2184
|
+
} | null, [import('convex/values').VObject<{
|
|
2185
|
+
state?: string | null | undefined;
|
|
2186
|
+
country: string;
|
|
2187
|
+
source: string;
|
|
2188
|
+
}, {
|
|
2189
|
+
country: import('convex/values').VString<string, "required">;
|
|
2190
|
+
source: import('convex/values').VString<string, "required">;
|
|
2191
|
+
state: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
2192
|
+
}, "required", "country" | "state" | "source">, import('convex/values').VNull<null, "required">], "required", "country" | "state" | "source">;
|
|
2193
|
+
}, "optional", "automatic_tax" | "ip_address" | "location" | "location.country" | "location.state" | "location.source">;
|
|
2194
|
+
object: import('convex/values').VString<string, "required">;
|
|
2195
|
+
balance: import('convex/values').VFloat64<number, "required">;
|
|
2196
|
+
cash_balance: import('convex/values').VUnion<any, [import('convex/values').VAny<any, "required", string>, import('convex/values').VNull<null, "required">], "optional", string>;
|
|
2197
|
+
created: import('convex/values').VFloat64<number, "required">;
|
|
2198
|
+
currency: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
2199
|
+
default_source: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
2200
|
+
delinquent: import('convex/values').VUnion<boolean | null | undefined, [import('convex/values').VBoolean<boolean, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
2201
|
+
discount: import('convex/values').VUnion<any, [import('convex/values').VAny<any, "required", string>, import('convex/values').VNull<null, "required">], "optional", string>;
|
|
2202
|
+
invoice_credit_balance: import('convex/values').VAny<any, "optional", string>;
|
|
2203
|
+
invoice_prefix: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
2204
|
+
invoice_settings: import('convex/values').VAny<any, "optional", string>;
|
|
2205
|
+
livemode: import('convex/values').VBoolean<boolean, "required">;
|
|
2206
|
+
next_invoice_sequence: import('convex/values').VUnion<number | null | undefined, [import('convex/values').VFloat64<number, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
2207
|
+
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>;
|
|
2208
|
+
sources: import('convex/values').VUnion<any, [import('convex/values').VAny<any, "required", string>, import('convex/values').VNull<null, "required">], "optional", string>;
|
|
2209
|
+
subscriptions: import('convex/values').VUnion<any, [import('convex/values').VAny<any, "required", string>, import('convex/values').VNull<null, "required">], "optional", string>;
|
|
2210
|
+
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>;
|
|
2211
|
+
tax_ids: import('convex/values').VUnion<any, [import('convex/values').VAny<any, "required", string>, import('convex/values').VNull<null, "required">], "optional", string>;
|
|
2212
|
+
test_clock: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
2213
|
+
}, "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}`>;
|
|
2214
|
+
last_synced_at: import('convex/values').VFloat64<number, "required">;
|
|
2215
|
+
}, "required", "stripe" | "last_synced_at" | "stripe.object" | "stripe.id" | "stripe.metadata" | "stripe.created" | "stripe.livemode" | `stripe.metadata.${string}` | "stripe.name" | "stripe.description" | "stripe.currency" | "customerId" | "entityId" | "stripe.address" | "stripe.phone" | "stripe.address.city" | "stripe.address.country" | "stripe.address.line1" | "stripe.address.line2" | "stripe.address.postal_code" | "stripe.address.state" | "stripe.email" | "stripe.shipping" | "stripe.tax" | "stripe.balance" | "stripe.cash_balance" | "stripe.default_source" | "stripe.delinquent" | "stripe.discount" | "stripe.invoice_credit_balance" | "stripe.invoice_prefix" | "stripe.invoice_settings" | "stripe.next_invoice_sequence" | "stripe.preferred_locales" | "stripe.sources" | "stripe.subscriptions" | "stripe.tax_exempt" | "stripe.tax_ids" | "stripe.test_clock" | "stripe.shipping.name" | "stripe.shipping.address" | "stripe.shipping.phone" | "stripe.shipping.carrier" | "stripe.shipping.tracking_number" | "stripe.shipping.address.city" | "stripe.shipping.address.country" | "stripe.shipping.address.line1" | "stripe.shipping.address.line2" | "stripe.shipping.address.postal_code" | "stripe.shipping.address.state" | "stripe.tax.automatic_tax" | "stripe.tax.ip_address" | "stripe.tax.location" | "stripe.tax.location.country" | "stripe.tax.location.state" | "stripe.tax.location.source" | `stripe.cash_balance.${string}` | `stripe.discount.${string}` | `stripe.invoice_credit_balance.${string}` | `stripe.invoice_settings.${string}` | `stripe.sources.${string}` | `stripe.subscriptions.${string}` | `stripe.tax_ids.${string}`>, {
|
|
2216
|
+
byCustomerId: ["customerId", "_creationTime"];
|
|
2217
|
+
byEntityId: ["entityId", "_creationTime"];
|
|
2218
|
+
}, {}, {}>;
|
|
2219
|
+
stripe_subscriptions: import('convex/server').TableDefinition<import('convex/values').VObject<{
|
|
2220
|
+
stripe: any;
|
|
2221
|
+
last_synced_at: number;
|
|
2222
|
+
customerId: string;
|
|
2223
|
+
subscriptionId: string | null;
|
|
2224
|
+
}, {
|
|
2225
|
+
subscriptionId: import('convex/values').VUnion<string | null, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "required", never>;
|
|
2226
|
+
customerId: import('convex/values').VString<string, "required">;
|
|
2227
|
+
stripe: import('convex/values').VAny<any, "required", string>;
|
|
2228
|
+
last_synced_at: import('convex/values').VFloat64<number, "required">;
|
|
2229
|
+
}, "required", "stripe" | "last_synced_at" | "customerId" | "subscriptionId" | `stripe.${string}`>, {
|
|
2230
|
+
bySubscriptionId: ["subscriptionId", "_creationTime"];
|
|
2231
|
+
byCustomerId: ["customerId", "_creationTime"];
|
|
2232
|
+
}, {}, {}>;
|
|
2233
|
+
stripe_coupons: import('convex/server').TableDefinition<import('convex/values').VObject<{
|
|
2234
|
+
stripe: {
|
|
2235
|
+
currency?: string | null | undefined;
|
|
2236
|
+
metadata?: Record<string, string | number | null> | null | undefined;
|
|
2237
|
+
amount_off?: number | null | undefined;
|
|
2238
|
+
name?: string | null | undefined;
|
|
2239
|
+
percent_off?: number | null | undefined;
|
|
2240
|
+
applies_to?: {
|
|
2241
|
+
products: string[];
|
|
2242
|
+
} | null | undefined;
|
|
2243
|
+
currency_options?: Record<string, {
|
|
2244
|
+
amount_off: number;
|
|
2245
|
+
}> | null | undefined;
|
|
2246
|
+
duration_in_months?: number | null | undefined;
|
|
2247
|
+
max_redemptions?: number | null | undefined;
|
|
2248
|
+
redeem_by?: number | null | undefined;
|
|
2249
|
+
object: string;
|
|
2250
|
+
id: string;
|
|
2251
|
+
created: number;
|
|
2252
|
+
livemode: boolean;
|
|
2253
|
+
duration: "forever" | "once" | "repeating";
|
|
2254
|
+
times_redeemed: number;
|
|
2255
|
+
valid: boolean;
|
|
2256
|
+
};
|
|
2257
|
+
last_synced_at: number;
|
|
2258
|
+
couponId: string;
|
|
2259
|
+
}, {
|
|
2260
|
+
couponId: import('convex/values').VString<string, "required">;
|
|
2261
|
+
stripe: import('convex/values').VObject<{
|
|
2262
|
+
currency?: string | null | undefined;
|
|
2263
|
+
metadata?: Record<string, string | number | null> | null | undefined;
|
|
2264
|
+
amount_off?: number | null | undefined;
|
|
2265
|
+
name?: string | null | undefined;
|
|
2266
|
+
percent_off?: number | null | undefined;
|
|
2267
|
+
applies_to?: {
|
|
2268
|
+
products: string[];
|
|
2269
|
+
} | null | undefined;
|
|
2270
|
+
currency_options?: Record<string, {
|
|
2271
|
+
amount_off: number;
|
|
2272
|
+
}> | null | undefined;
|
|
2273
|
+
duration_in_months?: number | null | undefined;
|
|
2274
|
+
max_redemptions?: number | null | undefined;
|
|
2275
|
+
redeem_by?: number | null | undefined;
|
|
2276
|
+
object: string;
|
|
2277
|
+
id: string;
|
|
2278
|
+
created: number;
|
|
2279
|
+
livemode: boolean;
|
|
2280
|
+
duration: "forever" | "once" | "repeating";
|
|
2281
|
+
times_redeemed: number;
|
|
2282
|
+
valid: boolean;
|
|
2283
|
+
}, {
|
|
2284
|
+
id: import('convex/values').VString<string, "required">;
|
|
2285
|
+
amount_off: import('convex/values').VUnion<number | null | undefined, [import('convex/values').VFloat64<number, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
2286
|
+
currency: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
2287
|
+
duration: import('convex/values').VUnion<"forever" | "once" | "repeating", [import('convex/values').VLiteral<"forever", "required">, import('convex/values').VLiteral<"once", "required">, import('convex/values').VLiteral<"repeating", "required">], "required", never>;
|
|
2288
|
+
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>;
|
|
2289
|
+
name: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
2290
|
+
percent_off: import('convex/values').VUnion<number | null | undefined, [import('convex/values').VFloat64<number, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
2291
|
+
object: import('convex/values').VString<string, "required">;
|
|
2292
|
+
applies_to: import('convex/values').VUnion<{
|
|
2293
|
+
products: string[];
|
|
2294
|
+
} | null | undefined, [import('convex/values').VObject<{
|
|
2295
|
+
products: string[];
|
|
2296
|
+
}, {
|
|
2297
|
+
products: import('convex/values').VArray<string[], import('convex/values').VString<string, "required">, "required">;
|
|
2298
|
+
}, "required", "products">, import('convex/values').VNull<null, "required">], "optional", "products">;
|
|
2299
|
+
created: import('convex/values').VFloat64<number, "required">;
|
|
2300
|
+
currency_options: import('convex/values').VUnion<Record<string, {
|
|
2301
|
+
amount_off: number;
|
|
2302
|
+
}> | null | undefined, [import('convex/values').VRecord<Record<string, {
|
|
2303
|
+
amount_off: number;
|
|
2304
|
+
}>, import('convex/values').VString<string, "required">, import('convex/values').VObject<{
|
|
2305
|
+
amount_off: number;
|
|
2306
|
+
}, {
|
|
2307
|
+
amount_off: import('convex/values').VFloat64<number, "required">;
|
|
2308
|
+
}, "required", "amount_off">, "required", string>, import('convex/values').VNull<null, "required">], "optional", string>;
|
|
2309
|
+
duration_in_months: import('convex/values').VUnion<number | null | undefined, [import('convex/values').VFloat64<number, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
2310
|
+
livemode: import('convex/values').VBoolean<boolean, "required">;
|
|
2311
|
+
max_redemptions: import('convex/values').VUnion<number | null | undefined, [import('convex/values').VFloat64<number, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
2312
|
+
redeem_by: import('convex/values').VUnion<number | null | undefined, [import('convex/values').VFloat64<number, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
2313
|
+
times_redeemed: import('convex/values').VFloat64<number, "required">;
|
|
2314
|
+
valid: import('convex/values').VBoolean<boolean, "required">;
|
|
2315
|
+
}, "required", "object" | "id" | "currency" | "metadata" | "created" | "livemode" | `metadata.${string}` | "amount_off" | "duration" | "name" | "percent_off" | "applies_to" | "currency_options" | "duration_in_months" | "max_redemptions" | "redeem_by" | "times_redeemed" | "valid" | "applies_to.products" | `currency_options.${string}`>;
|
|
2316
|
+
last_synced_at: import('convex/values').VFloat64<number, "required">;
|
|
2317
|
+
}, "required", "stripe" | "last_synced_at" | "stripe.object" | "stripe.id" | "stripe.metadata" | "stripe.created" | "stripe.livemode" | `stripe.metadata.${string}` | "stripe.name" | "stripe.currency" | "couponId" | "stripe.amount_off" | "stripe.duration" | "stripe.percent_off" | "stripe.applies_to" | "stripe.currency_options" | "stripe.duration_in_months" | "stripe.max_redemptions" | "stripe.redeem_by" | "stripe.times_redeemed" | "stripe.valid" | "stripe.applies_to.products" | `stripe.currency_options.${string}`>, {
|
|
2318
|
+
byCouponId: ["couponId", "_creationTime"];
|
|
2319
|
+
}, {}, {}>;
|
|
2320
|
+
stripe_promotion_codes: import('convex/server').TableDefinition<import('convex/values').VObject<{
|
|
2321
|
+
stripe: {
|
|
2322
|
+
customer?: string | null | undefined;
|
|
2323
|
+
metadata?: Record<string, string | number | null> | null | undefined;
|
|
2324
|
+
expires_at?: number | null | undefined;
|
|
2325
|
+
max_redemptions?: number | null | undefined;
|
|
2326
|
+
object: string;
|
|
2327
|
+
id: string;
|
|
2328
|
+
created: number;
|
|
2329
|
+
livemode: boolean;
|
|
2330
|
+
times_redeemed: number;
|
|
2331
|
+
coupon: {
|
|
2332
|
+
currency?: string | null | undefined;
|
|
2333
|
+
metadata?: Record<string, string | number | null> | null | undefined;
|
|
2334
|
+
amount_off?: number | null | undefined;
|
|
2335
|
+
name?: string | null | undefined;
|
|
2336
|
+
percent_off?: number | null | undefined;
|
|
2337
|
+
applies_to?: {
|
|
2338
|
+
products: string[];
|
|
2339
|
+
} | null | undefined;
|
|
2340
|
+
currency_options?: Record<string, {
|
|
2341
|
+
amount_off: number;
|
|
2342
|
+
}> | null | undefined;
|
|
2343
|
+
duration_in_months?: number | null | undefined;
|
|
2344
|
+
max_redemptions?: number | null | undefined;
|
|
2345
|
+
redeem_by?: number | null | undefined;
|
|
2346
|
+
object: string;
|
|
2347
|
+
id: string;
|
|
2348
|
+
created: number;
|
|
2349
|
+
livemode: boolean;
|
|
2350
|
+
duration: "forever" | "once" | "repeating";
|
|
2351
|
+
times_redeemed: number;
|
|
2352
|
+
valid: boolean;
|
|
2353
|
+
};
|
|
2354
|
+
code: string;
|
|
2355
|
+
active: boolean;
|
|
2356
|
+
restrictions: {
|
|
2357
|
+
currency_options?: Record<string, {
|
|
2358
|
+
minimum_amount?: number | null | undefined;
|
|
2359
|
+
}> | null | undefined;
|
|
2360
|
+
minimum_amount?: number | null | undefined;
|
|
2361
|
+
first_time_transaction?: boolean | undefined;
|
|
2362
|
+
minimum_amount_currency?: string | null | undefined;
|
|
2363
|
+
};
|
|
2364
|
+
};
|
|
2365
|
+
last_synced_at: number;
|
|
2366
|
+
promotionCodeId: string;
|
|
2367
|
+
}, {
|
|
2368
|
+
promotionCodeId: import('convex/values').VString<string, "required">;
|
|
2369
|
+
stripe: import('convex/values').VObject<{
|
|
2370
|
+
customer?: string | null | undefined;
|
|
2371
|
+
metadata?: Record<string, string | number | null> | null | undefined;
|
|
2372
|
+
expires_at?: number | null | undefined;
|
|
2373
|
+
max_redemptions?: number | null | undefined;
|
|
2374
|
+
object: string;
|
|
2375
|
+
id: string;
|
|
2376
|
+
created: number;
|
|
2377
|
+
livemode: boolean;
|
|
2378
|
+
times_redeemed: number;
|
|
2379
|
+
coupon: {
|
|
2380
|
+
currency?: string | null | undefined;
|
|
2381
|
+
metadata?: Record<string, string | number | null> | null | undefined;
|
|
2382
|
+
amount_off?: number | null | undefined;
|
|
2383
|
+
name?: string | null | undefined;
|
|
2384
|
+
percent_off?: number | null | undefined;
|
|
2385
|
+
applies_to?: {
|
|
2386
|
+
products: string[];
|
|
2387
|
+
} | null | undefined;
|
|
2388
|
+
currency_options?: Record<string, {
|
|
2389
|
+
amount_off: number;
|
|
2390
|
+
}> | null | undefined;
|
|
2391
|
+
duration_in_months?: number | null | undefined;
|
|
2392
|
+
max_redemptions?: number | null | undefined;
|
|
2393
|
+
redeem_by?: number | null | undefined;
|
|
2394
|
+
object: string;
|
|
2395
|
+
id: string;
|
|
2396
|
+
created: number;
|
|
2397
|
+
livemode: boolean;
|
|
2398
|
+
duration: "forever" | "once" | "repeating";
|
|
2399
|
+
times_redeemed: number;
|
|
2400
|
+
valid: boolean;
|
|
2401
|
+
};
|
|
2402
|
+
code: string;
|
|
2403
|
+
active: boolean;
|
|
2404
|
+
restrictions: {
|
|
2405
|
+
currency_options?: Record<string, {
|
|
2406
|
+
minimum_amount?: number | null | undefined;
|
|
2407
|
+
}> | null | undefined;
|
|
2408
|
+
minimum_amount?: number | null | undefined;
|
|
2409
|
+
first_time_transaction?: boolean | undefined;
|
|
2410
|
+
minimum_amount_currency?: string | null | undefined;
|
|
2411
|
+
};
|
|
2412
|
+
}, {
|
|
2413
|
+
id: import('convex/values').VString<string, "required">;
|
|
2414
|
+
code: import('convex/values').VString<string, "required">;
|
|
2415
|
+
coupon: import('convex/values').VObject<{
|
|
2416
|
+
currency?: string | null | undefined;
|
|
2417
|
+
metadata?: Record<string, string | number | null> | null | undefined;
|
|
2418
|
+
amount_off?: number | null | undefined;
|
|
2419
|
+
name?: string | null | undefined;
|
|
2420
|
+
percent_off?: number | null | undefined;
|
|
2421
|
+
applies_to?: {
|
|
2422
|
+
products: string[];
|
|
2423
|
+
} | null | undefined;
|
|
2424
|
+
currency_options?: Record<string, {
|
|
2425
|
+
amount_off: number;
|
|
2426
|
+
}> | null | undefined;
|
|
2427
|
+
duration_in_months?: number | null | undefined;
|
|
2428
|
+
max_redemptions?: number | null | undefined;
|
|
2429
|
+
redeem_by?: number | null | undefined;
|
|
2430
|
+
object: string;
|
|
2431
|
+
id: string;
|
|
2432
|
+
created: number;
|
|
2433
|
+
livemode: boolean;
|
|
2434
|
+
duration: "forever" | "once" | "repeating";
|
|
2435
|
+
times_redeemed: number;
|
|
2436
|
+
valid: boolean;
|
|
2437
|
+
}, {
|
|
2438
|
+
id: import('convex/values').VString<string, "required">;
|
|
2439
|
+
amount_off: import('convex/values').VUnion<number | null | undefined, [import('convex/values').VFloat64<number, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
2440
|
+
currency: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
2441
|
+
duration: import('convex/values').VUnion<"forever" | "once" | "repeating", [import('convex/values').VLiteral<"forever", "required">, import('convex/values').VLiteral<"once", "required">, import('convex/values').VLiteral<"repeating", "required">], "required", never>;
|
|
2442
|
+
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>;
|
|
2443
|
+
name: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
2444
|
+
percent_off: import('convex/values').VUnion<number | null | undefined, [import('convex/values').VFloat64<number, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
2445
|
+
object: import('convex/values').VString<string, "required">;
|
|
2446
|
+
applies_to: import('convex/values').VUnion<{
|
|
2447
|
+
products: string[];
|
|
2448
|
+
} | null | undefined, [import('convex/values').VObject<{
|
|
2449
|
+
products: string[];
|
|
2450
|
+
}, {
|
|
2451
|
+
products: import('convex/values').VArray<string[], import('convex/values').VString<string, "required">, "required">;
|
|
2452
|
+
}, "required", "products">, import('convex/values').VNull<null, "required">], "optional", "products">;
|
|
2453
|
+
created: import('convex/values').VFloat64<number, "required">;
|
|
2454
|
+
currency_options: import('convex/values').VUnion<Record<string, {
|
|
2455
|
+
amount_off: number;
|
|
2456
|
+
}> | null | undefined, [import('convex/values').VRecord<Record<string, {
|
|
2457
|
+
amount_off: number;
|
|
2458
|
+
}>, import('convex/values').VString<string, "required">, import('convex/values').VObject<{
|
|
2459
|
+
amount_off: number;
|
|
2460
|
+
}, {
|
|
2461
|
+
amount_off: import('convex/values').VFloat64<number, "required">;
|
|
2462
|
+
}, "required", "amount_off">, "required", string>, import('convex/values').VNull<null, "required">], "optional", string>;
|
|
2463
|
+
duration_in_months: import('convex/values').VUnion<number | null | undefined, [import('convex/values').VFloat64<number, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
2464
|
+
livemode: import('convex/values').VBoolean<boolean, "required">;
|
|
2465
|
+
max_redemptions: import('convex/values').VUnion<number | null | undefined, [import('convex/values').VFloat64<number, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
2466
|
+
redeem_by: import('convex/values').VUnion<number | null | undefined, [import('convex/values').VFloat64<number, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
2467
|
+
times_redeemed: import('convex/values').VFloat64<number, "required">;
|
|
2468
|
+
valid: import('convex/values').VBoolean<boolean, "required">;
|
|
2469
|
+
}, "required", "object" | "id" | "currency" | "metadata" | "created" | "livemode" | `metadata.${string}` | "amount_off" | "duration" | "name" | "percent_off" | "applies_to" | "currency_options" | "duration_in_months" | "max_redemptions" | "redeem_by" | "times_redeemed" | "valid" | "applies_to.products" | `currency_options.${string}`>;
|
|
2470
|
+
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>;
|
|
2471
|
+
object: import('convex/values').VString<string, "required">;
|
|
2472
|
+
active: import('convex/values').VBoolean<boolean, "required">;
|
|
2473
|
+
created: import('convex/values').VFloat64<number, "required">;
|
|
2474
|
+
customer: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
2475
|
+
expires_at: import('convex/values').VUnion<number | null | undefined, [import('convex/values').VFloat64<number, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
2476
|
+
livemode: import('convex/values').VBoolean<boolean, "required">;
|
|
2477
|
+
max_redemptions: import('convex/values').VUnion<number | null | undefined, [import('convex/values').VFloat64<number, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
2478
|
+
restrictions: import('convex/values').VObject<{
|
|
2479
|
+
currency_options?: Record<string, {
|
|
2480
|
+
minimum_amount?: number | null | undefined;
|
|
2481
|
+
}> | null | undefined;
|
|
2482
|
+
minimum_amount?: number | null | undefined;
|
|
2483
|
+
first_time_transaction?: boolean | undefined;
|
|
2484
|
+
minimum_amount_currency?: string | null | undefined;
|
|
2485
|
+
}, {
|
|
2486
|
+
currency_options: import('convex/values').VUnion<Record<string, {
|
|
2487
|
+
minimum_amount?: number | null | undefined;
|
|
2488
|
+
}> | null | undefined, [import('convex/values').VRecord<Record<string, {
|
|
2489
|
+
minimum_amount?: number | null | undefined;
|
|
2490
|
+
}>, import('convex/values').VString<string, "required">, import('convex/values').VObject<{
|
|
2491
|
+
minimum_amount?: number | null | undefined;
|
|
2492
|
+
}, {
|
|
2493
|
+
minimum_amount: import('convex/values').VUnion<number | null | undefined, [import('convex/values').VFloat64<number, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
2494
|
+
}, "required", "minimum_amount">, "required", string>, import('convex/values').VNull<null, "required">], "optional", string>;
|
|
2495
|
+
first_time_transaction: import('convex/values').VBoolean<boolean | undefined, "optional">;
|
|
2496
|
+
minimum_amount: import('convex/values').VUnion<number | null | undefined, [import('convex/values').VFloat64<number, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
2497
|
+
minimum_amount_currency: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
2498
|
+
}, "required", "currency_options" | `currency_options.${string}` | "minimum_amount" | "first_time_transaction" | "minimum_amount_currency">;
|
|
2499
|
+
times_redeemed: import('convex/values').VFloat64<number, "required">;
|
|
2500
|
+
}, "required", "object" | "id" | "customer" | "metadata" | "created" | "expires_at" | "livemode" | `metadata.${string}` | "max_redemptions" | "times_redeemed" | "coupon" | "code" | "active" | "restrictions" | "coupon.object" | "coupon.id" | "coupon.currency" | "coupon.metadata" | "coupon.created" | "coupon.livemode" | `coupon.metadata.${string}` | "coupon.amount_off" | "coupon.duration" | "coupon.name" | "coupon.percent_off" | "coupon.applies_to" | "coupon.currency_options" | "coupon.duration_in_months" | "coupon.max_redemptions" | "coupon.redeem_by" | "coupon.times_redeemed" | "coupon.valid" | "coupon.applies_to.products" | `coupon.currency_options.${string}` | "restrictions.currency_options" | `restrictions.currency_options.${string}` | "restrictions.minimum_amount" | "restrictions.first_time_transaction" | "restrictions.minimum_amount_currency">;
|
|
2501
|
+
last_synced_at: import('convex/values').VFloat64<number, "required">;
|
|
2502
|
+
}, "required", "stripe" | "last_synced_at" | "stripe.object" | "stripe.id" | "stripe.metadata" | "stripe.created" | "stripe.livemode" | `stripe.metadata.${string}` | "stripe.active" | "stripe.max_redemptions" | "stripe.times_redeemed" | "promotionCodeId" | "stripe.customer" | "stripe.expires_at" | "stripe.coupon" | "stripe.code" | "stripe.restrictions" | "stripe.coupon.object" | "stripe.coupon.id" | "stripe.coupon.currency" | "stripe.coupon.metadata" | "stripe.coupon.created" | "stripe.coupon.livemode" | `stripe.coupon.metadata.${string}` | "stripe.coupon.amount_off" | "stripe.coupon.duration" | "stripe.coupon.name" | "stripe.coupon.percent_off" | "stripe.coupon.applies_to" | "stripe.coupon.currency_options" | "stripe.coupon.duration_in_months" | "stripe.coupon.max_redemptions" | "stripe.coupon.redeem_by" | "stripe.coupon.times_redeemed" | "stripe.coupon.valid" | "stripe.coupon.applies_to.products" | `stripe.coupon.currency_options.${string}` | "stripe.restrictions.currency_options" | `stripe.restrictions.currency_options.${string}` | "stripe.restrictions.minimum_amount" | "stripe.restrictions.first_time_transaction" | "stripe.restrictions.minimum_amount_currency">, {
|
|
2503
|
+
byPromotionCodeId: ["promotionCodeId", "_creationTime"];
|
|
2504
|
+
}, {}, {}>;
|
|
2505
|
+
stripe_payouts: import('convex/server').TableDefinition<import('convex/values').VObject<{
|
|
2506
|
+
stripe: {
|
|
2507
|
+
currency?: string | null | undefined;
|
|
2508
|
+
metadata?: Record<string, string | number | null> | null | undefined;
|
|
2509
|
+
description?: string | null | undefined;
|
|
2510
|
+
statement_descriptor?: string | null | undefined;
|
|
2511
|
+
application_fee_amount?: number | null | undefined;
|
|
2512
|
+
application_only?: string | null | undefined;
|
|
2513
|
+
balance_transaction?: string | null | undefined;
|
|
2514
|
+
destination?: string | null | undefined;
|
|
2515
|
+
failure_balance_transaction?: string | null | undefined;
|
|
2516
|
+
failure_code?: string | null | undefined;
|
|
2517
|
+
failure_message?: string | null | undefined;
|
|
2518
|
+
original_payout?: string | null | undefined;
|
|
2519
|
+
payout_method?: string | null | undefined;
|
|
2520
|
+
reconciliation_status?: "completed" | "in_progress" | "not_applicable" | undefined;
|
|
2521
|
+
reversed_by?: string | null | undefined;
|
|
2522
|
+
trace_id?: {
|
|
2523
|
+
value?: string | null | undefined;
|
|
2524
|
+
status: string;
|
|
2525
|
+
} | null | undefined;
|
|
2526
|
+
object: string;
|
|
2527
|
+
type: "card" | "bank_account";
|
|
2528
|
+
id: string;
|
|
2529
|
+
status: string;
|
|
2530
|
+
created: number;
|
|
2531
|
+
livemode: boolean;
|
|
2532
|
+
amount: number;
|
|
2533
|
+
automatic: boolean;
|
|
2534
|
+
arrival_date: number;
|
|
2535
|
+
method: string;
|
|
2536
|
+
source_type: string;
|
|
2537
|
+
};
|
|
2538
|
+
last_synced_at: number;
|
|
2539
|
+
payoutId: string;
|
|
2540
|
+
}, {
|
|
2541
|
+
payoutId: import('convex/values').VString<string, "required">;
|
|
2542
|
+
stripe: import('convex/values').VObject<{
|
|
2543
|
+
currency?: string | null | undefined;
|
|
2544
|
+
metadata?: Record<string, string | number | null> | null | undefined;
|
|
2545
|
+
description?: string | null | undefined;
|
|
2546
|
+
statement_descriptor?: string | null | undefined;
|
|
2547
|
+
application_fee_amount?: number | null | undefined;
|
|
2548
|
+
application_only?: string | null | undefined;
|
|
2549
|
+
balance_transaction?: string | null | undefined;
|
|
2550
|
+
destination?: string | null | undefined;
|
|
2551
|
+
failure_balance_transaction?: string | null | undefined;
|
|
2552
|
+
failure_code?: string | null | undefined;
|
|
2553
|
+
failure_message?: string | null | undefined;
|
|
2554
|
+
original_payout?: string | null | undefined;
|
|
2555
|
+
payout_method?: string | null | undefined;
|
|
2556
|
+
reconciliation_status?: "completed" | "in_progress" | "not_applicable" | undefined;
|
|
2557
|
+
reversed_by?: string | null | undefined;
|
|
2558
|
+
trace_id?: {
|
|
2559
|
+
value?: string | null | undefined;
|
|
2560
|
+
status: string;
|
|
2561
|
+
} | null | undefined;
|
|
2562
|
+
object: string;
|
|
2563
|
+
type: "card" | "bank_account";
|
|
2564
|
+
id: string;
|
|
2565
|
+
status: string;
|
|
2566
|
+
created: number;
|
|
2567
|
+
livemode: boolean;
|
|
2568
|
+
amount: number;
|
|
2569
|
+
automatic: boolean;
|
|
2570
|
+
arrival_date: number;
|
|
2571
|
+
method: string;
|
|
2572
|
+
source_type: string;
|
|
2573
|
+
}, {
|
|
2574
|
+
id: import('convex/values').VString<string, "required">;
|
|
2575
|
+
amount: import('convex/values').VFloat64<number, "required">;
|
|
2576
|
+
arrival_date: import('convex/values').VFloat64<number, "required">;
|
|
2577
|
+
currency: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
2578
|
+
description: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
2579
|
+
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>;
|
|
2580
|
+
statement_descriptor: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
2581
|
+
status: import('convex/values').VString<string, "required">;
|
|
2582
|
+
object: import('convex/values').VString<string, "required">;
|
|
2583
|
+
application_only: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
2584
|
+
application_fee_amount: import('convex/values').VUnion<number | null | undefined, [import('convex/values').VFloat64<number, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
2585
|
+
automatic: import('convex/values').VBoolean<boolean, "required">;
|
|
2586
|
+
balance_transaction: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
2587
|
+
created: import('convex/values').VFloat64<number, "required">;
|
|
2588
|
+
destination: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
2589
|
+
failure_balance_transaction: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
2590
|
+
failure_code: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VLiteral<"account_closed", "required">, import('convex/values').VLiteral<"account_frozen", "required">, import('convex/values').VLiteral<"bank_account_restricted", "required">, import('convex/values').VLiteral<"bank_ownership_changed", "required">, import('convex/values').VLiteral<"could_not_process", "required">, import('convex/values').VLiteral<"debit_not_authorized", "required">, import('convex/values').VLiteral<"declined", "required">, import('convex/values').VLiteral<"incorrect_account_holder_address", "required">, import('convex/values').VLiteral<"incorrect_account_holder_name", "required">, import('convex/values').VLiteral<"incorrect_account_holder_tax_id", "required">, import('convex/values').VLiteral<"incorrect_account_type", "required">, import('convex/values').VLiteral<"insufficient_funds", "required">, import('convex/values').VLiteral<"invalid_account_number", "required">, import('convex/values').VLiteral<"invalid_account_number_length", "required">, import('convex/values').VLiteral<"invalid_currency", "required">, import('convex/values').VLiteral<"no_account", "required">, import('convex/values').VLiteral<"unsupported_card", "required">, import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
2591
|
+
failure_message: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
2592
|
+
livemode: import('convex/values').VBoolean<boolean, "required">;
|
|
2593
|
+
method: import('convex/values').VString<string, "required">;
|
|
2594
|
+
original_payout: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
2595
|
+
payout_method: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
2596
|
+
reconciliation_status: import('convex/values').VUnion<"completed" | "in_progress" | "not_applicable" | undefined, [import('convex/values').VLiteral<"completed", "required">, import('convex/values').VLiteral<"in_progress", "required">, import('convex/values').VLiteral<"not_applicable", "required">], "optional", never>;
|
|
2597
|
+
reversed_by: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
2598
|
+
source_type: import('convex/values').VString<string, "required">;
|
|
2599
|
+
trace_id: import('convex/values').VUnion<{
|
|
2600
|
+
value?: string | null | undefined;
|
|
2601
|
+
status: string;
|
|
2602
|
+
} | null | undefined, [import('convex/values').VNull<null, "required">, import('convex/values').VObject<{
|
|
2603
|
+
value?: string | null | undefined;
|
|
2604
|
+
status: string;
|
|
2605
|
+
}, {
|
|
2606
|
+
status: import('convex/values').VString<string, "required">;
|
|
2607
|
+
value: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
2608
|
+
}, "required", "status" | "value">], "optional", "status" | "value">;
|
|
2609
|
+
type: import('convex/values').VUnion<"card" | "bank_account", [import('convex/values').VLiteral<"bank_account", "required">, import('convex/values').VLiteral<"card", "required">], "required", never>;
|
|
2610
|
+
}, "required", "object" | "type" | "id" | "currency" | "metadata" | "status" | "created" | "livemode" | `metadata.${string}` | "description" | "statement_descriptor" | "amount" | "automatic" | "application_fee_amount" | "arrival_date" | "application_only" | "balance_transaction" | "destination" | "failure_balance_transaction" | "failure_code" | "failure_message" | "method" | "original_payout" | "payout_method" | "reconciliation_status" | "reversed_by" | "source_type" | "trace_id" | "trace_id.status" | "trace_id.value">;
|
|
2611
|
+
last_synced_at: import('convex/values').VFloat64<number, "required">;
|
|
2612
|
+
}, "required", "stripe" | "last_synced_at" | "stripe.object" | "stripe.id" | "stripe.metadata" | "stripe.created" | "stripe.livemode" | `stripe.metadata.${string}` | "stripe.description" | "stripe.statement_descriptor" | "stripe.type" | "stripe.currency" | "payoutId" | "stripe.status" | "stripe.amount" | "stripe.automatic" | "stripe.application_fee_amount" | "stripe.arrival_date" | "stripe.application_only" | "stripe.balance_transaction" | "stripe.destination" | "stripe.failure_balance_transaction" | "stripe.failure_code" | "stripe.failure_message" | "stripe.method" | "stripe.original_payout" | "stripe.payout_method" | "stripe.reconciliation_status" | "stripe.reversed_by" | "stripe.source_type" | "stripe.trace_id" | "stripe.trace_id.status" | "stripe.trace_id.value">, {
|
|
2613
|
+
byPayoutId: ["payoutId", "_creationTime"];
|
|
2614
|
+
}, {}, {}>;
|
|
2615
|
+
stripe_refunds: import('convex/server').TableDefinition<import('convex/values').VObject<{
|
|
2616
|
+
stripe: {
|
|
2617
|
+
metadata?: Record<string, string | number | null> | null | undefined;
|
|
2618
|
+
payment_intent?: string | null | undefined;
|
|
2619
|
+
status?: string | null | undefined;
|
|
2620
|
+
description?: string | null | undefined;
|
|
2621
|
+
receipt_number?: string | null | undefined;
|
|
2622
|
+
charge?: string | null | undefined;
|
|
2623
|
+
next_action?: any;
|
|
2624
|
+
balance_transaction?: string | null | undefined;
|
|
2625
|
+
failure_balance_transaction?: string | null | undefined;
|
|
2626
|
+
reason?: string | null | undefined;
|
|
2627
|
+
destination_details?: any;
|
|
2628
|
+
failure_reason?: string | null | undefined;
|
|
2629
|
+
instructions_email?: string | null | undefined;
|
|
2630
|
+
pending_reason?: string | null | undefined;
|
|
2631
|
+
source_transfer_reversal?: string | null | undefined;
|
|
2632
|
+
transfer_reversal?: string | null | undefined;
|
|
2633
|
+
object: string;
|
|
2634
|
+
id: string;
|
|
2635
|
+
currency: string;
|
|
2636
|
+
created: number;
|
|
2637
|
+
amount: number;
|
|
2638
|
+
};
|
|
2639
|
+
last_synced_at: number;
|
|
2640
|
+
refundId: string;
|
|
2641
|
+
}, {
|
|
2642
|
+
refundId: import('convex/values').VString<string, "required">;
|
|
2643
|
+
stripe: import('convex/values').VObject<{
|
|
2644
|
+
metadata?: Record<string, string | number | null> | null | undefined;
|
|
2645
|
+
payment_intent?: string | null | undefined;
|
|
2646
|
+
status?: string | null | undefined;
|
|
2647
|
+
description?: string | null | undefined;
|
|
2648
|
+
receipt_number?: string | null | undefined;
|
|
2649
|
+
charge?: string | null | undefined;
|
|
2650
|
+
next_action?: any;
|
|
2651
|
+
balance_transaction?: string | null | undefined;
|
|
2652
|
+
failure_balance_transaction?: string | null | undefined;
|
|
2653
|
+
reason?: string | null | undefined;
|
|
2654
|
+
destination_details?: any;
|
|
2655
|
+
failure_reason?: string | null | undefined;
|
|
2656
|
+
instructions_email?: string | null | undefined;
|
|
2657
|
+
pending_reason?: string | null | undefined;
|
|
2658
|
+
source_transfer_reversal?: string | null | undefined;
|
|
2659
|
+
transfer_reversal?: string | null | undefined;
|
|
2660
|
+
object: string;
|
|
2661
|
+
id: string;
|
|
2662
|
+
currency: string;
|
|
2663
|
+
created: number;
|
|
2664
|
+
amount: number;
|
|
2665
|
+
}, {
|
|
2666
|
+
id: import('convex/values').VString<string, "required">;
|
|
2667
|
+
amount: import('convex/values').VFloat64<number, "required">;
|
|
2668
|
+
charge: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
2669
|
+
currency: import('convex/values').VString<string, "required">;
|
|
2670
|
+
description: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
2671
|
+
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>;
|
|
2672
|
+
payment_intent: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
2673
|
+
reason: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
2674
|
+
status: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
2675
|
+
object: import('convex/values').VString<string, "required">;
|
|
2676
|
+
balance_transaction: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
2677
|
+
created: import('convex/values').VFloat64<number, "required">;
|
|
2678
|
+
destination_details: import('convex/values').VUnion<any, [import('convex/values').VAny<any, "required", string>, import('convex/values').VObject<{}, {}, "required", never>, import('convex/values').VNull<null, "required">], "optional", string>;
|
|
2679
|
+
failure_balance_transaction: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
2680
|
+
failure_reason: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
2681
|
+
instructions_email: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
2682
|
+
next_action: import('convex/values').VUnion<any, [import('convex/values').VAny<any, "required", string>, import('convex/values').VObject<{}, {}, "required", never>, import('convex/values').VNull<null, "required">], "optional", string>;
|
|
2683
|
+
pending_reason: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
2684
|
+
receipt_number: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
2685
|
+
source_transfer_reversal: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
2686
|
+
transfer_reversal: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
2687
|
+
}, "required", "object" | "id" | "currency" | "metadata" | "payment_intent" | "status" | "created" | `metadata.${string}` | "description" | "receipt_number" | "charge" | "amount" | "next_action" | `next_action.${string}` | "balance_transaction" | "failure_balance_transaction" | "reason" | "destination_details" | "failure_reason" | "instructions_email" | "pending_reason" | "source_transfer_reversal" | "transfer_reversal" | `destination_details.${string}`>;
|
|
2688
|
+
last_synced_at: import('convex/values').VFloat64<number, "required">;
|
|
2689
|
+
}, "required", "stripe" | "last_synced_at" | "stripe.object" | "stripe.id" | "stripe.metadata" | "stripe.created" | `stripe.metadata.${string}` | "stripe.description" | "stripe.currency" | "stripe.status" | "stripe.amount" | "stripe.balance_transaction" | "stripe.failure_balance_transaction" | "refundId" | "stripe.payment_intent" | "stripe.receipt_number" | "stripe.charge" | "stripe.next_action" | `stripe.next_action.${string}` | "stripe.reason" | "stripe.destination_details" | "stripe.failure_reason" | "stripe.instructions_email" | "stripe.pending_reason" | "stripe.source_transfer_reversal" | "stripe.transfer_reversal" | `stripe.destination_details.${string}`>, {
|
|
2690
|
+
byRefundId: ["refundId", "_creationTime"];
|
|
2691
|
+
}, {}, {}>;
|
|
2692
|
+
stripe_payment_intents: import('convex/server').TableDefinition<import('convex/values').VObject<{
|
|
2693
|
+
stripe: {
|
|
2694
|
+
customer?: string | null | undefined;
|
|
2695
|
+
metadata?: Record<string, string | number | null> | null | undefined;
|
|
2696
|
+
client_secret?: string | null | undefined;
|
|
2697
|
+
payment_method_configuration_details?: {
|
|
2698
|
+
parent?: string | null | undefined;
|
|
2699
|
+
id: string;
|
|
2700
|
+
} | null | undefined;
|
|
2701
|
+
payment_method_options?: any;
|
|
2702
|
+
presentment_details?: any;
|
|
2703
|
+
description?: string | null | undefined;
|
|
2704
|
+
shipping?: any;
|
|
2705
|
+
payment_method?: string | null | undefined;
|
|
2706
|
+
application?: string | null | undefined;
|
|
2707
|
+
on_behalf_of?: string | null | undefined;
|
|
2708
|
+
statement_descriptor?: string | null | undefined;
|
|
2709
|
+
last_payment_error?: {
|
|
2710
|
+
payment_method?: any;
|
|
2711
|
+
advice_code?: string | null | undefined;
|
|
2712
|
+
charge?: string | null | undefined;
|
|
2713
|
+
code?: string | null | undefined;
|
|
2714
|
+
decline_code?: string | null | undefined;
|
|
2715
|
+
doc_url?: string | null | undefined;
|
|
2716
|
+
message?: string | null | undefined;
|
|
2717
|
+
network_advice_code?: string | null | undefined;
|
|
2718
|
+
network_decline_code?: string | null | undefined;
|
|
2719
|
+
param?: string | null | undefined;
|
|
2720
|
+
payment_method_type?: string | null | undefined;
|
|
2721
|
+
last_payment_error?: any;
|
|
2722
|
+
latest_charge?: string | null | undefined;
|
|
2723
|
+
type: "api_error" | "card_error" | "idempotency_error" | "invalid_request_error";
|
|
2724
|
+
} | null | undefined;
|
|
2725
|
+
latest_charge?: string | null | undefined;
|
|
2726
|
+
processing?: any;
|
|
2727
|
+
automatic_payment_methods?: {
|
|
2728
|
+
allow_redirects?: "always" | "never" | null | undefined;
|
|
2729
|
+
enabled: boolean;
|
|
2730
|
+
} | null | undefined;
|
|
2731
|
+
next_action?: any;
|
|
2732
|
+
receipt_email?: string | null | undefined;
|
|
2733
|
+
statement_descriptor_suffix?: string | null | undefined;
|
|
2734
|
+
amount_details?: {
|
|
2735
|
+
tip?: {
|
|
2736
|
+
amount?: number | null | undefined;
|
|
2737
|
+
} | null | undefined;
|
|
2738
|
+
} | null | undefined;
|
|
2739
|
+
application_fee_amount?: number | null | undefined;
|
|
2740
|
+
canceled_at?: number | null | undefined;
|
|
2741
|
+
cancellation_reason?: "expired" | "abandoned" | "automatic" | "duplicate" | "failed_invoice" | "fraudulent" | "requested_by_customer" | "void_invoice" | null | undefined;
|
|
2742
|
+
review?: string | null | undefined;
|
|
2743
|
+
transfer_data?: any;
|
|
2744
|
+
transfer_group?: string | null | undefined;
|
|
2745
|
+
object: string;
|
|
2746
|
+
id: string;
|
|
2747
|
+
currency: string | null;
|
|
2748
|
+
status: "canceled" | "processing" | "requires_action" | "requires_capture" | "requires_confirmation" | "requires_payment_method" | "succeeded";
|
|
2749
|
+
created: number;
|
|
2750
|
+
livemode: boolean;
|
|
2751
|
+
payment_method_types: string[];
|
|
2752
|
+
amount: number;
|
|
2753
|
+
setup_future_usage: "off_session" | "on_session" | null;
|
|
2754
|
+
amount_capturable: number;
|
|
2755
|
+
amount_received: number;
|
|
2756
|
+
capture_method: "manual" | "automatic" | "automatic_sync" | "automatic_async";
|
|
2757
|
+
confirmation_method: "manual" | "automatic";
|
|
2758
|
+
excluded_payment_method_types: string[] | null;
|
|
2759
|
+
};
|
|
2760
|
+
last_synced_at: number;
|
|
2761
|
+
paymentIntentId: string;
|
|
2762
|
+
}, {
|
|
2763
|
+
paymentIntentId: import('convex/values').VString<string, "required">;
|
|
2764
|
+
stripe: import('convex/values').VObject<{
|
|
2765
|
+
customer?: string | null | undefined;
|
|
2766
|
+
metadata?: Record<string, string | number | null> | null | undefined;
|
|
2767
|
+
client_secret?: string | null | undefined;
|
|
2768
|
+
payment_method_configuration_details?: {
|
|
2769
|
+
parent?: string | null | undefined;
|
|
2770
|
+
id: string;
|
|
2771
|
+
} | null | undefined;
|
|
2772
|
+
payment_method_options?: any;
|
|
2773
|
+
presentment_details?: any;
|
|
2774
|
+
description?: string | null | undefined;
|
|
2775
|
+
shipping?: any;
|
|
2776
|
+
payment_method?: string | null | undefined;
|
|
2777
|
+
application?: string | null | undefined;
|
|
2778
|
+
on_behalf_of?: string | null | undefined;
|
|
2779
|
+
statement_descriptor?: string | null | undefined;
|
|
2780
|
+
last_payment_error?: {
|
|
2781
|
+
payment_method?: any;
|
|
2782
|
+
advice_code?: string | null | undefined;
|
|
2783
|
+
charge?: string | null | undefined;
|
|
2784
|
+
code?: string | null | undefined;
|
|
2785
|
+
decline_code?: string | null | undefined;
|
|
2786
|
+
doc_url?: string | null | undefined;
|
|
2787
|
+
message?: string | null | undefined;
|
|
2788
|
+
network_advice_code?: string | null | undefined;
|
|
2789
|
+
network_decline_code?: string | null | undefined;
|
|
2790
|
+
param?: string | null | undefined;
|
|
2791
|
+
payment_method_type?: string | null | undefined;
|
|
2792
|
+
last_payment_error?: any;
|
|
2793
|
+
latest_charge?: string | null | undefined;
|
|
2794
|
+
type: "api_error" | "card_error" | "idempotency_error" | "invalid_request_error";
|
|
2795
|
+
} | null | undefined;
|
|
2796
|
+
latest_charge?: string | null | undefined;
|
|
2797
|
+
processing?: any;
|
|
2798
|
+
automatic_payment_methods?: {
|
|
2799
|
+
allow_redirects?: "always" | "never" | null | undefined;
|
|
2800
|
+
enabled: boolean;
|
|
2801
|
+
} | null | undefined;
|
|
2802
|
+
next_action?: any;
|
|
2803
|
+
receipt_email?: string | null | undefined;
|
|
2804
|
+
statement_descriptor_suffix?: string | null | undefined;
|
|
2805
|
+
amount_details?: {
|
|
2806
|
+
tip?: {
|
|
2807
|
+
amount?: number | null | undefined;
|
|
2808
|
+
} | null | undefined;
|
|
2809
|
+
} | null | undefined;
|
|
2810
|
+
application_fee_amount?: number | null | undefined;
|
|
2811
|
+
canceled_at?: number | null | undefined;
|
|
2812
|
+
cancellation_reason?: "expired" | "abandoned" | "automatic" | "duplicate" | "failed_invoice" | "fraudulent" | "requested_by_customer" | "void_invoice" | null | undefined;
|
|
2813
|
+
review?: string | null | undefined;
|
|
2814
|
+
transfer_data?: any;
|
|
2815
|
+
transfer_group?: string | null | undefined;
|
|
2816
|
+
object: string;
|
|
2817
|
+
id: string;
|
|
2818
|
+
currency: string | null;
|
|
2819
|
+
status: "canceled" | "processing" | "requires_action" | "requires_capture" | "requires_confirmation" | "requires_payment_method" | "succeeded";
|
|
2820
|
+
created: number;
|
|
2821
|
+
livemode: boolean;
|
|
2822
|
+
payment_method_types: string[];
|
|
2823
|
+
amount: number;
|
|
2824
|
+
setup_future_usage: "off_session" | "on_session" | null;
|
|
2825
|
+
amount_capturable: number;
|
|
2826
|
+
amount_received: number;
|
|
2827
|
+
capture_method: "manual" | "automatic" | "automatic_sync" | "automatic_async";
|
|
2828
|
+
confirmation_method: "manual" | "automatic";
|
|
2829
|
+
excluded_payment_method_types: string[] | null;
|
|
2830
|
+
}, {
|
|
2831
|
+
id: import('convex/values').VString<string, "required">;
|
|
2832
|
+
amount: import('convex/values').VFloat64<number, "required">;
|
|
2833
|
+
automatic_payment_methods: import('convex/values').VUnion<{
|
|
2834
|
+
allow_redirects?: "always" | "never" | null | undefined;
|
|
2835
|
+
enabled: boolean;
|
|
2836
|
+
} | null | undefined, [import('convex/values').VObject<{
|
|
2837
|
+
allow_redirects?: "always" | "never" | null | undefined;
|
|
2838
|
+
enabled: boolean;
|
|
2839
|
+
}, {
|
|
2840
|
+
allow_redirects: import('convex/values').VUnion<"always" | "never" | null | undefined, [import('convex/values').VLiteral<"always", "required">, import('convex/values').VLiteral<"never", "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
2841
|
+
enabled: import('convex/values').VBoolean<boolean, "required">;
|
|
2842
|
+
}, "required", "allow_redirects" | "enabled">, import('convex/values').VNull<null, "required">], "optional", "allow_redirects" | "enabled">;
|
|
2843
|
+
client_secret: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
2844
|
+
currency: import('convex/values').VUnion<string | null, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "required", never>;
|
|
2845
|
+
customer: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
2846
|
+
description: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
2847
|
+
last_payment_error: import('convex/values').VUnion<{
|
|
2848
|
+
payment_method?: any;
|
|
2849
|
+
advice_code?: string | null | undefined;
|
|
2850
|
+
charge?: string | null | undefined;
|
|
2851
|
+
code?: string | null | undefined;
|
|
2852
|
+
decline_code?: string | null | undefined;
|
|
2853
|
+
doc_url?: string | null | undefined;
|
|
2854
|
+
message?: string | null | undefined;
|
|
2855
|
+
network_advice_code?: string | null | undefined;
|
|
2856
|
+
network_decline_code?: string | null | undefined;
|
|
2857
|
+
param?: string | null | undefined;
|
|
2858
|
+
payment_method_type?: string | null | undefined;
|
|
2859
|
+
last_payment_error?: any;
|
|
2860
|
+
latest_charge?: string | null | undefined;
|
|
2861
|
+
type: "api_error" | "card_error" | "idempotency_error" | "invalid_request_error";
|
|
2862
|
+
} | null | undefined, [import('convex/values').VObject<{
|
|
2863
|
+
payment_method?: any;
|
|
2864
|
+
advice_code?: string | null | undefined;
|
|
2865
|
+
charge?: string | null | undefined;
|
|
2866
|
+
code?: string | null | undefined;
|
|
2867
|
+
decline_code?: string | null | undefined;
|
|
2868
|
+
doc_url?: string | null | undefined;
|
|
2869
|
+
message?: string | null | undefined;
|
|
2870
|
+
network_advice_code?: string | null | undefined;
|
|
2871
|
+
network_decline_code?: string | null | undefined;
|
|
2872
|
+
param?: string | null | undefined;
|
|
2873
|
+
payment_method_type?: string | null | undefined;
|
|
2874
|
+
last_payment_error?: any;
|
|
2875
|
+
latest_charge?: string | null | undefined;
|
|
2876
|
+
type: "api_error" | "card_error" | "idempotency_error" | "invalid_request_error";
|
|
2877
|
+
}, {
|
|
2878
|
+
advice_code: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
2879
|
+
charge: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
2880
|
+
code: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
2881
|
+
decline_code: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
2882
|
+
doc_url: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
2883
|
+
message: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
2884
|
+
network_advice_code: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
2885
|
+
network_decline_code: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
2886
|
+
param: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
2887
|
+
payment_method: import('convex/values').VAny<any, "optional", string>;
|
|
2888
|
+
payment_method_type: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
2889
|
+
last_payment_error: import('convex/values').VAny<any, "optional", string>;
|
|
2890
|
+
type: import('convex/values').VUnion<"api_error" | "card_error" | "idempotency_error" | "invalid_request_error", [import('convex/values').VLiteral<"api_error", "required">, import('convex/values').VLiteral<"card_error", "required">, import('convex/values').VLiteral<"idempotency_error", "required">, import('convex/values').VLiteral<"invalid_request_error", "required">], "required", never>;
|
|
2891
|
+
latest_charge: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
2892
|
+
}, "required", "type" | "payment_method" | "advice_code" | "charge" | "code" | "decline_code" | "doc_url" | "message" | "network_advice_code" | "network_decline_code" | "param" | "payment_method_type" | "last_payment_error" | "latest_charge" | `payment_method.${string}` | `last_payment_error.${string}`>, import('convex/values').VNull<null, "required">], "optional", "type" | "payment_method" | "advice_code" | "charge" | "code" | "decline_code" | "doc_url" | "message" | "network_advice_code" | "network_decline_code" | "param" | "payment_method_type" | "last_payment_error" | "latest_charge" | `payment_method.${string}` | `last_payment_error.${string}`>;
|
|
2893
|
+
latest_charge: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
2894
|
+
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>;
|
|
2895
|
+
next_action: import('convex/values').VAny<any, "optional", string>;
|
|
2896
|
+
payment_method: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
2897
|
+
receipt_email: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
2898
|
+
setup_future_usage: import('convex/values').VUnion<"off_session" | "on_session" | null, [import('convex/values').VLiteral<"off_session", "required">, import('convex/values').VLiteral<"on_session", "required">, import('convex/values').VNull<null, "required">], "required", never>;
|
|
2899
|
+
shipping: import('convex/values').VAny<any, "optional", string>;
|
|
2900
|
+
statement_descriptor: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
2901
|
+
statement_descriptor_suffix: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
2902
|
+
status: import('convex/values').VUnion<"canceled" | "processing" | "requires_action" | "requires_capture" | "requires_confirmation" | "requires_payment_method" | "succeeded", [import('convex/values').VLiteral<"canceled", "required">, import('convex/values').VLiteral<"processing", "required">, import('convex/values').VLiteral<"requires_action", "required">, import('convex/values').VLiteral<"requires_capture", "required">, import('convex/values').VLiteral<"requires_confirmation", "required">, import('convex/values').VLiteral<"requires_payment_method", "required">, import('convex/values').VLiteral<"succeeded", "required">], "required", never>;
|
|
2903
|
+
object: import('convex/values').VString<string, "required">;
|
|
2904
|
+
amount_capturable: import('convex/values').VFloat64<number, "required">;
|
|
2905
|
+
amount_details: import('convex/values').VUnion<{
|
|
2906
|
+
tip?: {
|
|
2907
|
+
amount?: number | null | undefined;
|
|
2908
|
+
} | null | undefined;
|
|
2909
|
+
} | null | undefined, [import('convex/values').VObject<{
|
|
2910
|
+
tip?: {
|
|
2911
|
+
amount?: number | null | undefined;
|
|
2912
|
+
} | null | undefined;
|
|
2913
|
+
}, {
|
|
2914
|
+
tip: import('convex/values').VUnion<{
|
|
2915
|
+
amount?: number | null | undefined;
|
|
2916
|
+
} | null | undefined, [import('convex/values').VObject<{
|
|
2917
|
+
amount?: number | null | undefined;
|
|
2918
|
+
}, {
|
|
2919
|
+
amount: import('convex/values').VUnion<number | null | undefined, [import('convex/values').VFloat64<number, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
2920
|
+
}, "required", "amount">, import('convex/values').VNull<null, "required">], "optional", "amount">;
|
|
2921
|
+
}, "required", "tip" | "tip.amount">, import('convex/values').VNull<null, "required">], "optional", "tip" | "tip.amount">;
|
|
2922
|
+
amount_received: import('convex/values').VFloat64<number, "required">;
|
|
2923
|
+
application: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
2924
|
+
application_fee_amount: import('convex/values').VUnion<number | null | undefined, [import('convex/values').VFloat64<number, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
2925
|
+
canceled_at: import('convex/values').VUnion<number | null | undefined, [import('convex/values').VFloat64<number, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
2926
|
+
cancellation_reason: import('convex/values').VUnion<"expired" | "abandoned" | "automatic" | "duplicate" | "failed_invoice" | "fraudulent" | "requested_by_customer" | "void_invoice" | null | undefined, [import('convex/values').VLiteral<"abandoned", "required">, import('convex/values').VLiteral<"automatic", "required">, import('convex/values').VLiteral<"duplicate", "required">, import('convex/values').VLiteral<"expired", "required">, import('convex/values').VLiteral<"failed_invoice", "required">, import('convex/values').VLiteral<"fraudulent", "required">, import('convex/values').VLiteral<"requested_by_customer", "required">, import('convex/values').VLiteral<"void_invoice", "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
2927
|
+
capture_method: import('convex/values').VUnion<"manual" | "automatic" | "automatic_sync" | "automatic_async", [import('convex/values').VLiteral<"automatic", "required">, import('convex/values').VLiteral<"automatic_sync", "required">, import('convex/values').VLiteral<"automatic_async", "required">, import('convex/values').VLiteral<"manual", "required">], "required", never>;
|
|
2928
|
+
confirmation_method: import('convex/values').VUnion<"manual" | "automatic", [import('convex/values').VLiteral<"automatic", "required">, import('convex/values').VLiteral<"manual", "required">], "required", never>;
|
|
2929
|
+
created: import('convex/values').VFloat64<number, "required">;
|
|
2930
|
+
excluded_payment_method_types: import('convex/values').VUnion<string[] | null, [import('convex/values').VArray<string[], import('convex/values').VString<string, "required">, "required">, import('convex/values').VNull<null, "required">], "required", never>;
|
|
2931
|
+
livemode: import('convex/values').VBoolean<boolean, "required">;
|
|
2932
|
+
on_behalf_of: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
2933
|
+
payment_method_configuration_details: import('convex/values').VUnion<{
|
|
2934
|
+
parent?: string | null | undefined;
|
|
2935
|
+
id: string;
|
|
2936
|
+
} | null | undefined, [import('convex/values').VObject<{
|
|
2937
|
+
parent?: string | null | undefined;
|
|
2938
|
+
id: string;
|
|
2939
|
+
}, {
|
|
2940
|
+
id: import('convex/values').VString<string, "required">;
|
|
2941
|
+
parent: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
2942
|
+
}, "required", "id" | "parent">, import('convex/values').VNull<null, "required">], "optional", "id" | "parent">;
|
|
2943
|
+
payment_method_options: import('convex/values').VAny<any, "optional", string>;
|
|
2944
|
+
payment_method_types: import('convex/values').VArray<string[], import('convex/values').VString<string, "required">, "required">;
|
|
2945
|
+
presentment_details: import('convex/values').VAny<any, "optional", string>;
|
|
2946
|
+
processing: import('convex/values').VAny<any, "optional", string>;
|
|
2947
|
+
review: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
2948
|
+
transfer_data: import('convex/values').VAny<any, "optional", string>;
|
|
2949
|
+
transfer_group: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
2950
|
+
}, "required", "object" | "id" | "currency" | "customer" | "metadata" | "status" | "client_secret" | "created" | "livemode" | "payment_method_configuration_details" | "payment_method_options" | "payment_method_types" | "presentment_details" | `metadata.${string}` | `payment_method_options.${string}` | `presentment_details.${string}` | "description" | "shipping" | "payment_method" | "application" | "on_behalf_of" | "statement_descriptor" | "last_payment_error" | "latest_charge" | "processing" | "amount" | "automatic_payment_methods" | "next_action" | "receipt_email" | "setup_future_usage" | "statement_descriptor_suffix" | "amount_capturable" | "amount_details" | "amount_received" | "application_fee_amount" | "canceled_at" | "cancellation_reason" | "capture_method" | "confirmation_method" | "excluded_payment_method_types" | "review" | "transfer_data" | "transfer_group" | "payment_method_configuration_details.id" | "payment_method_configuration_details.parent" | `shipping.${string}` | "last_payment_error.type" | "last_payment_error.payment_method" | "last_payment_error.advice_code" | "last_payment_error.charge" | "last_payment_error.code" | "last_payment_error.decline_code" | "last_payment_error.doc_url" | "last_payment_error.message" | "last_payment_error.network_advice_code" | "last_payment_error.network_decline_code" | "last_payment_error.param" | "last_payment_error.payment_method_type" | "last_payment_error.last_payment_error" | "last_payment_error.latest_charge" | `last_payment_error.payment_method.${string}` | `last_payment_error.last_payment_error.${string}` | `processing.${string}` | "automatic_payment_methods.allow_redirects" | "automatic_payment_methods.enabled" | `next_action.${string}` | "amount_details.tip" | "amount_details.tip.amount" | `transfer_data.${string}`>;
|
|
2951
|
+
last_synced_at: import('convex/values').VFloat64<number, "required">;
|
|
2952
|
+
}, "required", "stripe" | "last_synced_at" | "stripe.object" | "stripe.id" | "stripe.metadata" | "stripe.created" | "stripe.livemode" | `stripe.metadata.${string}` | "stripe.description" | "stripe.statement_descriptor" | "stripe.currency" | "stripe.shipping" | "stripe.customer" | "stripe.status" | "stripe.amount" | "stripe.application_fee_amount" | "stripe.next_action" | `stripe.next_action.${string}` | "paymentIntentId" | "stripe.client_secret" | "stripe.payment_method_configuration_details" | "stripe.payment_method_options" | "stripe.payment_method_types" | "stripe.presentment_details" | `stripe.payment_method_options.${string}` | `stripe.presentment_details.${string}` | "stripe.payment_method" | "stripe.application" | "stripe.on_behalf_of" | "stripe.last_payment_error" | "stripe.latest_charge" | "stripe.processing" | "stripe.automatic_payment_methods" | "stripe.receipt_email" | "stripe.setup_future_usage" | "stripe.statement_descriptor_suffix" | "stripe.amount_capturable" | "stripe.amount_details" | "stripe.amount_received" | "stripe.canceled_at" | "stripe.cancellation_reason" | "stripe.capture_method" | "stripe.confirmation_method" | "stripe.excluded_payment_method_types" | "stripe.review" | "stripe.transfer_data" | "stripe.transfer_group" | "stripe.payment_method_configuration_details.id" | "stripe.payment_method_configuration_details.parent" | `stripe.shipping.${string}` | "stripe.last_payment_error.type" | "stripe.last_payment_error.payment_method" | "stripe.last_payment_error.advice_code" | "stripe.last_payment_error.charge" | "stripe.last_payment_error.code" | "stripe.last_payment_error.decline_code" | "stripe.last_payment_error.doc_url" | "stripe.last_payment_error.message" | "stripe.last_payment_error.network_advice_code" | "stripe.last_payment_error.network_decline_code" | "stripe.last_payment_error.param" | "stripe.last_payment_error.payment_method_type" | "stripe.last_payment_error.last_payment_error" | "stripe.last_payment_error.latest_charge" | `stripe.last_payment_error.payment_method.${string}` | `stripe.last_payment_error.last_payment_error.${string}` | `stripe.processing.${string}` | "stripe.automatic_payment_methods.allow_redirects" | "stripe.automatic_payment_methods.enabled" | "stripe.amount_details.tip" | "stripe.amount_details.tip.amount" | `stripe.transfer_data.${string}`>, {
|
|
2953
|
+
byPaymentIntentId: ["paymentIntentId", "_creationTime"];
|
|
2954
|
+
}, {}, {}>;
|
|
2955
|
+
stripe_checkout_sessions: import('convex/server').TableDefinition<import('convex/values').VObject<{
|
|
2956
|
+
stripe: {
|
|
2957
|
+
subscription?: string | null | undefined;
|
|
2958
|
+
client_reference_id?: string | null | undefined;
|
|
2959
|
+
currency?: string | null | undefined;
|
|
2960
|
+
customer?: string | null | undefined;
|
|
2961
|
+
customer_email?: string | null | undefined;
|
|
2962
|
+
line_items?: any[] | null | undefined;
|
|
2963
|
+
metadata?: Record<string, string | number | null> | null | undefined;
|
|
2964
|
+
payment_intent?: string | null | undefined;
|
|
2965
|
+
return_url?: string | null | undefined;
|
|
2966
|
+
success_url?: string | null | undefined;
|
|
2967
|
+
ui_mode?: "custom" | "embedded" | "hosted" | null | undefined;
|
|
2968
|
+
url?: string | null | undefined;
|
|
2969
|
+
adaptive_pricing?: any;
|
|
2970
|
+
after_expiration?: any;
|
|
2971
|
+
allow_promotion_codes?: boolean | null | undefined;
|
|
2972
|
+
amount_subtotal?: number | null | undefined;
|
|
2973
|
+
amount_total?: number | null | undefined;
|
|
2974
|
+
billing_address_collection?: "required" | "auto" | null | undefined;
|
|
2975
|
+
cancel_url?: string | null | undefined;
|
|
2976
|
+
client_secret?: string | null | undefined;
|
|
2977
|
+
collected_information?: any;
|
|
2978
|
+
consent?: any;
|
|
2979
|
+
consent_collection?: any;
|
|
2980
|
+
currency_conversion?: any;
|
|
2981
|
+
customer_creation?: "always" | "if_required" | null | undefined;
|
|
2982
|
+
customer_details?: any;
|
|
2983
|
+
discounts?: any[] | null | undefined;
|
|
2984
|
+
invoice?: string | null | undefined;
|
|
2985
|
+
invoice_creation?: any;
|
|
2986
|
+
locale?: string | null | undefined;
|
|
2987
|
+
optional_items?: any[] | null | undefined;
|
|
2988
|
+
origin_context?: "mobile_app" | "web" | null | undefined;
|
|
2989
|
+
payment_link?: string | null | undefined;
|
|
2990
|
+
payment_method_collection?: "always" | "if_required" | null | undefined;
|
|
2991
|
+
payment_method_configuration_details?: any;
|
|
2992
|
+
payment_method_options?: any;
|
|
2993
|
+
permissions?: any;
|
|
2994
|
+
phone_number_collection?: any;
|
|
2995
|
+
presentment_details?: any;
|
|
2996
|
+
recovered_from?: string | null | undefined;
|
|
2997
|
+
redirect_on_completion?: "always" | "if_required" | "never" | null | undefined;
|
|
2998
|
+
saved_payment_method_options?: any;
|
|
2999
|
+
setup_intent?: string | null | undefined;
|
|
3000
|
+
shipping_address_collection?: any;
|
|
3001
|
+
shipping_cost?: any;
|
|
3002
|
+
submit_type?: "auto" | "book" | "donate" | "pay" | "subscribe" | null | undefined;
|
|
3003
|
+
tax_id_collection?: any;
|
|
3004
|
+
total_details?: any;
|
|
3005
|
+
wallet_options?: any;
|
|
3006
|
+
object: string;
|
|
3007
|
+
id: string;
|
|
3008
|
+
automatic_tax: any;
|
|
3009
|
+
mode: "payment" | "setup" | "subscription";
|
|
3010
|
+
payment_status: "no_payment_required" | "paid" | "unpaid";
|
|
3011
|
+
status: "complete" | "expired" | "open" | null;
|
|
3012
|
+
created: number;
|
|
3013
|
+
custom_fields: any[];
|
|
3014
|
+
custom_text: any;
|
|
3015
|
+
expires_at: number;
|
|
3016
|
+
livemode: boolean;
|
|
3017
|
+
payment_method_types: string[];
|
|
3018
|
+
shipping_options: any[];
|
|
3019
|
+
};
|
|
3020
|
+
last_synced_at: number;
|
|
3021
|
+
checkoutSessionId: string;
|
|
3022
|
+
}, {
|
|
3023
|
+
checkoutSessionId: import('convex/values').VString<string, "required">;
|
|
3024
|
+
stripe: import('convex/values').VObject<{
|
|
3025
|
+
subscription?: string | null | undefined;
|
|
3026
|
+
client_reference_id?: string | null | undefined;
|
|
3027
|
+
currency?: string | null | undefined;
|
|
3028
|
+
customer?: string | null | undefined;
|
|
3029
|
+
customer_email?: string | null | undefined;
|
|
3030
|
+
line_items?: any[] | null | undefined;
|
|
3031
|
+
metadata?: Record<string, string | number | null> | null | undefined;
|
|
3032
|
+
payment_intent?: string | null | undefined;
|
|
3033
|
+
return_url?: string | null | undefined;
|
|
3034
|
+
success_url?: string | null | undefined;
|
|
3035
|
+
ui_mode?: "custom" | "embedded" | "hosted" | null | undefined;
|
|
3036
|
+
url?: string | null | undefined;
|
|
3037
|
+
adaptive_pricing?: any;
|
|
3038
|
+
after_expiration?: any;
|
|
3039
|
+
allow_promotion_codes?: boolean | null | undefined;
|
|
3040
|
+
amount_subtotal?: number | null | undefined;
|
|
3041
|
+
amount_total?: number | null | undefined;
|
|
3042
|
+
billing_address_collection?: "required" | "auto" | null | undefined;
|
|
3043
|
+
cancel_url?: string | null | undefined;
|
|
3044
|
+
client_secret?: string | null | undefined;
|
|
3045
|
+
collected_information?: any;
|
|
3046
|
+
consent?: any;
|
|
3047
|
+
consent_collection?: any;
|
|
3048
|
+
currency_conversion?: any;
|
|
3049
|
+
customer_creation?: "always" | "if_required" | null | undefined;
|
|
3050
|
+
customer_details?: any;
|
|
3051
|
+
discounts?: any[] | null | undefined;
|
|
3052
|
+
invoice?: string | null | undefined;
|
|
3053
|
+
invoice_creation?: any;
|
|
3054
|
+
locale?: string | null | undefined;
|
|
3055
|
+
optional_items?: any[] | null | undefined;
|
|
3056
|
+
origin_context?: "mobile_app" | "web" | null | undefined;
|
|
3057
|
+
payment_link?: string | null | undefined;
|
|
3058
|
+
payment_method_collection?: "always" | "if_required" | null | undefined;
|
|
3059
|
+
payment_method_configuration_details?: any;
|
|
3060
|
+
payment_method_options?: any;
|
|
3061
|
+
permissions?: any;
|
|
3062
|
+
phone_number_collection?: any;
|
|
3063
|
+
presentment_details?: any;
|
|
3064
|
+
recovered_from?: string | null | undefined;
|
|
3065
|
+
redirect_on_completion?: "always" | "if_required" | "never" | null | undefined;
|
|
3066
|
+
saved_payment_method_options?: any;
|
|
3067
|
+
setup_intent?: string | null | undefined;
|
|
3068
|
+
shipping_address_collection?: any;
|
|
3069
|
+
shipping_cost?: any;
|
|
3070
|
+
submit_type?: "auto" | "book" | "donate" | "pay" | "subscribe" | null | undefined;
|
|
3071
|
+
tax_id_collection?: any;
|
|
3072
|
+
total_details?: any;
|
|
3073
|
+
wallet_options?: any;
|
|
3074
|
+
object: string;
|
|
3075
|
+
id: string;
|
|
3076
|
+
automatic_tax: any;
|
|
3077
|
+
mode: "payment" | "setup" | "subscription";
|
|
3078
|
+
payment_status: "no_payment_required" | "paid" | "unpaid";
|
|
3079
|
+
status: "complete" | "expired" | "open" | null;
|
|
3080
|
+
created: number;
|
|
3081
|
+
custom_fields: any[];
|
|
3082
|
+
custom_text: any;
|
|
3083
|
+
expires_at: number;
|
|
3084
|
+
livemode: boolean;
|
|
3085
|
+
payment_method_types: string[];
|
|
3086
|
+
shipping_options: any[];
|
|
3087
|
+
}, {
|
|
3088
|
+
id: import('convex/values').VString<string, "required">;
|
|
3089
|
+
automatic_tax: import('convex/values').VAny<any, "required", string>;
|
|
3090
|
+
client_reference_id: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
3091
|
+
currency: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
3092
|
+
customer: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
3093
|
+
customer_email: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
3094
|
+
line_items: 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>;
|
|
3095
|
+
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>;
|
|
3096
|
+
mode: import('convex/values').VUnion<"payment" | "setup" | "subscription", [import('convex/values').VLiteral<"payment", "required">, import('convex/values').VLiteral<"setup", "required">, import('convex/values').VLiteral<"subscription", "required">], "required", never>;
|
|
3097
|
+
payment_intent: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
3098
|
+
payment_status: import('convex/values').VUnion<"no_payment_required" | "paid" | "unpaid", [import('convex/values').VLiteral<"no_payment_required", "required">, import('convex/values').VLiteral<"paid", "required">, import('convex/values').VLiteral<"unpaid", "required">], "required", never>;
|
|
3099
|
+
return_url: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
3100
|
+
status: import('convex/values').VUnion<"complete" | "expired" | "open" | null, [import('convex/values').VLiteral<"complete", "required">, import('convex/values').VLiteral<"expired", "required">, import('convex/values').VLiteral<"open", "required">, import('convex/values').VNull<null, "required">], "required", never>;
|
|
3101
|
+
success_url: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
3102
|
+
ui_mode: import('convex/values').VUnion<"custom" | "embedded" | "hosted" | null | undefined, [import('convex/values').VLiteral<"custom", "required">, import('convex/values').VLiteral<"embedded", "required">, import('convex/values').VLiteral<"hosted", "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
3103
|
+
url: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
3104
|
+
object: import('convex/values').VString<string, "required">;
|
|
3105
|
+
adaptive_pricing: import('convex/values').VUnion<any, [import('convex/values').VAny<any, "required", string>, import('convex/values').VNull<null, "required">], "optional", string>;
|
|
3106
|
+
after_expiration: import('convex/values').VUnion<any, [import('convex/values').VAny<any, "required", string>, import('convex/values').VNull<null, "required">], "optional", string>;
|
|
3107
|
+
allow_promotion_codes: import('convex/values').VUnion<boolean | null | undefined, [import('convex/values').VBoolean<boolean, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
3108
|
+
amount_subtotal: import('convex/values').VUnion<number | null | undefined, [import('convex/values').VFloat64<number, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
3109
|
+
amount_total: import('convex/values').VUnion<number | null | undefined, [import('convex/values').VFloat64<number, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
3110
|
+
billing_address_collection: import('convex/values').VUnion<"required" | "auto" | null | undefined, [import('convex/values').VLiteral<"auto", "required">, import('convex/values').VLiteral<"required", "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
3111
|
+
cancel_url: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
3112
|
+
client_secret: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
3113
|
+
collected_information: import('convex/values').VUnion<any, [import('convex/values').VAny<any, "required", string>, import('convex/values').VNull<null, "required">], "optional", string>;
|
|
3114
|
+
consent: import('convex/values').VUnion<any, [import('convex/values').VAny<any, "required", string>, import('convex/values').VNull<null, "required">], "optional", string>;
|
|
3115
|
+
consent_collection: import('convex/values').VUnion<any, [import('convex/values').VAny<any, "required", string>, import('convex/values').VNull<null, "required">], "optional", string>;
|
|
3116
|
+
created: import('convex/values').VFloat64<number, "required">;
|
|
3117
|
+
currency_conversion: import('convex/values').VUnion<any, [import('convex/values').VAny<any, "required", string>, import('convex/values').VNull<null, "required">], "optional", string>;
|
|
3118
|
+
custom_fields: import('convex/values').VArray<any[], import('convex/values').VAny<any, "required", string>, "required">;
|
|
3119
|
+
custom_text: import('convex/values').VAny<any, "required", string>;
|
|
3120
|
+
customer_creation: import('convex/values').VUnion<"always" | "if_required" | null | undefined, [import('convex/values').VLiteral<"always", "required">, import('convex/values').VLiteral<"if_required", "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
3121
|
+
customer_details: import('convex/values').VUnion<any, [import('convex/values').VAny<any, "required", string>, import('convex/values').VNull<null, "required">], "optional", string>;
|
|
3122
|
+
discounts: 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>;
|
|
3123
|
+
expires_at: import('convex/values').VFloat64<number, "required">;
|
|
3124
|
+
invoice: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
3125
|
+
invoice_creation: import('convex/values').VUnion<any, [import('convex/values').VAny<any, "required", string>, import('convex/values').VNull<null, "required">], "optional", string>;
|
|
3126
|
+
livemode: import('convex/values').VBoolean<boolean, "required">;
|
|
3127
|
+
locale: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
3128
|
+
optional_items: 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>;
|
|
3129
|
+
origin_context: import('convex/values').VUnion<"mobile_app" | "web" | null | undefined, [import('convex/values').VLiteral<"mobile_app", "required">, import('convex/values').VLiteral<"web", "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
3130
|
+
payment_link: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
3131
|
+
payment_method_collection: import('convex/values').VUnion<"always" | "if_required" | null | undefined, [import('convex/values').VLiteral<"always", "required">, import('convex/values').VLiteral<"if_required", "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
3132
|
+
payment_method_configuration_details: import('convex/values').VUnion<any, [import('convex/values').VAny<any, "required", string>, import('convex/values').VNull<null, "required">], "optional", string>;
|
|
3133
|
+
payment_method_options: import('convex/values').VUnion<any, [import('convex/values').VAny<any, "required", string>, import('convex/values').VNull<null, "required">], "optional", string>;
|
|
3134
|
+
payment_method_types: import('convex/values').VArray<string[], import('convex/values').VString<string, "required">, "required">;
|
|
3135
|
+
permissions: import('convex/values').VUnion<any, [import('convex/values').VAny<any, "required", string>, import('convex/values').VNull<null, "required">], "optional", string>;
|
|
3136
|
+
phone_number_collection: import('convex/values').VUnion<any, [import('convex/values').VAny<any, "required", string>, import('convex/values').VNull<null, "required">], "optional", string>;
|
|
3137
|
+
presentment_details: import('convex/values').VUnion<any, [import('convex/values').VAny<any, "required", string>, import('convex/values').VNull<null, "required">], "optional", string>;
|
|
3138
|
+
recovered_from: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
3139
|
+
redirect_on_completion: import('convex/values').VUnion<"always" | "if_required" | "never" | null | undefined, [import('convex/values').VLiteral<"always", "required">, import('convex/values').VLiteral<"if_required", "required">, import('convex/values').VLiteral<"never", "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
3140
|
+
saved_payment_method_options: import('convex/values').VUnion<any, [import('convex/values').VAny<any, "required", string>, import('convex/values').VNull<null, "required">], "optional", string>;
|
|
3141
|
+
setup_intent: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
3142
|
+
shipping_address_collection: import('convex/values').VUnion<any, [import('convex/values').VAny<any, "required", string>, import('convex/values').VNull<null, "required">], "optional", string>;
|
|
3143
|
+
shipping_cost: import('convex/values').VUnion<any, [import('convex/values').VAny<any, "required", string>, import('convex/values').VNull<null, "required">], "optional", string>;
|
|
3144
|
+
shipping_options: import('convex/values').VArray<any[], import('convex/values').VAny<any, "required", string>, "required">;
|
|
3145
|
+
submit_type: import('convex/values').VUnion<"auto" | "book" | "donate" | "pay" | "subscribe" | null | undefined, [import('convex/values').VLiteral<"auto", "required">, import('convex/values').VLiteral<"book", "required">, import('convex/values').VLiteral<"donate", "required">, import('convex/values').VLiteral<"pay", "required">, import('convex/values').VLiteral<"subscribe", "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
3146
|
+
subscription: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
3147
|
+
tax_id_collection: import('convex/values').VUnion<any, [import('convex/values').VAny<any, "required", string>, import('convex/values').VNull<null, "required">], "optional", string>;
|
|
3148
|
+
total_details: import('convex/values').VUnion<any, [import('convex/values').VAny<any, "required", string>, import('convex/values').VNull<null, "required">], "optional", string>;
|
|
3149
|
+
wallet_options: import('convex/values').VUnion<any, [import('convex/values').VAny<any, "required", string>, import('convex/values').VNull<null, "required">], "optional", string>;
|
|
3150
|
+
}, "required", "object" | "id" | "subscription" | "automatic_tax" | "client_reference_id" | "currency" | "customer" | "customer_email" | "line_items" | "metadata" | "mode" | "payment_intent" | "payment_status" | "return_url" | "status" | "success_url" | "ui_mode" | "url" | "adaptive_pricing" | "after_expiration" | "allow_promotion_codes" | "amount_subtotal" | "amount_total" | "billing_address_collection" | "cancel_url" | "client_secret" | "collected_information" | "consent" | "consent_collection" | "created" | "currency_conversion" | "custom_fields" | "custom_text" | "customer_creation" | "customer_details" | "discounts" | "expires_at" | "invoice" | "invoice_creation" | "livemode" | "locale" | "optional_items" | "origin_context" | "payment_link" | "payment_method_collection" | "payment_method_configuration_details" | "payment_method_options" | "payment_method_types" | "permissions" | "phone_number_collection" | "presentment_details" | "recovered_from" | "redirect_on_completion" | "saved_payment_method_options" | "setup_intent" | "shipping_address_collection" | "shipping_cost" | "shipping_options" | "submit_type" | "tax_id_collection" | "total_details" | "wallet_options" | `automatic_tax.${string}` | `metadata.${string}` | `adaptive_pricing.${string}` | `after_expiration.${string}` | `collected_information.${string}` | `consent.${string}` | `consent_collection.${string}` | `currency_conversion.${string}` | `custom_text.${string}` | `customer_details.${string}` | `invoice_creation.${string}` | `payment_method_configuration_details.${string}` | `payment_method_options.${string}` | `permissions.${string}` | `phone_number_collection.${string}` | `presentment_details.${string}` | `saved_payment_method_options.${string}` | `shipping_address_collection.${string}` | `shipping_cost.${string}` | `tax_id_collection.${string}` | `total_details.${string}` | `wallet_options.${string}`>;
|
|
3151
|
+
last_synced_at: import('convex/values').VFloat64<number, "required">;
|
|
3152
|
+
}, "required", "stripe" | "last_synced_at" | "stripe.object" | "stripe.id" | "stripe.metadata" | "stripe.url" | "stripe.created" | "stripe.livemode" | `stripe.metadata.${string}` | "stripe.currency" | "stripe.customer" | "stripe.expires_at" | "stripe.status" | "stripe.payment_intent" | "stripe.client_secret" | "stripe.payment_method_configuration_details" | "stripe.payment_method_options" | "stripe.payment_method_types" | "stripe.presentment_details" | `stripe.payment_method_options.${string}` | `stripe.presentment_details.${string}` | "checkoutSessionId" | "stripe.subscription" | "stripe.automatic_tax" | "stripe.client_reference_id" | "stripe.customer_email" | "stripe.line_items" | "stripe.mode" | "stripe.payment_status" | "stripe.return_url" | "stripe.success_url" | "stripe.ui_mode" | "stripe.adaptive_pricing" | "stripe.after_expiration" | "stripe.allow_promotion_codes" | "stripe.amount_subtotal" | "stripe.amount_total" | "stripe.billing_address_collection" | "stripe.cancel_url" | "stripe.collected_information" | "stripe.consent" | "stripe.consent_collection" | "stripe.currency_conversion" | "stripe.custom_fields" | "stripe.custom_text" | "stripe.customer_creation" | "stripe.customer_details" | "stripe.discounts" | "stripe.invoice" | "stripe.invoice_creation" | "stripe.locale" | "stripe.optional_items" | "stripe.origin_context" | "stripe.payment_link" | "stripe.payment_method_collection" | "stripe.permissions" | "stripe.phone_number_collection" | "stripe.recovered_from" | "stripe.redirect_on_completion" | "stripe.saved_payment_method_options" | "stripe.setup_intent" | "stripe.shipping_address_collection" | "stripe.shipping_cost" | "stripe.shipping_options" | "stripe.submit_type" | "stripe.tax_id_collection" | "stripe.total_details" | "stripe.wallet_options" | `stripe.automatic_tax.${string}` | `stripe.adaptive_pricing.${string}` | `stripe.after_expiration.${string}` | `stripe.collected_information.${string}` | `stripe.consent.${string}` | `stripe.consent_collection.${string}` | `stripe.currency_conversion.${string}` | `stripe.custom_text.${string}` | `stripe.customer_details.${string}` | `stripe.invoice_creation.${string}` | `stripe.payment_method_configuration_details.${string}` | `stripe.permissions.${string}` | `stripe.phone_number_collection.${string}` | `stripe.saved_payment_method_options.${string}` | `stripe.shipping_address_collection.${string}` | `stripe.shipping_cost.${string}` | `stripe.tax_id_collection.${string}` | `stripe.total_details.${string}` | `stripe.wallet_options.${string}`>, {
|
|
3153
|
+
byCheckoutSessionId: ["checkoutSessionId", "_creationTime"];
|
|
3154
|
+
}, {}, {}>;
|
|
3155
|
+
stripe_invoices: import('convex/server').TableDefinition<import('convex/values').VObject<{
|
|
3156
|
+
stripe: {
|
|
3157
|
+
number?: string | null | undefined;
|
|
3158
|
+
automatic_tax?: any;
|
|
3159
|
+
customer_email?: string | null | undefined;
|
|
3160
|
+
metadata?: Record<string, string | number | null> | null | undefined;
|
|
3161
|
+
custom_fields?: any[] | null | undefined;
|
|
3162
|
+
shipping_cost?: any;
|
|
3163
|
+
description?: string | null | undefined;
|
|
3164
|
+
default_source?: string | null | undefined;
|
|
3165
|
+
test_clock?: string | null | undefined;
|
|
3166
|
+
auto_advance?: boolean | undefined;
|
|
3167
|
+
confirmation_secret?: any;
|
|
3168
|
+
hosted_invoice_url?: string | null | undefined;
|
|
3169
|
+
lines?: any;
|
|
3170
|
+
parent?: any;
|
|
3171
|
+
account_country?: string | null | undefined;
|
|
3172
|
+
account_name?: string | null | undefined;
|
|
3173
|
+
account_tax_ids?: string[] | null | undefined;
|
|
3174
|
+
application?: string | null | undefined;
|
|
3175
|
+
automatically_finalizes_at?: number | null | undefined;
|
|
3176
|
+
customer_address?: any;
|
|
3177
|
+
customer_name?: string | null | undefined;
|
|
3178
|
+
customer_phone?: string | null | undefined;
|
|
3179
|
+
customer_shipping?: any;
|
|
3180
|
+
customer_tax_ids?: any[] | null | undefined;
|
|
3181
|
+
default_payment_method?: string | null | undefined;
|
|
3182
|
+
due_date?: number | null | undefined;
|
|
3183
|
+
effective_at?: number | null | undefined;
|
|
3184
|
+
ending_balance?: number | null | undefined;
|
|
3185
|
+
footer?: string | null | undefined;
|
|
3186
|
+
from_invoice?: any;
|
|
3187
|
+
invoice_pdf?: string | null | undefined;
|
|
3188
|
+
issuer?: any;
|
|
3189
|
+
last_finalization_error?: any;
|
|
3190
|
+
latest_revision?: string | null | undefined;
|
|
3191
|
+
next_payment_attempt?: number | null | undefined;
|
|
3192
|
+
on_behalf_of?: string | null | undefined;
|
|
3193
|
+
payment_settings?: any;
|
|
3194
|
+
payments?: any;
|
|
3195
|
+
receipt_number?: string | null | undefined;
|
|
3196
|
+
rendering?: any;
|
|
3197
|
+
shipping_details?: any;
|
|
3198
|
+
statement_descriptor?: string | null | undefined;
|
|
3199
|
+
status_transitions?: any;
|
|
3200
|
+
subtotal_excluding_tax?: number | null | undefined;
|
|
3201
|
+
threshold_reason?: any;
|
|
3202
|
+
total_discount_amounts?: any[] | null | undefined;
|
|
3203
|
+
total_excluding_tax?: number | null | undefined;
|
|
3204
|
+
total_pretax_credit_amounts?: any[] | null | undefined;
|
|
3205
|
+
total_taxes?: any[] | null | undefined;
|
|
3206
|
+
webhooks_delivered_at?: number | null | undefined;
|
|
3207
|
+
object: string;
|
|
3208
|
+
id: string;
|
|
3209
|
+
currency: string;
|
|
3210
|
+
customer: string;
|
|
3211
|
+
status: "paid" | "open" | "draft" | "uncollectible" | "void";
|
|
3212
|
+
created: number;
|
|
3213
|
+
discounts: string[];
|
|
3214
|
+
livemode: boolean;
|
|
3215
|
+
collection_method: "charge_automatically" | "send_invoice";
|
|
3216
|
+
period_end: number;
|
|
3217
|
+
period_start: number;
|
|
3218
|
+
total: number;
|
|
3219
|
+
amount_due: number;
|
|
3220
|
+
amount_overpaid: number;
|
|
3221
|
+
amount_paid: number;
|
|
3222
|
+
amount_remaining: number;
|
|
3223
|
+
amount_shipping: number;
|
|
3224
|
+
attempt_count: number;
|
|
3225
|
+
attempted: boolean;
|
|
3226
|
+
billing_reason: "subscription" | "automatic_pending_invoice_item_invoice" | "manual" | "quote_accept" | "subscription_create" | "subscription_cycle" | "subscription_threshold" | "subscription_update" | "upcoming" | null;
|
|
3227
|
+
customer_tax_exempt: "reverse" | "exempt" | "none" | null;
|
|
3228
|
+
default_tax_rates: any[];
|
|
3229
|
+
post_payment_credit_notes_amount: number;
|
|
3230
|
+
pre_payment_credit_notes_amount: number;
|
|
3231
|
+
starting_balance: number;
|
|
3232
|
+
subtotal: number;
|
|
3233
|
+
};
|
|
3234
|
+
last_synced_at: number;
|
|
3235
|
+
invoiceId: string;
|
|
3236
|
+
}, {
|
|
3237
|
+
invoiceId: import('convex/values').VString<string, "required">;
|
|
3238
|
+
stripe: import('convex/values').VObject<{
|
|
3239
|
+
number?: string | null | undefined;
|
|
3240
|
+
automatic_tax?: any;
|
|
3241
|
+
customer_email?: string | null | undefined;
|
|
3242
|
+
metadata?: Record<string, string | number | null> | null | undefined;
|
|
3243
|
+
custom_fields?: any[] | null | undefined;
|
|
3244
|
+
shipping_cost?: any;
|
|
3245
|
+
description?: string | null | undefined;
|
|
3246
|
+
default_source?: string | null | undefined;
|
|
3247
|
+
test_clock?: string | null | undefined;
|
|
3248
|
+
auto_advance?: boolean | undefined;
|
|
3249
|
+
confirmation_secret?: any;
|
|
3250
|
+
hosted_invoice_url?: string | null | undefined;
|
|
3251
|
+
lines?: any;
|
|
3252
|
+
parent?: any;
|
|
3253
|
+
account_country?: string | null | undefined;
|
|
3254
|
+
account_name?: string | null | undefined;
|
|
3255
|
+
account_tax_ids?: string[] | null | undefined;
|
|
3256
|
+
application?: string | null | undefined;
|
|
3257
|
+
automatically_finalizes_at?: number | null | undefined;
|
|
3258
|
+
customer_address?: any;
|
|
3259
|
+
customer_name?: string | null | undefined;
|
|
3260
|
+
customer_phone?: string | null | undefined;
|
|
3261
|
+
customer_shipping?: any;
|
|
3262
|
+
customer_tax_ids?: any[] | null | undefined;
|
|
3263
|
+
default_payment_method?: string | null | undefined;
|
|
3264
|
+
due_date?: number | null | undefined;
|
|
3265
|
+
effective_at?: number | null | undefined;
|
|
3266
|
+
ending_balance?: number | null | undefined;
|
|
3267
|
+
footer?: string | null | undefined;
|
|
3268
|
+
from_invoice?: any;
|
|
3269
|
+
invoice_pdf?: string | null | undefined;
|
|
3270
|
+
issuer?: any;
|
|
3271
|
+
last_finalization_error?: any;
|
|
3272
|
+
latest_revision?: string | null | undefined;
|
|
3273
|
+
next_payment_attempt?: number | null | undefined;
|
|
3274
|
+
on_behalf_of?: string | null | undefined;
|
|
3275
|
+
payment_settings?: any;
|
|
3276
|
+
payments?: any;
|
|
3277
|
+
receipt_number?: string | null | undefined;
|
|
3278
|
+
rendering?: any;
|
|
3279
|
+
shipping_details?: any;
|
|
3280
|
+
statement_descriptor?: string | null | undefined;
|
|
3281
|
+
status_transitions?: any;
|
|
3282
|
+
subtotal_excluding_tax?: number | null | undefined;
|
|
3283
|
+
threshold_reason?: any;
|
|
3284
|
+
total_discount_amounts?: any[] | null | undefined;
|
|
3285
|
+
total_excluding_tax?: number | null | undefined;
|
|
3286
|
+
total_pretax_credit_amounts?: any[] | null | undefined;
|
|
3287
|
+
total_taxes?: any[] | null | undefined;
|
|
3288
|
+
webhooks_delivered_at?: number | null | undefined;
|
|
3289
|
+
object: string;
|
|
3290
|
+
id: string;
|
|
3291
|
+
currency: string;
|
|
3292
|
+
customer: string;
|
|
3293
|
+
status: "paid" | "open" | "draft" | "uncollectible" | "void";
|
|
3294
|
+
created: number;
|
|
3295
|
+
discounts: string[];
|
|
3296
|
+
livemode: boolean;
|
|
3297
|
+
collection_method: "charge_automatically" | "send_invoice";
|
|
3298
|
+
period_end: number;
|
|
3299
|
+
period_start: number;
|
|
3300
|
+
total: number;
|
|
3301
|
+
amount_due: number;
|
|
3302
|
+
amount_overpaid: number;
|
|
3303
|
+
amount_paid: number;
|
|
3304
|
+
amount_remaining: number;
|
|
3305
|
+
amount_shipping: number;
|
|
3306
|
+
attempt_count: number;
|
|
3307
|
+
attempted: boolean;
|
|
3308
|
+
billing_reason: "subscription" | "automatic_pending_invoice_item_invoice" | "manual" | "quote_accept" | "subscription_create" | "subscription_cycle" | "subscription_threshold" | "subscription_update" | "upcoming" | null;
|
|
3309
|
+
customer_tax_exempt: "reverse" | "exempt" | "none" | null;
|
|
3310
|
+
default_tax_rates: any[];
|
|
3311
|
+
post_payment_credit_notes_amount: number;
|
|
3312
|
+
pre_payment_credit_notes_amount: number;
|
|
3313
|
+
starting_balance: number;
|
|
3314
|
+
subtotal: number;
|
|
3315
|
+
}, {
|
|
3316
|
+
id: import('convex/values').VString<string, "required">;
|
|
3317
|
+
auto_advance: import('convex/values').VBoolean<boolean | undefined, "optional">;
|
|
3318
|
+
automatic_tax: import('convex/values').VAny<any, "optional", string>;
|
|
3319
|
+
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>;
|
|
3320
|
+
confirmation_secret: import('convex/values').VAny<any, "optional", string>;
|
|
3321
|
+
currency: import('convex/values').VString<string, "required">;
|
|
3322
|
+
customer: import('convex/values').VString<string, "required">;
|
|
3323
|
+
description: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
3324
|
+
hosted_invoice_url: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
3325
|
+
lines: import('convex/values').VAny<any, "optional", string>;
|
|
3326
|
+
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>;
|
|
3327
|
+
parent: import('convex/values').VAny<any, "optional", string>;
|
|
3328
|
+
period_end: import('convex/values').VFloat64<number, "required">;
|
|
3329
|
+
period_start: import('convex/values').VFloat64<number, "required">;
|
|
3330
|
+
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>;
|
|
3331
|
+
total: import('convex/values').VFloat64<number, "required">;
|
|
3332
|
+
object: import('convex/values').VString<string, "required">;
|
|
3333
|
+
account_country: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
3334
|
+
account_name: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
3335
|
+
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>;
|
|
3336
|
+
amount_due: import('convex/values').VFloat64<number, "required">;
|
|
3337
|
+
amount_overpaid: import('convex/values').VFloat64<number, "required">;
|
|
3338
|
+
amount_paid: import('convex/values').VFloat64<number, "required">;
|
|
3339
|
+
amount_remaining: import('convex/values').VFloat64<number, "required">;
|
|
3340
|
+
amount_shipping: import('convex/values').VFloat64<number, "required">;
|
|
3341
|
+
application: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
3342
|
+
attempt_count: import('convex/values').VFloat64<number, "required">;
|
|
3343
|
+
attempted: import('convex/values').VBoolean<boolean, "required">;
|
|
3344
|
+
automatically_finalizes_at: import('convex/values').VUnion<number | null | undefined, [import('convex/values').VFloat64<number, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
3345
|
+
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>;
|
|
3346
|
+
created: import('convex/values').VFloat64<number, "required">;
|
|
3347
|
+
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>;
|
|
3348
|
+
customer_address: import('convex/values').VAny<any, "optional", string>;
|
|
3349
|
+
customer_email: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
3350
|
+
customer_name: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
3351
|
+
customer_phone: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
3352
|
+
customer_shipping: import('convex/values').VAny<any, "optional", string>;
|
|
3353
|
+
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>;
|
|
3354
|
+
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>;
|
|
3355
|
+
default_payment_method: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
3356
|
+
default_source: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
3357
|
+
default_tax_rates: import('convex/values').VArray<any[], import('convex/values').VAny<any, "required", string>, "required">;
|
|
3358
|
+
discounts: import('convex/values').VArray<string[], import('convex/values').VString<string, "required">, "required">;
|
|
3359
|
+
due_date: import('convex/values').VUnion<number | null | undefined, [import('convex/values').VFloat64<number, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
3360
|
+
effective_at: import('convex/values').VUnion<number | null | undefined, [import('convex/values').VFloat64<number, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
3361
|
+
ending_balance: import('convex/values').VUnion<number | null | undefined, [import('convex/values').VFloat64<number, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
3362
|
+
footer: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
3363
|
+
from_invoice: import('convex/values').VAny<any, "optional", string>;
|
|
3364
|
+
invoice_pdf: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
3365
|
+
issuer: import('convex/values').VAny<any, "optional", string>;
|
|
3366
|
+
last_finalization_error: import('convex/values').VAny<any, "optional", string>;
|
|
3367
|
+
latest_revision: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
3368
|
+
livemode: import('convex/values').VBoolean<boolean, "required">;
|
|
3369
|
+
next_payment_attempt: import('convex/values').VUnion<number | null | undefined, [import('convex/values').VFloat64<number, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
3370
|
+
number: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
3371
|
+
on_behalf_of: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
3372
|
+
payment_settings: import('convex/values').VAny<any, "optional", string>;
|
|
3373
|
+
payments: import('convex/values').VAny<any, "optional", string>;
|
|
3374
|
+
post_payment_credit_notes_amount: import('convex/values').VFloat64<number, "required">;
|
|
3375
|
+
pre_payment_credit_notes_amount: import('convex/values').VFloat64<number, "required">;
|
|
3376
|
+
receipt_number: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
3377
|
+
rendering: import('convex/values').VAny<any, "optional", string>;
|
|
3378
|
+
shipping_cost: import('convex/values').VAny<any, "optional", string>;
|
|
3379
|
+
shipping_details: import('convex/values').VAny<any, "optional", string>;
|
|
3380
|
+
starting_balance: import('convex/values').VFloat64<number, "required">;
|
|
3381
|
+
statement_descriptor: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
3382
|
+
status_transitions: import('convex/values').VAny<any, "optional", string>;
|
|
3383
|
+
subtotal: import('convex/values').VFloat64<number, "required">;
|
|
3384
|
+
subtotal_excluding_tax: import('convex/values').VUnion<number | null | undefined, [import('convex/values').VFloat64<number, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
3385
|
+
test_clock: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
3386
|
+
threshold_reason: import('convex/values').VAny<any, "optional", string>;
|
|
3387
|
+
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>;
|
|
3388
|
+
total_excluding_tax: import('convex/values').VUnion<number | null | undefined, [import('convex/values').VFloat64<number, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
3389
|
+
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>;
|
|
3390
|
+
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>;
|
|
3391
|
+
webhooks_delivered_at: import('convex/values').VUnion<number | null | undefined, [import('convex/values').VFloat64<number, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
3392
|
+
}, "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}`>;
|
|
3393
|
+
last_synced_at: import('convex/values').VFloat64<number, "required">;
|
|
3394
|
+
}, "required", "stripe" | "last_synced_at" | "stripe.object" | "stripe.id" | "stripe.metadata" | "stripe.created" | "stripe.livemode" | `stripe.metadata.${string}` | "stripe.description" | "stripe.statement_descriptor" | "stripe.currency" | "stripe.default_source" | "stripe.test_clock" | "stripe.customer" | "stripe.status" | "stripe.receipt_number" | "stripe.application" | "stripe.on_behalf_of" | "stripe.automatic_tax" | "stripe.customer_email" | "stripe.custom_fields" | "stripe.discounts" | "stripe.shipping_cost" | `stripe.automatic_tax.${string}` | `stripe.shipping_cost.${string}` | "invoiceId" | "stripe.number" | "stripe.auto_advance" | "stripe.collection_method" | "stripe.confirmation_secret" | "stripe.hosted_invoice_url" | "stripe.lines" | "stripe.parent" | "stripe.period_end" | "stripe.period_start" | "stripe.total" | "stripe.account_country" | "stripe.account_name" | "stripe.account_tax_ids" | "stripe.amount_due" | "stripe.amount_overpaid" | "stripe.amount_paid" | "stripe.amount_remaining" | "stripe.amount_shipping" | "stripe.attempt_count" | "stripe.attempted" | "stripe.automatically_finalizes_at" | "stripe.billing_reason" | "stripe.customer_address" | "stripe.customer_name" | "stripe.customer_phone" | "stripe.customer_shipping" | "stripe.customer_tax_exempt" | "stripe.customer_tax_ids" | "stripe.default_payment_method" | "stripe.default_tax_rates" | "stripe.due_date" | "stripe.effective_at" | "stripe.ending_balance" | "stripe.footer" | "stripe.from_invoice" | "stripe.invoice_pdf" | "stripe.issuer" | "stripe.last_finalization_error" | "stripe.latest_revision" | "stripe.next_payment_attempt" | "stripe.payment_settings" | "stripe.payments" | "stripe.post_payment_credit_notes_amount" | "stripe.pre_payment_credit_notes_amount" | "stripe.rendering" | "stripe.shipping_details" | "stripe.starting_balance" | "stripe.status_transitions" | "stripe.subtotal" | "stripe.subtotal_excluding_tax" | "stripe.threshold_reason" | "stripe.total_discount_amounts" | "stripe.total_excluding_tax" | "stripe.total_pretax_credit_amounts" | "stripe.total_taxes" | "stripe.webhooks_delivered_at" | `stripe.confirmation_secret.${string}` | `stripe.lines.${string}` | `stripe.parent.${string}` | `stripe.customer_address.${string}` | `stripe.customer_shipping.${string}` | `stripe.from_invoice.${string}` | `stripe.issuer.${string}` | `stripe.last_finalization_error.${string}` | `stripe.payment_settings.${string}` | `stripe.payments.${string}` | `stripe.rendering.${string}` | `stripe.shipping_details.${string}` | `stripe.status_transitions.${string}` | `stripe.threshold_reason.${string}`>, {
|
|
3395
|
+
byInvoiceId: ["invoiceId", "_creationTime"];
|
|
3396
|
+
}, {}, {}>;
|
|
3397
|
+
stripe_reviews: import('convex/server').TableDefinition<import('convex/values').VObject<{
|
|
3398
|
+
stripe: {
|
|
3399
|
+
payment_intent?: string | null | undefined;
|
|
3400
|
+
ip_address?: string | null | undefined;
|
|
3401
|
+
charge?: string | null | undefined;
|
|
3402
|
+
billing_zip?: string | null | undefined;
|
|
3403
|
+
closed_reason?: "canceled" | "approved" | "refunded" | "refunded_as_fraud" | "disputed" | "redacted" | "payment_never_settled" | "acknowledged" | null | undefined;
|
|
3404
|
+
ip_address_location?: {
|
|
3405
|
+
city?: string | null | undefined;
|
|
3406
|
+
country?: string | null | undefined;
|
|
3407
|
+
latitude?: number | null | undefined;
|
|
3408
|
+
longitude?: number | null | undefined;
|
|
3409
|
+
region?: string | null | undefined;
|
|
3410
|
+
} | null | undefined;
|
|
3411
|
+
session?: {
|
|
3412
|
+
browser?: string | null | undefined;
|
|
3413
|
+
device?: string | null | undefined;
|
|
3414
|
+
platform?: string | null | undefined;
|
|
3415
|
+
version?: string | null | undefined;
|
|
3416
|
+
} | null | undefined;
|
|
3417
|
+
object: string;
|
|
3418
|
+
id: string;
|
|
3419
|
+
open: boolean;
|
|
3420
|
+
created: number;
|
|
3421
|
+
livemode: boolean;
|
|
3422
|
+
reason: string;
|
|
3423
|
+
opened_reason: "manual" | "rule";
|
|
3424
|
+
};
|
|
3425
|
+
last_synced_at: number;
|
|
3426
|
+
reviewId: string;
|
|
3427
|
+
}, {
|
|
3428
|
+
reviewId: import('convex/values').VString<string, "required">;
|
|
3429
|
+
stripe: import('convex/values').VObject<{
|
|
3430
|
+
payment_intent?: string | null | undefined;
|
|
3431
|
+
ip_address?: string | null | undefined;
|
|
3432
|
+
charge?: string | null | undefined;
|
|
3433
|
+
billing_zip?: string | null | undefined;
|
|
3434
|
+
closed_reason?: "canceled" | "approved" | "refunded" | "refunded_as_fraud" | "disputed" | "redacted" | "payment_never_settled" | "acknowledged" | null | undefined;
|
|
3435
|
+
ip_address_location?: {
|
|
3436
|
+
city?: string | null | undefined;
|
|
3437
|
+
country?: string | null | undefined;
|
|
3438
|
+
latitude?: number | null | undefined;
|
|
3439
|
+
longitude?: number | null | undefined;
|
|
3440
|
+
region?: string | null | undefined;
|
|
3441
|
+
} | null | undefined;
|
|
3442
|
+
session?: {
|
|
3443
|
+
browser?: string | null | undefined;
|
|
3444
|
+
device?: string | null | undefined;
|
|
3445
|
+
platform?: string | null | undefined;
|
|
3446
|
+
version?: string | null | undefined;
|
|
3447
|
+
} | null | undefined;
|
|
3448
|
+
object: string;
|
|
3449
|
+
id: string;
|
|
3450
|
+
open: boolean;
|
|
3451
|
+
created: number;
|
|
3452
|
+
livemode: boolean;
|
|
3453
|
+
reason: string;
|
|
3454
|
+
opened_reason: "manual" | "rule";
|
|
3455
|
+
}, {
|
|
3456
|
+
id: import('convex/values').VString<string, "required">;
|
|
3457
|
+
charge: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
3458
|
+
open: import('convex/values').VBoolean<boolean, "required">;
|
|
3459
|
+
payment_intent: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
3460
|
+
reason: import('convex/values').VString<string, "required">;
|
|
3461
|
+
object: import('convex/values').VString<string, "required">;
|
|
3462
|
+
billing_zip: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
3463
|
+
closed_reason: import('convex/values').VUnion<"canceled" | "approved" | "refunded" | "refunded_as_fraud" | "disputed" | "redacted" | "payment_never_settled" | "acknowledged" | null | undefined, [import('convex/values').VLiteral<"approved", "required">, import('convex/values').VLiteral<"refunded", "required">, import('convex/values').VLiteral<"refunded_as_fraud", "required">, import('convex/values').VLiteral<"disputed", "required">, import('convex/values').VLiteral<"redacted", "required">, import('convex/values').VLiteral<"canceled", "required">, import('convex/values').VLiteral<"payment_never_settled", "required">, import('convex/values').VLiteral<"acknowledged", "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
3464
|
+
created: import('convex/values').VFloat64<number, "required">;
|
|
3465
|
+
ip_address: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
3466
|
+
ip_address_location: import('convex/values').VUnion<{
|
|
3467
|
+
city?: string | null | undefined;
|
|
3468
|
+
country?: string | null | undefined;
|
|
3469
|
+
latitude?: number | null | undefined;
|
|
3470
|
+
longitude?: number | null | undefined;
|
|
3471
|
+
region?: string | null | undefined;
|
|
3472
|
+
} | null | undefined, [import('convex/values').VObject<{
|
|
3473
|
+
city?: string | null | undefined;
|
|
3474
|
+
country?: string | null | undefined;
|
|
3475
|
+
latitude?: number | null | undefined;
|
|
3476
|
+
longitude?: number | null | undefined;
|
|
3477
|
+
region?: string | null | undefined;
|
|
3478
|
+
}, {
|
|
3479
|
+
city: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
3480
|
+
country: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
3481
|
+
latitude: import('convex/values').VUnion<number | null | undefined, [import('convex/values').VFloat64<number, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
3482
|
+
longitude: import('convex/values').VUnion<number | null | undefined, [import('convex/values').VFloat64<number, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
3483
|
+
region: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
3484
|
+
}, "required", "city" | "country" | "latitude" | "longitude" | "region">, import('convex/values').VNull<null, "required">], "optional", "city" | "country" | "latitude" | "longitude" | "region">;
|
|
3485
|
+
livemode: import('convex/values').VBoolean<boolean, "required">;
|
|
3486
|
+
opened_reason: import('convex/values').VUnion<"manual" | "rule", [import('convex/values').VLiteral<"manual", "required">, import('convex/values').VLiteral<"rule", "required">], "required", never>;
|
|
3487
|
+
session: import('convex/values').VUnion<{
|
|
3488
|
+
browser?: string | null | undefined;
|
|
3489
|
+
device?: string | null | undefined;
|
|
3490
|
+
platform?: string | null | undefined;
|
|
3491
|
+
version?: string | null | undefined;
|
|
3492
|
+
} | null | undefined, [import('convex/values').VObject<{
|
|
3493
|
+
browser?: string | null | undefined;
|
|
3494
|
+
device?: string | null | undefined;
|
|
3495
|
+
platform?: string | null | undefined;
|
|
3496
|
+
version?: string | null | undefined;
|
|
3497
|
+
}, {
|
|
3498
|
+
browser: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
3499
|
+
device: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
3500
|
+
platform: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
3501
|
+
version: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
3502
|
+
}, "required", "browser" | "device" | "platform" | "version">, import('convex/values').VNull<null, "required">], "optional", "browser" | "device" | "platform" | "version">;
|
|
3503
|
+
}, "required", "object" | "id" | "open" | "payment_intent" | "created" | "livemode" | "ip_address" | "charge" | "reason" | "billing_zip" | "closed_reason" | "ip_address_location" | "opened_reason" | "session" | "ip_address_location.city" | "ip_address_location.country" | "ip_address_location.latitude" | "ip_address_location.longitude" | "ip_address_location.region" | "session.browser" | "session.device" | "session.platform" | "session.version">;
|
|
3504
|
+
last_synced_at: import('convex/values').VFloat64<number, "required">;
|
|
3505
|
+
}, "required", "stripe" | "last_synced_at" | "stripe.object" | "stripe.id" | "stripe.created" | "stripe.livemode" | "stripe.payment_intent" | "stripe.charge" | "stripe.reason" | "reviewId" | "stripe.open" | "stripe.ip_address" | "stripe.billing_zip" | "stripe.closed_reason" | "stripe.ip_address_location" | "stripe.opened_reason" | "stripe.session" | "stripe.ip_address_location.city" | "stripe.ip_address_location.country" | "stripe.ip_address_location.latitude" | "stripe.ip_address_location.longitude" | "stripe.ip_address_location.region" | "stripe.session.browser" | "stripe.session.device" | "stripe.session.platform" | "stripe.session.version">, {
|
|
3506
|
+
reviewId: ["reviewId", "_creationTime"];
|
|
3507
|
+
}, {}, {}>;
|
|
3508
|
+
}, true>;
|
|
3509
|
+
export type StripeDataModel = DataModelFromSchemaDefinition<typeof defaultSchema>;
|
|
3510
|
+
export type Doc<T extends TableNamesInDataModel<StripeDataModel>> = GenericDoc<StripeDataModel, T>;
|
|
3511
|
+
export {};
|