@raideno/convex-stripe 0.1.1 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +0 -2
- package/dist/index.js +1 -0
- package/dist/server/actions/index.d.ts +4 -0
- package/dist/server/actions/pay.d.ts +579 -0
- package/dist/server/actions/portal.d.ts +26 -0
- package/dist/server/actions/setup.d.ts +19 -0
- package/dist/server/actions/subscribe.d.ts +44 -0
- package/dist/server/helpers.d.ts +28 -0
- package/dist/server/index.d.ts +967 -0
- package/dist/server/logger.d.ts +8 -0
- package/dist/server/redirects/index.d.ts +47 -0
- package/dist/server/redirects/pay.d.ts +5 -0
- package/dist/server/redirects/portal.d.ts +3 -0
- package/dist/server/redirects/subscribe.d.ts +3 -0
- package/dist/server/redirects/types.d.ts +9 -0
- package/dist/server/schema/charge.d.ts +294 -0
- package/dist/server/schema/checkout-session.d.ts +256 -0
- package/dist/server/schema/coupon.d.ts +112 -0
- package/dist/server/schema/credit-note.d.ts +228 -0
- package/dist/server/schema/customer.d.ts +366 -0
- package/dist/server/schema/dispute.d.ts +76 -0
- package/dist/server/schema/early-fraud-warning.d.ts +40 -0
- package/dist/server/schema/index.d.ts +6063 -0
- package/dist/server/schema/invoice.d.ts +314 -0
- package/dist/server/schema/payment-intent.d.ts +311 -0
- package/dist/server/schema/payment-method.d.ts +248 -0
- package/dist/server/schema/payout.d.ts +140 -0
- package/dist/server/schema/plan.d.ts +112 -0
- package/dist/server/schema/price.d.ts +148 -0
- package/dist/server/schema/product.d.ts +132 -0
- package/dist/server/schema/promotion-code.d.ts +266 -0
- package/dist/server/schema/refund.d.ts +92 -0
- package/dist/server/schema/review.d.ts +152 -0
- package/dist/server/schema/setup-intent.d.ts +156 -0
- package/dist/server/schema/subscription-schedule.d.ts +468 -0
- package/dist/server/schema/subscription.d.ts +4 -0
- package/dist/server/schema/tax-id.d.ts +120 -0
- package/dist/server/store/index.d.ts +960 -0
- package/dist/server/store/operations/delete-by-id.d.ts +3 -0
- package/dist/server/store/operations/index.d.ts +5 -0
- package/dist/server/store/operations/select-all.d.ts +3 -0
- package/dist/server/store/operations/select-by-id.d.ts +4 -0
- package/dist/server/store/operations/select-one.d.ts +3 -0
- package/dist/server/store/operations/upsert.d.ts +4 -0
- package/dist/server/store/types.d.ts +70 -0
- package/dist/server/sync/all.d.ts +5 -0
- package/dist/server/sync/charges.handler.d.ts +5 -0
- package/dist/server/sync/checkout-sessions.handler.d.ts +5 -0
- package/dist/server/sync/coupons.handler.d.ts +5 -0
- package/dist/server/sync/credit-notes.handler.d.ts +5 -0
- package/dist/server/sync/customers.handler.d.ts +5 -0
- package/dist/server/sync/disputes.handler.d.ts +5 -0
- package/dist/server/sync/early-fraud-warnings.handler.d.ts +5 -0
- package/dist/server/sync/invoices.handler.d.ts +5 -0
- package/dist/server/sync/payment-intents.handler.d.ts +5 -0
- package/dist/server/sync/payment-methods.handler.d.ts +5 -0
- package/dist/server/sync/payouts.handler.d.ts +5 -0
- package/dist/server/sync/plans.handler.d.ts +5 -0
- package/dist/server/sync/prices.handler.d.ts +5 -0
- package/dist/server/sync/products.handler.d.ts +5 -0
- package/dist/server/sync/promotion-codes.handler.d.ts +5 -0
- package/dist/server/sync/refunds.handler.d.ts +5 -0
- package/dist/server/sync/reviews.handler.d.ts +5 -0
- package/dist/server/sync/setup-intents.handler.d.ts +5 -0
- package/dist/server/sync/subscription-schedules.handler.d.ts +5 -0
- package/dist/server/sync/subscription.d.ts +12 -0
- package/dist/server/sync/subscriptions.handler.d.ts +5 -0
- package/dist/server/sync/tax-id.handler.d.ts +5 -0
- package/dist/server/types.d.ts +29 -0
- package/dist/server/webhooks/charges.handler.d.ts +2 -0
- package/dist/server/webhooks/checkout-sessions.handler.d.ts +2 -0
- package/dist/server/webhooks/coupons.handler.d.ts +2 -0
- package/dist/server/webhooks/credit-notes.handler.d.ts +2 -0
- package/dist/server/webhooks/customers.handler.d.ts +2 -0
- package/dist/server/webhooks/disputes.handler.d.ts +2 -0
- package/dist/server/webhooks/early-fraud-warnings.handler.d.ts +2 -0
- package/dist/server/webhooks/index.d.ts +2 -0
- package/dist/server/webhooks/invoices.handler.d.ts +2 -0
- package/dist/server/webhooks/payment-intents.handler.d.ts +2 -0
- package/dist/server/webhooks/payment-methods.handler.d.ts +2 -0
- package/dist/server/webhooks/payouts.handler.d.ts +2 -0
- package/dist/server/webhooks/plans.handler.d.ts +2 -0
- package/dist/server/webhooks/prices.handler.d.ts +2 -0
- package/dist/server/webhooks/products.handler.d.ts +2 -0
- package/dist/server/webhooks/promotion-codes.handler.d.ts +2 -0
- package/dist/server/webhooks/refunds.handler.d.ts +2 -0
- package/dist/server/webhooks/reviews.handler.d.ts +2 -0
- package/dist/server/webhooks/setup-intent.handler.d.ts +2 -0
- package/dist/server/webhooks/subscription-schedules.handler.d.ts +2 -0
- package/dist/server/webhooks/subscription.handler.d.ts +2 -0
- package/dist/server/webhooks/tax-id.handler.d.ts +2 -0
- package/dist/server/webhooks/types.d.ts +11 -0
- package/dist/server.d.ts +2 -3790
- package/dist/server.js +6072 -1564
- package/package.json +9 -10
|
@@ -0,0 +1,468 @@
|
|
|
1
|
+
import { default as Stripe } from 'stripe';
|
|
2
|
+
export declare const SubscriptionScheduleStripeToConvex: (subscriptionSchedule: Stripe.SubscriptionSchedule) => {
|
|
3
|
+
metadata?: Record<string, string | number | null> | null | undefined;
|
|
4
|
+
application?: string | null | undefined;
|
|
5
|
+
test_clock?: string | null | undefined;
|
|
6
|
+
canceled_at?: number | null | undefined;
|
|
7
|
+
current_phase?: {
|
|
8
|
+
end_date: number;
|
|
9
|
+
start_date: number;
|
|
10
|
+
} | null | undefined;
|
|
11
|
+
completed_at?: number | null | undefined;
|
|
12
|
+
default_settings?: {
|
|
13
|
+
description?: string | null | undefined;
|
|
14
|
+
on_behalf_of?: string | null | undefined;
|
|
15
|
+
transfer_data?: {
|
|
16
|
+
amount_percent?: number | null | undefined;
|
|
17
|
+
destination: string;
|
|
18
|
+
} | null | undefined;
|
|
19
|
+
automatic_tax?: {
|
|
20
|
+
enabled?: boolean | null | undefined;
|
|
21
|
+
disabled_reason?: "requires_location_inputs" | null | undefined;
|
|
22
|
+
liability?: {
|
|
23
|
+
account?: string | null | undefined;
|
|
24
|
+
type: "account" | "self";
|
|
25
|
+
} | null | undefined;
|
|
26
|
+
} | null | undefined;
|
|
27
|
+
invoice_settings?: {
|
|
28
|
+
account_tax_ids?: string[] | null | undefined;
|
|
29
|
+
days_until_due?: number | null | undefined;
|
|
30
|
+
issuer: {
|
|
31
|
+
account?: string | null | undefined;
|
|
32
|
+
type: "account" | "self";
|
|
33
|
+
};
|
|
34
|
+
} | null | undefined;
|
|
35
|
+
collection_method?: "charge_automatically" | "send_invoice" | null | undefined;
|
|
36
|
+
default_payment_method?: string | null | undefined;
|
|
37
|
+
application_fee_percent?: number | null | undefined;
|
|
38
|
+
billing_thresholds?: {
|
|
39
|
+
amount_gte?: number | null | undefined;
|
|
40
|
+
reset_billing_cycle_anchor?: boolean | null | undefined;
|
|
41
|
+
} | null | undefined;
|
|
42
|
+
billing_cycle_anchor: "automatic" | "phase_start";
|
|
43
|
+
} | null | undefined;
|
|
44
|
+
released_at?: number | null | undefined;
|
|
45
|
+
released_subscription?: string | null | undefined;
|
|
46
|
+
object: string;
|
|
47
|
+
id: string;
|
|
48
|
+
customer: string;
|
|
49
|
+
status: "canceled" | "completed" | "active" | "not_started" | "released";
|
|
50
|
+
created: number;
|
|
51
|
+
livemode: boolean;
|
|
52
|
+
phases: any;
|
|
53
|
+
billing_mode: {
|
|
54
|
+
updated_at?: number | null | undefined;
|
|
55
|
+
type: "classic" | "flexible";
|
|
56
|
+
};
|
|
57
|
+
end_behavior: "none" | "cancel" | "release" | "renew";
|
|
58
|
+
};
|
|
59
|
+
export declare const SubscriptionScheduleSchema: {
|
|
60
|
+
id: import('convex/values').VString<string, "required">;
|
|
61
|
+
current_phase: import('convex/values').VUnion<{
|
|
62
|
+
end_date: number;
|
|
63
|
+
start_date: number;
|
|
64
|
+
} | null | undefined, [import('convex/values').VObject<{
|
|
65
|
+
end_date: number;
|
|
66
|
+
start_date: number;
|
|
67
|
+
}, {
|
|
68
|
+
end_date: import('convex/values').VFloat64<number, "required">;
|
|
69
|
+
start_date: import('convex/values').VFloat64<number, "required">;
|
|
70
|
+
}, "required", "end_date" | "start_date">, import('convex/values').VNull<null, "required">], "optional", "end_date" | "start_date">;
|
|
71
|
+
customer: import('convex/values').VString<string, "required">;
|
|
72
|
+
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>;
|
|
73
|
+
phases: import('convex/values').VAny<any, "required", string>;
|
|
74
|
+
status: import('convex/values').VUnion<"canceled" | "completed" | "active" | "not_started" | "released", [import('convex/values').VLiteral<"active", "required">, import('convex/values').VLiteral<"canceled", "required">, import('convex/values').VLiteral<"completed", "required">, import('convex/values').VLiteral<"not_started", "required">, import('convex/values').VLiteral<"released", "required">], "required", never>;
|
|
75
|
+
object: import('convex/values').VString<string, "required">;
|
|
76
|
+
application: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
77
|
+
billing_mode: import('convex/values').VObject<{
|
|
78
|
+
updated_at?: number | null | undefined;
|
|
79
|
+
type: "classic" | "flexible";
|
|
80
|
+
}, {
|
|
81
|
+
type: import('convex/values').VUnion<"classic" | "flexible", [import('convex/values').VLiteral<"classic", "required">, import('convex/values').VLiteral<"flexible", "required">], "required", never>;
|
|
82
|
+
updated_at: import('convex/values').VUnion<number | null | undefined, [import('convex/values').VFloat64<number, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
83
|
+
}, "required", "type" | "updated_at">;
|
|
84
|
+
canceled_at: import('convex/values').VUnion<number | null | undefined, [import('convex/values').VFloat64<number, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
85
|
+
completed_at: import('convex/values').VUnion<number | null | undefined, [import('convex/values').VFloat64<number, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
86
|
+
created: import('convex/values').VFloat64<number, "required">;
|
|
87
|
+
default_settings: import('convex/values').VUnion<{
|
|
88
|
+
description?: string | null | undefined;
|
|
89
|
+
on_behalf_of?: string | null | undefined;
|
|
90
|
+
transfer_data?: {
|
|
91
|
+
amount_percent?: number | null | undefined;
|
|
92
|
+
destination: string;
|
|
93
|
+
} | null | undefined;
|
|
94
|
+
automatic_tax?: {
|
|
95
|
+
enabled?: boolean | null | undefined;
|
|
96
|
+
disabled_reason?: "requires_location_inputs" | null | undefined;
|
|
97
|
+
liability?: {
|
|
98
|
+
account?: string | null | undefined;
|
|
99
|
+
type: "account" | "self";
|
|
100
|
+
} | null | undefined;
|
|
101
|
+
} | null | undefined;
|
|
102
|
+
invoice_settings?: {
|
|
103
|
+
account_tax_ids?: string[] | null | undefined;
|
|
104
|
+
days_until_due?: number | null | undefined;
|
|
105
|
+
issuer: {
|
|
106
|
+
account?: string | null | undefined;
|
|
107
|
+
type: "account" | "self";
|
|
108
|
+
};
|
|
109
|
+
} | null | undefined;
|
|
110
|
+
collection_method?: "charge_automatically" | "send_invoice" | null | undefined;
|
|
111
|
+
default_payment_method?: string | null | undefined;
|
|
112
|
+
application_fee_percent?: number | null | undefined;
|
|
113
|
+
billing_thresholds?: {
|
|
114
|
+
amount_gte?: number | null | undefined;
|
|
115
|
+
reset_billing_cycle_anchor?: boolean | null | undefined;
|
|
116
|
+
} | null | undefined;
|
|
117
|
+
billing_cycle_anchor: "automatic" | "phase_start";
|
|
118
|
+
} | null | undefined, [import('convex/values').VObject<{
|
|
119
|
+
description?: string | null | undefined;
|
|
120
|
+
on_behalf_of?: string | null | undefined;
|
|
121
|
+
transfer_data?: {
|
|
122
|
+
amount_percent?: number | null | undefined;
|
|
123
|
+
destination: string;
|
|
124
|
+
} | null | undefined;
|
|
125
|
+
automatic_tax?: {
|
|
126
|
+
enabled?: boolean | null | undefined;
|
|
127
|
+
disabled_reason?: "requires_location_inputs" | null | undefined;
|
|
128
|
+
liability?: {
|
|
129
|
+
account?: string | null | undefined;
|
|
130
|
+
type: "account" | "self";
|
|
131
|
+
} | null | undefined;
|
|
132
|
+
} | null | undefined;
|
|
133
|
+
invoice_settings?: {
|
|
134
|
+
account_tax_ids?: string[] | null | undefined;
|
|
135
|
+
days_until_due?: number | null | undefined;
|
|
136
|
+
issuer: {
|
|
137
|
+
account?: string | null | undefined;
|
|
138
|
+
type: "account" | "self";
|
|
139
|
+
};
|
|
140
|
+
} | null | undefined;
|
|
141
|
+
collection_method?: "charge_automatically" | "send_invoice" | null | undefined;
|
|
142
|
+
default_payment_method?: string | null | undefined;
|
|
143
|
+
application_fee_percent?: number | null | undefined;
|
|
144
|
+
billing_thresholds?: {
|
|
145
|
+
amount_gte?: number | null | undefined;
|
|
146
|
+
reset_billing_cycle_anchor?: boolean | null | undefined;
|
|
147
|
+
} | null | undefined;
|
|
148
|
+
billing_cycle_anchor: "automatic" | "phase_start";
|
|
149
|
+
}, {
|
|
150
|
+
application_fee_percent: import('convex/values').VUnion<number | null | undefined, [import('convex/values').VFloat64<number, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
151
|
+
automatic_tax: import('convex/values').VUnion<{
|
|
152
|
+
enabled?: boolean | null | undefined;
|
|
153
|
+
disabled_reason?: "requires_location_inputs" | null | undefined;
|
|
154
|
+
liability?: {
|
|
155
|
+
account?: string | null | undefined;
|
|
156
|
+
type: "account" | "self";
|
|
157
|
+
} | null | undefined;
|
|
158
|
+
} | null | undefined, [import('convex/values').VObject<{
|
|
159
|
+
enabled?: boolean | null | undefined;
|
|
160
|
+
disabled_reason?: "requires_location_inputs" | null | undefined;
|
|
161
|
+
liability?: {
|
|
162
|
+
account?: string | null | undefined;
|
|
163
|
+
type: "account" | "self";
|
|
164
|
+
} | null | undefined;
|
|
165
|
+
}, {
|
|
166
|
+
disabled_reason: import('convex/values').VUnion<"requires_location_inputs" | null | undefined, [import('convex/values').VLiteral<"requires_location_inputs", "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
167
|
+
enabled: import('convex/values').VUnion<boolean | null | undefined, [import('convex/values').VBoolean<boolean, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
168
|
+
liability: import('convex/values').VUnion<{
|
|
169
|
+
account?: string | null | undefined;
|
|
170
|
+
type: "account" | "self";
|
|
171
|
+
} | null | undefined, [import('convex/values').VObject<{
|
|
172
|
+
account?: string | null | undefined;
|
|
173
|
+
type: "account" | "self";
|
|
174
|
+
}, {
|
|
175
|
+
account: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
176
|
+
type: import('convex/values').VUnion<"account" | "self", [import('convex/values').VLiteral<"account", "required">, import('convex/values').VLiteral<"self", "required">], "required", never>;
|
|
177
|
+
}, "required", "type" | "account">, import('convex/values').VNull<null, "required">], "optional", "type" | "account">;
|
|
178
|
+
}, "required", "enabled" | "disabled_reason" | "liability" | "liability.type" | "liability.account">, import('convex/values').VNull<null, "required">], "optional", "enabled" | "disabled_reason" | "liability" | "liability.type" | "liability.account">;
|
|
179
|
+
billing_cycle_anchor: import('convex/values').VUnion<"automatic" | "phase_start", [import('convex/values').VLiteral<"automatic", "required">, import('convex/values').VLiteral<"phase_start", "required">], "required", never>;
|
|
180
|
+
billing_thresholds: import('convex/values').VUnion<{
|
|
181
|
+
amount_gte?: number | null | undefined;
|
|
182
|
+
reset_billing_cycle_anchor?: boolean | null | undefined;
|
|
183
|
+
} | null | undefined, [import('convex/values').VObject<{
|
|
184
|
+
amount_gte?: number | null | undefined;
|
|
185
|
+
reset_billing_cycle_anchor?: boolean | null | undefined;
|
|
186
|
+
}, {
|
|
187
|
+
amount_gte: import('convex/values').VUnion<number | null | undefined, [import('convex/values').VFloat64<number, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
188
|
+
reset_billing_cycle_anchor: import('convex/values').VUnion<boolean | null | undefined, [import('convex/values').VBoolean<boolean, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
189
|
+
}, "required", "amount_gte" | "reset_billing_cycle_anchor">, import('convex/values').VNull<null, "required">], "optional", "amount_gte" | "reset_billing_cycle_anchor">;
|
|
190
|
+
collection_method: import('convex/values').VUnion<"charge_automatically" | "send_invoice" | null | undefined, [import('convex/values').VLiteral<"charge_automatically", "required">, import('convex/values').VLiteral<"send_invoice", "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
191
|
+
default_payment_method: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
192
|
+
description: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
193
|
+
invoice_settings: import('convex/values').VUnion<{
|
|
194
|
+
account_tax_ids?: string[] | null | undefined;
|
|
195
|
+
days_until_due?: number | null | undefined;
|
|
196
|
+
issuer: {
|
|
197
|
+
account?: string | null | undefined;
|
|
198
|
+
type: "account" | "self";
|
|
199
|
+
};
|
|
200
|
+
} | null | undefined, [import('convex/values').VObject<{
|
|
201
|
+
account_tax_ids?: string[] | null | undefined;
|
|
202
|
+
days_until_due?: number | null | undefined;
|
|
203
|
+
issuer: {
|
|
204
|
+
account?: string | null | undefined;
|
|
205
|
+
type: "account" | "self";
|
|
206
|
+
};
|
|
207
|
+
}, {
|
|
208
|
+
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>;
|
|
209
|
+
days_until_due: import('convex/values').VUnion<number | null | undefined, [import('convex/values').VFloat64<number, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
210
|
+
issuer: import('convex/values').VObject<{
|
|
211
|
+
account?: string | null | undefined;
|
|
212
|
+
type: "account" | "self";
|
|
213
|
+
}, {
|
|
214
|
+
account: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
215
|
+
type: import('convex/values').VUnion<"account" | "self", [import('convex/values').VLiteral<"account", "required">, import('convex/values').VLiteral<"self", "required">], "required", never>;
|
|
216
|
+
}, "required", "type" | "account">;
|
|
217
|
+
}, "required", "account_tax_ids" | "issuer" | "days_until_due" | "issuer.type" | "issuer.account">, import('convex/values').VNull<null, "required">], "optional", "account_tax_ids" | "issuer" | "days_until_due" | "issuer.type" | "issuer.account">;
|
|
218
|
+
on_behalf_of: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
219
|
+
transfer_data: import('convex/values').VUnion<{
|
|
220
|
+
amount_percent?: number | null | undefined;
|
|
221
|
+
destination: string;
|
|
222
|
+
} | null | undefined, [import('convex/values').VObject<{
|
|
223
|
+
amount_percent?: number | null | undefined;
|
|
224
|
+
destination: string;
|
|
225
|
+
}, {
|
|
226
|
+
amount_percent: import('convex/values').VUnion<number | null | undefined, [import('convex/values').VFloat64<number, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
227
|
+
destination: import('convex/values').VString<string, "required">;
|
|
228
|
+
}, "required", "destination" | "amount_percent">, import('convex/values').VNull<null, "required">], "optional", "destination" | "amount_percent">;
|
|
229
|
+
}, "required", "description" | "on_behalf_of" | "transfer_data" | "automatic_tax" | "invoice_settings" | "collection_method" | "default_payment_method" | "application_fee_percent" | "billing_cycle_anchor" | "billing_thresholds" | "transfer_data.destination" | "transfer_data.amount_percent" | "automatic_tax.enabled" | "automatic_tax.disabled_reason" | "automatic_tax.liability" | "automatic_tax.liability.type" | "automatic_tax.liability.account" | "invoice_settings.account_tax_ids" | "invoice_settings.issuer" | "invoice_settings.days_until_due" | "invoice_settings.issuer.type" | "invoice_settings.issuer.account" | "billing_thresholds.amount_gte" | "billing_thresholds.reset_billing_cycle_anchor">, import('convex/values').VNull<null, "required">], "optional", "description" | "on_behalf_of" | "transfer_data" | "automatic_tax" | "invoice_settings" | "collection_method" | "default_payment_method" | "application_fee_percent" | "billing_cycle_anchor" | "billing_thresholds" | "transfer_data.destination" | "transfer_data.amount_percent" | "automatic_tax.enabled" | "automatic_tax.disabled_reason" | "automatic_tax.liability" | "automatic_tax.liability.type" | "automatic_tax.liability.account" | "invoice_settings.account_tax_ids" | "invoice_settings.issuer" | "invoice_settings.days_until_due" | "invoice_settings.issuer.type" | "invoice_settings.issuer.account" | "billing_thresholds.amount_gte" | "billing_thresholds.reset_billing_cycle_anchor">;
|
|
230
|
+
end_behavior: import('convex/values').VUnion<"none" | "cancel" | "release" | "renew", [import('convex/values').VLiteral<"cancel", "required">, import('convex/values').VLiteral<"release", "required">, import('convex/values').VLiteral<"none", "required">, import('convex/values').VLiteral<"renew", "required">], "required", never>;
|
|
231
|
+
livemode: import('convex/values').VBoolean<boolean, "required">;
|
|
232
|
+
released_at: import('convex/values').VUnion<number | null | undefined, [import('convex/values').VFloat64<number, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
233
|
+
released_subscription: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
234
|
+
test_clock: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
235
|
+
};
|
|
236
|
+
export declare const SubscriptionScheduleObject: import('convex/values').VObject<{
|
|
237
|
+
metadata?: Record<string, string | number | null> | null | undefined;
|
|
238
|
+
application?: string | null | undefined;
|
|
239
|
+
test_clock?: string | null | undefined;
|
|
240
|
+
canceled_at?: number | null | undefined;
|
|
241
|
+
current_phase?: {
|
|
242
|
+
end_date: number;
|
|
243
|
+
start_date: number;
|
|
244
|
+
} | null | undefined;
|
|
245
|
+
completed_at?: number | null | undefined;
|
|
246
|
+
default_settings?: {
|
|
247
|
+
description?: string | null | undefined;
|
|
248
|
+
on_behalf_of?: string | null | undefined;
|
|
249
|
+
transfer_data?: {
|
|
250
|
+
amount_percent?: number | null | undefined;
|
|
251
|
+
destination: string;
|
|
252
|
+
} | null | undefined;
|
|
253
|
+
automatic_tax?: {
|
|
254
|
+
enabled?: boolean | null | undefined;
|
|
255
|
+
disabled_reason?: "requires_location_inputs" | null | undefined;
|
|
256
|
+
liability?: {
|
|
257
|
+
account?: string | null | undefined;
|
|
258
|
+
type: "account" | "self";
|
|
259
|
+
} | null | undefined;
|
|
260
|
+
} | null | undefined;
|
|
261
|
+
invoice_settings?: {
|
|
262
|
+
account_tax_ids?: string[] | null | undefined;
|
|
263
|
+
days_until_due?: number | null | undefined;
|
|
264
|
+
issuer: {
|
|
265
|
+
account?: string | null | undefined;
|
|
266
|
+
type: "account" | "self";
|
|
267
|
+
};
|
|
268
|
+
} | null | undefined;
|
|
269
|
+
collection_method?: "charge_automatically" | "send_invoice" | null | undefined;
|
|
270
|
+
default_payment_method?: string | null | undefined;
|
|
271
|
+
application_fee_percent?: number | null | undefined;
|
|
272
|
+
billing_thresholds?: {
|
|
273
|
+
amount_gte?: number | null | undefined;
|
|
274
|
+
reset_billing_cycle_anchor?: boolean | null | undefined;
|
|
275
|
+
} | null | undefined;
|
|
276
|
+
billing_cycle_anchor: "automatic" | "phase_start";
|
|
277
|
+
} | null | undefined;
|
|
278
|
+
released_at?: number | null | undefined;
|
|
279
|
+
released_subscription?: string | null | undefined;
|
|
280
|
+
object: string;
|
|
281
|
+
id: string;
|
|
282
|
+
customer: string;
|
|
283
|
+
status: "canceled" | "completed" | "active" | "not_started" | "released";
|
|
284
|
+
created: number;
|
|
285
|
+
livemode: boolean;
|
|
286
|
+
phases: any;
|
|
287
|
+
billing_mode: {
|
|
288
|
+
updated_at?: number | null | undefined;
|
|
289
|
+
type: "classic" | "flexible";
|
|
290
|
+
};
|
|
291
|
+
end_behavior: "none" | "cancel" | "release" | "renew";
|
|
292
|
+
}, {
|
|
293
|
+
id: import('convex/values').VString<string, "required">;
|
|
294
|
+
current_phase: import('convex/values').VUnion<{
|
|
295
|
+
end_date: number;
|
|
296
|
+
start_date: number;
|
|
297
|
+
} | null | undefined, [import('convex/values').VObject<{
|
|
298
|
+
end_date: number;
|
|
299
|
+
start_date: number;
|
|
300
|
+
}, {
|
|
301
|
+
end_date: import('convex/values').VFloat64<number, "required">;
|
|
302
|
+
start_date: import('convex/values').VFloat64<number, "required">;
|
|
303
|
+
}, "required", "end_date" | "start_date">, import('convex/values').VNull<null, "required">], "optional", "end_date" | "start_date">;
|
|
304
|
+
customer: import('convex/values').VString<string, "required">;
|
|
305
|
+
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>;
|
|
306
|
+
phases: import('convex/values').VAny<any, "required", string>;
|
|
307
|
+
status: import('convex/values').VUnion<"canceled" | "completed" | "active" | "not_started" | "released", [import('convex/values').VLiteral<"active", "required">, import('convex/values').VLiteral<"canceled", "required">, import('convex/values').VLiteral<"completed", "required">, import('convex/values').VLiteral<"not_started", "required">, import('convex/values').VLiteral<"released", "required">], "required", never>;
|
|
308
|
+
object: import('convex/values').VString<string, "required">;
|
|
309
|
+
application: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
310
|
+
billing_mode: import('convex/values').VObject<{
|
|
311
|
+
updated_at?: number | null | undefined;
|
|
312
|
+
type: "classic" | "flexible";
|
|
313
|
+
}, {
|
|
314
|
+
type: import('convex/values').VUnion<"classic" | "flexible", [import('convex/values').VLiteral<"classic", "required">, import('convex/values').VLiteral<"flexible", "required">], "required", never>;
|
|
315
|
+
updated_at: import('convex/values').VUnion<number | null | undefined, [import('convex/values').VFloat64<number, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
316
|
+
}, "required", "type" | "updated_at">;
|
|
317
|
+
canceled_at: import('convex/values').VUnion<number | null | undefined, [import('convex/values').VFloat64<number, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
318
|
+
completed_at: import('convex/values').VUnion<number | null | undefined, [import('convex/values').VFloat64<number, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
319
|
+
created: import('convex/values').VFloat64<number, "required">;
|
|
320
|
+
default_settings: import('convex/values').VUnion<{
|
|
321
|
+
description?: string | null | undefined;
|
|
322
|
+
on_behalf_of?: string | null | undefined;
|
|
323
|
+
transfer_data?: {
|
|
324
|
+
amount_percent?: number | null | undefined;
|
|
325
|
+
destination: string;
|
|
326
|
+
} | null | undefined;
|
|
327
|
+
automatic_tax?: {
|
|
328
|
+
enabled?: boolean | null | undefined;
|
|
329
|
+
disabled_reason?: "requires_location_inputs" | null | undefined;
|
|
330
|
+
liability?: {
|
|
331
|
+
account?: string | null | undefined;
|
|
332
|
+
type: "account" | "self";
|
|
333
|
+
} | null | undefined;
|
|
334
|
+
} | null | undefined;
|
|
335
|
+
invoice_settings?: {
|
|
336
|
+
account_tax_ids?: string[] | null | undefined;
|
|
337
|
+
days_until_due?: number | null | undefined;
|
|
338
|
+
issuer: {
|
|
339
|
+
account?: string | null | undefined;
|
|
340
|
+
type: "account" | "self";
|
|
341
|
+
};
|
|
342
|
+
} | null | undefined;
|
|
343
|
+
collection_method?: "charge_automatically" | "send_invoice" | null | undefined;
|
|
344
|
+
default_payment_method?: string | null | undefined;
|
|
345
|
+
application_fee_percent?: number | null | undefined;
|
|
346
|
+
billing_thresholds?: {
|
|
347
|
+
amount_gte?: number | null | undefined;
|
|
348
|
+
reset_billing_cycle_anchor?: boolean | null | undefined;
|
|
349
|
+
} | null | undefined;
|
|
350
|
+
billing_cycle_anchor: "automatic" | "phase_start";
|
|
351
|
+
} | null | undefined, [import('convex/values').VObject<{
|
|
352
|
+
description?: string | null | undefined;
|
|
353
|
+
on_behalf_of?: string | null | undefined;
|
|
354
|
+
transfer_data?: {
|
|
355
|
+
amount_percent?: number | null | undefined;
|
|
356
|
+
destination: string;
|
|
357
|
+
} | null | undefined;
|
|
358
|
+
automatic_tax?: {
|
|
359
|
+
enabled?: boolean | null | undefined;
|
|
360
|
+
disabled_reason?: "requires_location_inputs" | null | undefined;
|
|
361
|
+
liability?: {
|
|
362
|
+
account?: string | null | undefined;
|
|
363
|
+
type: "account" | "self";
|
|
364
|
+
} | null | undefined;
|
|
365
|
+
} | null | undefined;
|
|
366
|
+
invoice_settings?: {
|
|
367
|
+
account_tax_ids?: string[] | null | undefined;
|
|
368
|
+
days_until_due?: number | null | undefined;
|
|
369
|
+
issuer: {
|
|
370
|
+
account?: string | null | undefined;
|
|
371
|
+
type: "account" | "self";
|
|
372
|
+
};
|
|
373
|
+
} | null | undefined;
|
|
374
|
+
collection_method?: "charge_automatically" | "send_invoice" | null | undefined;
|
|
375
|
+
default_payment_method?: string | null | undefined;
|
|
376
|
+
application_fee_percent?: number | null | undefined;
|
|
377
|
+
billing_thresholds?: {
|
|
378
|
+
amount_gte?: number | null | undefined;
|
|
379
|
+
reset_billing_cycle_anchor?: boolean | null | undefined;
|
|
380
|
+
} | null | undefined;
|
|
381
|
+
billing_cycle_anchor: "automatic" | "phase_start";
|
|
382
|
+
}, {
|
|
383
|
+
application_fee_percent: import('convex/values').VUnion<number | null | undefined, [import('convex/values').VFloat64<number, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
384
|
+
automatic_tax: import('convex/values').VUnion<{
|
|
385
|
+
enabled?: boolean | null | undefined;
|
|
386
|
+
disabled_reason?: "requires_location_inputs" | null | undefined;
|
|
387
|
+
liability?: {
|
|
388
|
+
account?: string | null | undefined;
|
|
389
|
+
type: "account" | "self";
|
|
390
|
+
} | null | undefined;
|
|
391
|
+
} | null | undefined, [import('convex/values').VObject<{
|
|
392
|
+
enabled?: boolean | null | undefined;
|
|
393
|
+
disabled_reason?: "requires_location_inputs" | null | undefined;
|
|
394
|
+
liability?: {
|
|
395
|
+
account?: string | null | undefined;
|
|
396
|
+
type: "account" | "self";
|
|
397
|
+
} | null | undefined;
|
|
398
|
+
}, {
|
|
399
|
+
disabled_reason: import('convex/values').VUnion<"requires_location_inputs" | null | undefined, [import('convex/values').VLiteral<"requires_location_inputs", "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
400
|
+
enabled: import('convex/values').VUnion<boolean | null | undefined, [import('convex/values').VBoolean<boolean, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
401
|
+
liability: import('convex/values').VUnion<{
|
|
402
|
+
account?: string | null | undefined;
|
|
403
|
+
type: "account" | "self";
|
|
404
|
+
} | null | undefined, [import('convex/values').VObject<{
|
|
405
|
+
account?: string | null | undefined;
|
|
406
|
+
type: "account" | "self";
|
|
407
|
+
}, {
|
|
408
|
+
account: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
409
|
+
type: import('convex/values').VUnion<"account" | "self", [import('convex/values').VLiteral<"account", "required">, import('convex/values').VLiteral<"self", "required">], "required", never>;
|
|
410
|
+
}, "required", "type" | "account">, import('convex/values').VNull<null, "required">], "optional", "type" | "account">;
|
|
411
|
+
}, "required", "enabled" | "disabled_reason" | "liability" | "liability.type" | "liability.account">, import('convex/values').VNull<null, "required">], "optional", "enabled" | "disabled_reason" | "liability" | "liability.type" | "liability.account">;
|
|
412
|
+
billing_cycle_anchor: import('convex/values').VUnion<"automatic" | "phase_start", [import('convex/values').VLiteral<"automatic", "required">, import('convex/values').VLiteral<"phase_start", "required">], "required", never>;
|
|
413
|
+
billing_thresholds: import('convex/values').VUnion<{
|
|
414
|
+
amount_gte?: number | null | undefined;
|
|
415
|
+
reset_billing_cycle_anchor?: boolean | null | undefined;
|
|
416
|
+
} | null | undefined, [import('convex/values').VObject<{
|
|
417
|
+
amount_gte?: number | null | undefined;
|
|
418
|
+
reset_billing_cycle_anchor?: boolean | null | undefined;
|
|
419
|
+
}, {
|
|
420
|
+
amount_gte: import('convex/values').VUnion<number | null | undefined, [import('convex/values').VFloat64<number, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
421
|
+
reset_billing_cycle_anchor: import('convex/values').VUnion<boolean | null | undefined, [import('convex/values').VBoolean<boolean, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
422
|
+
}, "required", "amount_gte" | "reset_billing_cycle_anchor">, import('convex/values').VNull<null, "required">], "optional", "amount_gte" | "reset_billing_cycle_anchor">;
|
|
423
|
+
collection_method: import('convex/values').VUnion<"charge_automatically" | "send_invoice" | null | undefined, [import('convex/values').VLiteral<"charge_automatically", "required">, import('convex/values').VLiteral<"send_invoice", "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
424
|
+
default_payment_method: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
425
|
+
description: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
426
|
+
invoice_settings: import('convex/values').VUnion<{
|
|
427
|
+
account_tax_ids?: string[] | null | undefined;
|
|
428
|
+
days_until_due?: number | null | undefined;
|
|
429
|
+
issuer: {
|
|
430
|
+
account?: string | null | undefined;
|
|
431
|
+
type: "account" | "self";
|
|
432
|
+
};
|
|
433
|
+
} | null | undefined, [import('convex/values').VObject<{
|
|
434
|
+
account_tax_ids?: string[] | null | undefined;
|
|
435
|
+
days_until_due?: number | null | undefined;
|
|
436
|
+
issuer: {
|
|
437
|
+
account?: string | null | undefined;
|
|
438
|
+
type: "account" | "self";
|
|
439
|
+
};
|
|
440
|
+
}, {
|
|
441
|
+
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>;
|
|
442
|
+
days_until_due: import('convex/values').VUnion<number | null | undefined, [import('convex/values').VFloat64<number, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
443
|
+
issuer: import('convex/values').VObject<{
|
|
444
|
+
account?: string | null | undefined;
|
|
445
|
+
type: "account" | "self";
|
|
446
|
+
}, {
|
|
447
|
+
account: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
448
|
+
type: import('convex/values').VUnion<"account" | "self", [import('convex/values').VLiteral<"account", "required">, import('convex/values').VLiteral<"self", "required">], "required", never>;
|
|
449
|
+
}, "required", "type" | "account">;
|
|
450
|
+
}, "required", "account_tax_ids" | "issuer" | "days_until_due" | "issuer.type" | "issuer.account">, import('convex/values').VNull<null, "required">], "optional", "account_tax_ids" | "issuer" | "days_until_due" | "issuer.type" | "issuer.account">;
|
|
451
|
+
on_behalf_of: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
452
|
+
transfer_data: import('convex/values').VUnion<{
|
|
453
|
+
amount_percent?: number | null | undefined;
|
|
454
|
+
destination: string;
|
|
455
|
+
} | null | undefined, [import('convex/values').VObject<{
|
|
456
|
+
amount_percent?: number | null | undefined;
|
|
457
|
+
destination: string;
|
|
458
|
+
}, {
|
|
459
|
+
amount_percent: import('convex/values').VUnion<number | null | undefined, [import('convex/values').VFloat64<number, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
460
|
+
destination: import('convex/values').VString<string, "required">;
|
|
461
|
+
}, "required", "destination" | "amount_percent">, import('convex/values').VNull<null, "required">], "optional", "destination" | "amount_percent">;
|
|
462
|
+
}, "required", "description" | "on_behalf_of" | "transfer_data" | "automatic_tax" | "invoice_settings" | "collection_method" | "default_payment_method" | "application_fee_percent" | "billing_cycle_anchor" | "billing_thresholds" | "transfer_data.destination" | "transfer_data.amount_percent" | "automatic_tax.enabled" | "automatic_tax.disabled_reason" | "automatic_tax.liability" | "automatic_tax.liability.type" | "automatic_tax.liability.account" | "invoice_settings.account_tax_ids" | "invoice_settings.issuer" | "invoice_settings.days_until_due" | "invoice_settings.issuer.type" | "invoice_settings.issuer.account" | "billing_thresholds.amount_gte" | "billing_thresholds.reset_billing_cycle_anchor">, import('convex/values').VNull<null, "required">], "optional", "description" | "on_behalf_of" | "transfer_data" | "automatic_tax" | "invoice_settings" | "collection_method" | "default_payment_method" | "application_fee_percent" | "billing_cycle_anchor" | "billing_thresholds" | "transfer_data.destination" | "transfer_data.amount_percent" | "automatic_tax.enabled" | "automatic_tax.disabled_reason" | "automatic_tax.liability" | "automatic_tax.liability.type" | "automatic_tax.liability.account" | "invoice_settings.account_tax_ids" | "invoice_settings.issuer" | "invoice_settings.days_until_due" | "invoice_settings.issuer.type" | "invoice_settings.issuer.account" | "billing_thresholds.amount_gte" | "billing_thresholds.reset_billing_cycle_anchor">;
|
|
463
|
+
end_behavior: import('convex/values').VUnion<"none" | "cancel" | "release" | "renew", [import('convex/values').VLiteral<"cancel", "required">, import('convex/values').VLiteral<"release", "required">, import('convex/values').VLiteral<"none", "required">, import('convex/values').VLiteral<"renew", "required">], "required", never>;
|
|
464
|
+
livemode: import('convex/values').VBoolean<boolean, "required">;
|
|
465
|
+
released_at: import('convex/values').VUnion<number | null | undefined, [import('convex/values').VFloat64<number, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
466
|
+
released_subscription: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
467
|
+
test_clock: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
468
|
+
}, "required", "object" | "id" | "customer" | "metadata" | "status" | "application" | "created" | "livemode" | `metadata.${string}` | "test_clock" | "canceled_at" | "current_phase" | "phases" | "billing_mode" | "completed_at" | "default_settings" | "end_behavior" | "released_at" | "released_subscription" | "current_phase.end_date" | "current_phase.start_date" | `phases.${string}` | "billing_mode.type" | "billing_mode.updated_at" | "default_settings.description" | "default_settings.on_behalf_of" | "default_settings.transfer_data" | "default_settings.automatic_tax" | "default_settings.invoice_settings" | "default_settings.collection_method" | "default_settings.default_payment_method" | "default_settings.application_fee_percent" | "default_settings.billing_cycle_anchor" | "default_settings.billing_thresholds" | "default_settings.transfer_data.destination" | "default_settings.transfer_data.amount_percent" | "default_settings.automatic_tax.enabled" | "default_settings.automatic_tax.disabled_reason" | "default_settings.automatic_tax.liability" | "default_settings.automatic_tax.liability.type" | "default_settings.automatic_tax.liability.account" | "default_settings.invoice_settings.account_tax_ids" | "default_settings.invoice_settings.issuer" | "default_settings.invoice_settings.days_until_due" | "default_settings.invoice_settings.issuer.type" | "default_settings.invoice_settings.issuer.account" | "default_settings.billing_thresholds.amount_gte" | "default_settings.billing_thresholds.reset_billing_cycle_anchor">;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { default as Stripe } from 'stripe';
|
|
2
|
+
export declare const SubscriptionStripeToConvex: (subscription: Stripe.Subscription) => any;
|
|
3
|
+
export declare const SubscriptionSchema: import('convex/values').VAny<any, "required", string>;
|
|
4
|
+
export declare const SubscriptionObject: import('convex/values').VAny<any, "required", string>;
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import { default as Stripe } from 'stripe';
|
|
2
|
+
export declare const TaxIdStripeToConvex: (taxId: Stripe.TaxId) => {
|
|
3
|
+
country?: string | null | undefined;
|
|
4
|
+
customer?: string | null | undefined;
|
|
5
|
+
owner?: {
|
|
6
|
+
customer?: string | null | undefined;
|
|
7
|
+
application?: string | null | undefined;
|
|
8
|
+
account?: string | null | undefined;
|
|
9
|
+
type: "customer" | "application" | "account" | "self";
|
|
10
|
+
} | null | undefined;
|
|
11
|
+
verification?: {
|
|
12
|
+
verified_address?: string | null | undefined;
|
|
13
|
+
verified_name?: string | null | undefined;
|
|
14
|
+
status: "pending" | "unavailable" | "unverified" | "verified";
|
|
15
|
+
} | null | undefined;
|
|
16
|
+
object: string;
|
|
17
|
+
type: string;
|
|
18
|
+
id: string;
|
|
19
|
+
created: number;
|
|
20
|
+
livemode: boolean;
|
|
21
|
+
value: string;
|
|
22
|
+
};
|
|
23
|
+
export declare const TaxIdSchema: {
|
|
24
|
+
id: import('convex/values').VString<string, "required">;
|
|
25
|
+
country: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
26
|
+
customer: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
27
|
+
type: import('convex/values').VString<string, "required">;
|
|
28
|
+
value: import('convex/values').VString<string, "required">;
|
|
29
|
+
object: import('convex/values').VString<string, "required">;
|
|
30
|
+
created: import('convex/values').VFloat64<number, "required">;
|
|
31
|
+
livemode: import('convex/values').VBoolean<boolean, "required">;
|
|
32
|
+
owner: import('convex/values').VUnion<{
|
|
33
|
+
customer?: string | null | undefined;
|
|
34
|
+
application?: string | null | undefined;
|
|
35
|
+
account?: string | null | undefined;
|
|
36
|
+
type: "customer" | "application" | "account" | "self";
|
|
37
|
+
} | null | undefined, [import('convex/values').VObject<{
|
|
38
|
+
customer?: string | null | undefined;
|
|
39
|
+
application?: string | null | undefined;
|
|
40
|
+
account?: string | null | undefined;
|
|
41
|
+
type: "customer" | "application" | "account" | "self";
|
|
42
|
+
}, {
|
|
43
|
+
account: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
44
|
+
application: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
45
|
+
customer: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
46
|
+
type: import('convex/values').VUnion<"customer" | "application" | "account" | "self", [import('convex/values').VLiteral<"account", "required">, import('convex/values').VLiteral<"application", "required">, import('convex/values').VLiteral<"customer", "required">, import('convex/values').VLiteral<"self", "required">], "required", never>;
|
|
47
|
+
}, "required", "type" | "customer" | "application" | "account">, import('convex/values').VNull<null, "required">], "optional", "type" | "customer" | "application" | "account">;
|
|
48
|
+
verification: import('convex/values').VUnion<{
|
|
49
|
+
verified_address?: string | null | undefined;
|
|
50
|
+
verified_name?: string | null | undefined;
|
|
51
|
+
status: "pending" | "unavailable" | "unverified" | "verified";
|
|
52
|
+
} | null | undefined, [import('convex/values').VObject<{
|
|
53
|
+
verified_address?: string | null | undefined;
|
|
54
|
+
verified_name?: string | null | undefined;
|
|
55
|
+
status: "pending" | "unavailable" | "unverified" | "verified";
|
|
56
|
+
}, {
|
|
57
|
+
status: import('convex/values').VUnion<"pending" | "unavailable" | "unverified" | "verified", [import('convex/values').VLiteral<"pending", "required">, import('convex/values').VLiteral<"unavailable", "required">, import('convex/values').VLiteral<"unverified", "required">, import('convex/values').VLiteral<"verified", "required">], "required", never>;
|
|
58
|
+
verified_address: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
59
|
+
verified_name: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
60
|
+
}, "required", "status" | "verified_address" | "verified_name">, import('convex/values').VNull<null, "required">], "optional", "status" | "verified_address" | "verified_name">;
|
|
61
|
+
};
|
|
62
|
+
export declare const TaxIdObject: import('convex/values').VObject<{
|
|
63
|
+
country?: string | null | undefined;
|
|
64
|
+
customer?: string | null | undefined;
|
|
65
|
+
owner?: {
|
|
66
|
+
customer?: string | null | undefined;
|
|
67
|
+
application?: string | null | undefined;
|
|
68
|
+
account?: string | null | undefined;
|
|
69
|
+
type: "customer" | "application" | "account" | "self";
|
|
70
|
+
} | null | undefined;
|
|
71
|
+
verification?: {
|
|
72
|
+
verified_address?: string | null | undefined;
|
|
73
|
+
verified_name?: string | null | undefined;
|
|
74
|
+
status: "pending" | "unavailable" | "unverified" | "verified";
|
|
75
|
+
} | null | undefined;
|
|
76
|
+
object: string;
|
|
77
|
+
type: string;
|
|
78
|
+
id: string;
|
|
79
|
+
created: number;
|
|
80
|
+
livemode: boolean;
|
|
81
|
+
value: string;
|
|
82
|
+
}, {
|
|
83
|
+
id: import('convex/values').VString<string, "required">;
|
|
84
|
+
country: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
85
|
+
customer: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
86
|
+
type: import('convex/values').VString<string, "required">;
|
|
87
|
+
value: import('convex/values').VString<string, "required">;
|
|
88
|
+
object: import('convex/values').VString<string, "required">;
|
|
89
|
+
created: import('convex/values').VFloat64<number, "required">;
|
|
90
|
+
livemode: import('convex/values').VBoolean<boolean, "required">;
|
|
91
|
+
owner: import('convex/values').VUnion<{
|
|
92
|
+
customer?: string | null | undefined;
|
|
93
|
+
application?: string | null | undefined;
|
|
94
|
+
account?: string | null | undefined;
|
|
95
|
+
type: "customer" | "application" | "account" | "self";
|
|
96
|
+
} | null | undefined, [import('convex/values').VObject<{
|
|
97
|
+
customer?: string | null | undefined;
|
|
98
|
+
application?: string | null | undefined;
|
|
99
|
+
account?: string | null | undefined;
|
|
100
|
+
type: "customer" | "application" | "account" | "self";
|
|
101
|
+
}, {
|
|
102
|
+
account: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
103
|
+
application: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
104
|
+
customer: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
105
|
+
type: import('convex/values').VUnion<"customer" | "application" | "account" | "self", [import('convex/values').VLiteral<"account", "required">, import('convex/values').VLiteral<"application", "required">, import('convex/values').VLiteral<"customer", "required">, import('convex/values').VLiteral<"self", "required">], "required", never>;
|
|
106
|
+
}, "required", "type" | "customer" | "application" | "account">, import('convex/values').VNull<null, "required">], "optional", "type" | "customer" | "application" | "account">;
|
|
107
|
+
verification: import('convex/values').VUnion<{
|
|
108
|
+
verified_address?: string | null | undefined;
|
|
109
|
+
verified_name?: string | null | undefined;
|
|
110
|
+
status: "pending" | "unavailable" | "unverified" | "verified";
|
|
111
|
+
} | null | undefined, [import('convex/values').VObject<{
|
|
112
|
+
verified_address?: string | null | undefined;
|
|
113
|
+
verified_name?: string | null | undefined;
|
|
114
|
+
status: "pending" | "unavailable" | "unverified" | "verified";
|
|
115
|
+
}, {
|
|
116
|
+
status: import('convex/values').VUnion<"pending" | "unavailable" | "unverified" | "verified", [import('convex/values').VLiteral<"pending", "required">, import('convex/values').VLiteral<"unavailable", "required">, import('convex/values').VLiteral<"unverified", "required">, import('convex/values').VLiteral<"verified", "required">], "required", never>;
|
|
117
|
+
verified_address: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
118
|
+
verified_name: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
119
|
+
}, "required", "status" | "verified_address" | "verified_name">, import('convex/values').VNull<null, "required">], "optional", "status" | "verified_address" | "verified_name">;
|
|
120
|
+
}, "required", "object" | "type" | "id" | "country" | "customer" | "created" | "livemode" | "value" | "owner" | "verification" | "owner.type" | "owner.customer" | "owner.application" | "owner.account" | "verification.status" | "verification.verified_address" | "verification.verified_name">;
|