@raideno/convex-stripe 0.1.4 → 0.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/server/index.d.ts +5 -5
- package/dist/server/schema/customer.d.ts +4 -4
- package/dist/server/schema/index.d.ts +50 -50
- package/dist/server/schema/invoice.d.ts +4 -4
- package/dist/server/schema/payment-intent.d.ts +3 -3
- package/dist/server/schema/payout.d.ts +9 -9
- package/dist/server/schema/setup-intent.d.ts +9 -9
- package/dist/server/store/index.d.ts +5 -5
- package/dist/server.js +163 -14
- package/package.json +1 -1
package/dist/server/index.d.ts
CHANGED
|
@@ -156,7 +156,7 @@ export declare const internalConvexStripe: (configuration_: InputConfiguration)
|
|
|
156
156
|
preferred_locales?: string[] | null | undefined;
|
|
157
157
|
sources?: any;
|
|
158
158
|
subscriptions?: any;
|
|
159
|
-
tax_exempt?: "reverse" | "
|
|
159
|
+
tax_exempt?: "reverse" | "none" | "exempt" | null | undefined;
|
|
160
160
|
tax_ids?: any;
|
|
161
161
|
test_clock?: string | null | undefined;
|
|
162
162
|
object: string;
|
|
@@ -261,15 +261,15 @@ export declare const internalConvexStripe: (configuration_: InputConfiguration)
|
|
|
261
261
|
description?: string | null | undefined;
|
|
262
262
|
metadata?: Record<string, string | number | null> | null | undefined;
|
|
263
263
|
statement_descriptor?: string | null | undefined;
|
|
264
|
+
application_fee?: string | null | undefined;
|
|
264
265
|
application_fee_amount?: number | null | undefined;
|
|
265
266
|
failure_balance_transaction?: string | null | undefined;
|
|
266
267
|
failure_code?: string | null | undefined;
|
|
267
268
|
failure_message?: string | null | undefined;
|
|
268
|
-
application_only?: string | null | undefined;
|
|
269
269
|
destination?: string | null | undefined;
|
|
270
270
|
original_payout?: string | null | undefined;
|
|
271
271
|
payout_method?: string | null | undefined;
|
|
272
|
-
reconciliation_status?: "completed" | "in_progress" | "not_applicable" | undefined;
|
|
272
|
+
reconciliation_status?: "completed" | "in_progress" | "not_applicable" | null | undefined;
|
|
273
273
|
reversed_by?: string | null | undefined;
|
|
274
274
|
trace_id?: {
|
|
275
275
|
value?: string | null | undefined;
|
|
@@ -533,7 +533,7 @@ export declare const internalConvexStripe: (configuration_: InputConfiguration)
|
|
|
533
533
|
attempt_count: number;
|
|
534
534
|
attempted: boolean;
|
|
535
535
|
billing_reason: "subscription" | "automatic_pending_invoice_item_invoice" | "manual" | "quote_accept" | "subscription_create" | "subscription_cycle" | "subscription_threshold" | "subscription_update" | "upcoming" | null;
|
|
536
|
-
customer_tax_exempt: "reverse" | "
|
|
536
|
+
customer_tax_exempt: "reverse" | "none" | "exempt" | null;
|
|
537
537
|
default_tax_rates: any[];
|
|
538
538
|
post_payment_credit_notes_amount: number;
|
|
539
539
|
pre_payment_credit_notes_amount: number;
|
|
@@ -684,8 +684,8 @@ export declare const internalConvexStripe: (configuration_: InputConfiguration)
|
|
|
684
684
|
id: string;
|
|
685
685
|
} | null | undefined;
|
|
686
686
|
automatic_payment_methods?: {
|
|
687
|
-
allow_redirects?: "always" | "never" | null | undefined;
|
|
688
687
|
enabled?: boolean | null | undefined;
|
|
688
|
+
allow_redirects?: "always" | "never" | null | undefined;
|
|
689
689
|
} | null | undefined;
|
|
690
690
|
cancellation_reason?: "duplicate" | "abandoned" | "requested_by_customer" | null | undefined;
|
|
691
691
|
attach_to_self?: boolean | null | undefined;
|
|
@@ -48,7 +48,7 @@ export declare const CustomerStripeToConvex: (customer: Stripe.Customer) => {
|
|
|
48
48
|
preferred_locales?: string[] | null | undefined;
|
|
49
49
|
sources?: any;
|
|
50
50
|
subscriptions?: any;
|
|
51
|
-
tax_exempt?: "reverse" | "
|
|
51
|
+
tax_exempt?: "reverse" | "none" | "exempt" | null | undefined;
|
|
52
52
|
tax_ids?: any;
|
|
53
53
|
test_clock?: string | null | undefined;
|
|
54
54
|
object: string;
|
|
@@ -182,7 +182,7 @@ export declare const CustomerSchema: {
|
|
|
182
182
|
preferred_locales: import('convex/values').VUnion<string[] | null | undefined, [import('convex/values').VArray<string[], import('convex/values').VString<string, "required">, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
183
183
|
sources: import('convex/values').VUnion<any, [import('convex/values').VAny<any, "required", string>, import('convex/values').VNull<null, "required">], "optional", string>;
|
|
184
184
|
subscriptions: import('convex/values').VUnion<any, [import('convex/values').VAny<any, "required", string>, import('convex/values').VNull<null, "required">], "optional", string>;
|
|
185
|
-
tax_exempt: import('convex/values').VUnion<"reverse" | "
|
|
185
|
+
tax_exempt: import('convex/values').VUnion<"reverse" | "none" | "exempt" | null | undefined, [import('convex/values').VLiteral<"exempt", "required">, import('convex/values').VLiteral<"none", "required">, import('convex/values').VLiteral<"reverse", "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
186
186
|
tax_ids: import('convex/values').VUnion<any, [import('convex/values').VAny<any, "required", string>, import('convex/values').VNull<null, "required">], "optional", string>;
|
|
187
187
|
test_clock: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
188
188
|
};
|
|
@@ -235,7 +235,7 @@ export declare const CustomerObject: import('convex/values').VObject<{
|
|
|
235
235
|
preferred_locales?: string[] | null | undefined;
|
|
236
236
|
sources?: any;
|
|
237
237
|
subscriptions?: any;
|
|
238
|
-
tax_exempt?: "reverse" | "
|
|
238
|
+
tax_exempt?: "reverse" | "none" | "exempt" | null | undefined;
|
|
239
239
|
tax_ids?: any;
|
|
240
240
|
test_clock?: string | null | undefined;
|
|
241
241
|
object: string;
|
|
@@ -360,7 +360,7 @@ export declare const CustomerObject: import('convex/values').VObject<{
|
|
|
360
360
|
preferred_locales: import('convex/values').VUnion<string[] | null | undefined, [import('convex/values').VArray<string[], import('convex/values').VString<string, "required">, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
361
361
|
sources: import('convex/values').VUnion<any, [import('convex/values').VAny<any, "required", string>, import('convex/values').VNull<null, "required">], "optional", string>;
|
|
362
362
|
subscriptions: import('convex/values').VUnion<any, [import('convex/values').VAny<any, "required", string>, import('convex/values').VNull<null, "required">], "optional", string>;
|
|
363
|
-
tax_exempt: import('convex/values').VUnion<"reverse" | "
|
|
363
|
+
tax_exempt: import('convex/values').VUnion<"reverse" | "none" | "exempt" | null | undefined, [import('convex/values').VLiteral<"exempt", "required">, import('convex/values').VLiteral<"none", "required">, import('convex/values').VLiteral<"reverse", "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
364
364
|
tax_ids: import('convex/values').VUnion<any, [import('convex/values').VAny<any, "required", string>, import('convex/values').VNull<null, "required">], "optional", string>;
|
|
365
365
|
test_clock: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
366
366
|
}, "required", "object" | "id" | "address" | "email" | "name" | "phone" | "address.city" | "address.country" | "address.line1" | "address.line2" | "address.postal_code" | "address.state" | "currency" | "description" | "metadata" | "shipping" | "created" | "livemode" | `metadata.${string}` | "discount" | "tax" | "balance" | "cash_balance" | "default_source" | "delinquent" | "invoice_credit_balance" | "invoice_prefix" | "invoice_settings" | "next_invoice_sequence" | "preferred_locales" | "sources" | "subscriptions" | "tax_exempt" | "tax_ids" | "test_clock" | "shipping.address" | "shipping.name" | "shipping.phone" | "shipping.address.city" | "shipping.address.country" | "shipping.address.line1" | "shipping.address.line2" | "shipping.address.postal_code" | "shipping.address.state" | "shipping.carrier" | "shipping.tracking_number" | `discount.${string}` | "tax.automatic_tax" | "tax.ip_address" | "tax.location" | "tax.location.country" | "tax.location.state" | "tax.location.source" | `cash_balance.${string}` | `invoice_credit_balance.${string}` | `invoice_settings.${string}` | `sources.${string}` | `subscriptions.${string}` | `tax_ids.${string}`>;
|
|
@@ -264,7 +264,7 @@ export declare const stripeTables: {
|
|
|
264
264
|
preferred_locales?: string[] | null | undefined;
|
|
265
265
|
sources?: any;
|
|
266
266
|
subscriptions?: any;
|
|
267
|
-
tax_exempt?: "reverse" | "
|
|
267
|
+
tax_exempt?: "reverse" | "none" | "exempt" | null | undefined;
|
|
268
268
|
tax_ids?: any;
|
|
269
269
|
test_clock?: string | null | undefined;
|
|
270
270
|
object: string;
|
|
@@ -328,7 +328,7 @@ export declare const stripeTables: {
|
|
|
328
328
|
preferred_locales?: string[] | null | undefined;
|
|
329
329
|
sources?: any;
|
|
330
330
|
subscriptions?: any;
|
|
331
|
-
tax_exempt?: "reverse" | "
|
|
331
|
+
tax_exempt?: "reverse" | "none" | "exempt" | null | undefined;
|
|
332
332
|
tax_ids?: any;
|
|
333
333
|
test_clock?: string | null | undefined;
|
|
334
334
|
object: string;
|
|
@@ -453,7 +453,7 @@ export declare const stripeTables: {
|
|
|
453
453
|
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>;
|
|
454
454
|
sources: import('convex/values').VUnion<any, [import('convex/values').VAny<any, "required", string>, import('convex/values').VNull<null, "required">], "optional", string>;
|
|
455
455
|
subscriptions: import('convex/values').VUnion<any, [import('convex/values').VAny<any, "required", string>, import('convex/values').VNull<null, "required">], "optional", string>;
|
|
456
|
-
tax_exempt: import('convex/values').VUnion<"reverse" | "
|
|
456
|
+
tax_exempt: import('convex/values').VUnion<"reverse" | "none" | "exempt" | 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>;
|
|
457
457
|
tax_ids: import('convex/values').VUnion<any, [import('convex/values').VAny<any, "required", string>, import('convex/values').VNull<null, "required">], "optional", string>;
|
|
458
458
|
test_clock: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
459
459
|
}, "required", "object" | "id" | "address" | "email" | "name" | "phone" | "address.city" | "address.country" | "address.line1" | "address.line2" | "address.postal_code" | "address.state" | "currency" | "description" | "metadata" | "shipping" | "created" | "livemode" | `metadata.${string}` | "discount" | "tax" | "balance" | "cash_balance" | "default_source" | "delinquent" | "invoice_credit_balance" | "invoice_prefix" | "invoice_settings" | "next_invoice_sequence" | "preferred_locales" | "sources" | "subscriptions" | "tax_exempt" | "tax_ids" | "test_clock" | "shipping.address" | "shipping.name" | "shipping.phone" | "shipping.address.city" | "shipping.address.country" | "shipping.address.line1" | "shipping.address.line2" | "shipping.address.postal_code" | "shipping.address.state" | "shipping.carrier" | "shipping.tracking_number" | `discount.${string}` | "tax.automatic_tax" | "tax.ip_address" | "tax.location" | "tax.location.country" | "tax.location.state" | "tax.location.source" | `cash_balance.${string}` | `invoice_credit_balance.${string}` | `invoice_settings.${string}` | `sources.${string}` | `subscriptions.${string}` | `tax_ids.${string}`>;
|
|
@@ -755,15 +755,15 @@ export declare const stripeTables: {
|
|
|
755
755
|
description?: string | null | undefined;
|
|
756
756
|
metadata?: Record<string, string | number | null> | null | undefined;
|
|
757
757
|
statement_descriptor?: string | null | undefined;
|
|
758
|
+
application_fee?: string | null | undefined;
|
|
758
759
|
application_fee_amount?: number | null | undefined;
|
|
759
760
|
failure_balance_transaction?: string | null | undefined;
|
|
760
761
|
failure_code?: string | null | undefined;
|
|
761
762
|
failure_message?: string | null | undefined;
|
|
762
|
-
application_only?: string | null | undefined;
|
|
763
763
|
destination?: string | null | undefined;
|
|
764
764
|
original_payout?: string | null | undefined;
|
|
765
765
|
payout_method?: string | null | undefined;
|
|
766
|
-
reconciliation_status?: "completed" | "in_progress" | "not_applicable" | undefined;
|
|
766
|
+
reconciliation_status?: "completed" | "in_progress" | "not_applicable" | null | undefined;
|
|
767
767
|
reversed_by?: string | null | undefined;
|
|
768
768
|
trace_id?: {
|
|
769
769
|
value?: string | null | undefined;
|
|
@@ -791,15 +791,15 @@ export declare const stripeTables: {
|
|
|
791
791
|
description?: string | null | undefined;
|
|
792
792
|
metadata?: Record<string, string | number | null> | null | undefined;
|
|
793
793
|
statement_descriptor?: string | null | undefined;
|
|
794
|
+
application_fee?: string | null | undefined;
|
|
794
795
|
application_fee_amount?: number | null | undefined;
|
|
795
796
|
failure_balance_transaction?: string | null | undefined;
|
|
796
797
|
failure_code?: string | null | undefined;
|
|
797
798
|
failure_message?: string | null | undefined;
|
|
798
|
-
application_only?: string | null | undefined;
|
|
799
799
|
destination?: string | null | undefined;
|
|
800
800
|
original_payout?: string | null | undefined;
|
|
801
801
|
payout_method?: string | null | undefined;
|
|
802
|
-
reconciliation_status?: "completed" | "in_progress" | "not_applicable" | undefined;
|
|
802
|
+
reconciliation_status?: "completed" | "in_progress" | "not_applicable" | null | undefined;
|
|
803
803
|
reversed_by?: string | null | undefined;
|
|
804
804
|
trace_id?: {
|
|
805
805
|
value?: string | null | undefined;
|
|
@@ -826,7 +826,7 @@ export declare const stripeTables: {
|
|
|
826
826
|
statement_descriptor: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
827
827
|
status: import('convex/values').VString<string, "required">;
|
|
828
828
|
object: import('convex/values').VString<string, "required">;
|
|
829
|
-
|
|
829
|
+
application_fee: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
830
830
|
application_fee_amount: import('convex/values').VUnion<number | null | undefined, [import('convex/values').VFloat64<number, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
831
831
|
automatic: import('convex/values').VBoolean<boolean, "required">;
|
|
832
832
|
balance_transaction: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
@@ -839,7 +839,7 @@ export declare const stripeTables: {
|
|
|
839
839
|
method: import('convex/values').VString<string, "required">;
|
|
840
840
|
original_payout: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
841
841
|
payout_method: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
842
|
-
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>;
|
|
842
|
+
reconciliation_status: import('convex/values').VUnion<"completed" | "in_progress" | "not_applicable" | null | undefined, [import('convex/values').VLiteral<"completed", "required">, import('convex/values').VLiteral<"in_progress", "required">, import('convex/values').VLiteral<"not_applicable", "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
843
843
|
reversed_by: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
844
844
|
source_type: import('convex/values').VString<string, "required">;
|
|
845
845
|
trace_id: import('convex/values').VUnion<{
|
|
@@ -853,9 +853,9 @@ export declare const stripeTables: {
|
|
|
853
853
|
value: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
854
854
|
}, "required", "status" | "value">], "optional", "status" | "value">;
|
|
855
855
|
type: import('convex/values').VUnion<"card" | "bank_account", [import('convex/values').VLiteral<"bank_account", "required">, import('convex/values').VLiteral<"card", "required">], "required", never>;
|
|
856
|
-
}, "required", "object" | "type" | "id" | "amount" | "balance_transaction" | "currency" | "description" | "metadata" | "statement_descriptor" | "status" | "application_fee_amount" | "created" | "failure_balance_transaction" | "failure_code" | "failure_message" | "livemode" | `metadata.${string}` | "automatic" | "arrival_date" | "
|
|
856
|
+
}, "required", "object" | "type" | "id" | "amount" | "balance_transaction" | "currency" | "description" | "metadata" | "statement_descriptor" | "status" | "application_fee" | "application_fee_amount" | "created" | "failure_balance_transaction" | "failure_code" | "failure_message" | "livemode" | `metadata.${string}` | "automatic" | "arrival_date" | "destination" | "method" | "original_payout" | "payout_method" | "reconciliation_status" | "reversed_by" | "source_type" | "trace_id" | "trace_id.status" | "trace_id.value">;
|
|
857
857
|
last_synced_at: import('convex/values').VFloat64<number, "required">;
|
|
858
|
-
}, "required", "stripe" | "last_synced_at" | "stripe.object" | "stripe.id" | "stripe.description" | "stripe.metadata" | "stripe.statement_descriptor" | "stripe.created" | "stripe.livemode" | `stripe.metadata.${string}` | "stripe.type" | "stripe.currency" | "payoutId" | "stripe.amount" | "stripe.balance_transaction" | "stripe.status" | "stripe.
|
|
858
|
+
}, "required", "stripe" | "last_synced_at" | "stripe.object" | "stripe.id" | "stripe.description" | "stripe.metadata" | "stripe.statement_descriptor" | "stripe.created" | "stripe.livemode" | `stripe.metadata.${string}` | "stripe.type" | "stripe.currency" | "payoutId" | "stripe.amount" | "stripe.balance_transaction" | "stripe.status" | "stripe.application_fee" | "stripe.application_fee_amount" | "stripe.failure_balance_transaction" | "stripe.failure_code" | "stripe.failure_message" | "stripe.automatic" | "stripe.arrival_date" | "stripe.destination" | "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">, {
|
|
859
859
|
byPayoutId: ["payoutId", "_creationTime"];
|
|
860
860
|
}, {}, {}>;
|
|
861
861
|
stripe_refunds: import('convex/server').TableDefinition<import('convex/values').VObject<{
|
|
@@ -1085,7 +1085,7 @@ export declare const stripeTables: {
|
|
|
1085
1085
|
}, {
|
|
1086
1086
|
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>;
|
|
1087
1087
|
enabled: import('convex/values').VBoolean<boolean, "required">;
|
|
1088
|
-
}, "required", "
|
|
1088
|
+
}, "required", "enabled" | "allow_redirects">, import('convex/values').VNull<null, "required">], "optional", "enabled" | "allow_redirects">;
|
|
1089
1089
|
client_secret: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
1090
1090
|
currency: import('convex/values').VUnion<string | null, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "required", never>;
|
|
1091
1091
|
customer: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
@@ -1193,9 +1193,9 @@ export declare const stripeTables: {
|
|
|
1193
1193
|
review: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
1194
1194
|
transfer_data: import('convex/values').VAny<any, "optional", string>;
|
|
1195
1195
|
transfer_group: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
1196
|
-
}, "required", "object" | "id" | "amount" | "currency" | "customer" | "description" | "metadata" | "receipt_email" | "shipping" | "statement_descriptor" | "statement_descriptor_suffix" | "status" | "application" | "application_fee_amount" | "created" | "livemode" | "on_behalf_of" | "payment_method" | "presentment_details" | "review" | "transfer_data" | "transfer_group" | `metadata.${string}` | `shipping.${string}` | `presentment_details.${string}` | `transfer_data.${string}` | "client_secret" | "payment_method_configuration_details" | "payment_method_options" | "payment_method_types" | `payment_method_options.${string}` | "last_payment_error" | "latest_charge" | "processing" | "automatic_payment_methods" | "next_action" | "setup_future_usage" | "amount_capturable" | "amount_details" | "amount_received" | "canceled_at" | "cancellation_reason" | "capture_method" | "confirmation_method" | "excluded_payment_method_types" | "payment_method_configuration_details.id" | "payment_method_configuration_details.parent" | "last_payment_error.type" | "last_payment_error.payment_method" | "last_payment_error.charge" | "last_payment_error.advice_code" | "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.
|
|
1196
|
+
}, "required", "object" | "id" | "amount" | "currency" | "customer" | "description" | "metadata" | "receipt_email" | "shipping" | "statement_descriptor" | "statement_descriptor_suffix" | "status" | "application" | "application_fee_amount" | "created" | "livemode" | "on_behalf_of" | "payment_method" | "presentment_details" | "review" | "transfer_data" | "transfer_group" | `metadata.${string}` | `shipping.${string}` | `presentment_details.${string}` | `transfer_data.${string}` | "client_secret" | "payment_method_configuration_details" | "payment_method_options" | "payment_method_types" | `payment_method_options.${string}` | "last_payment_error" | "latest_charge" | "processing" | "automatic_payment_methods" | "next_action" | "setup_future_usage" | "amount_capturable" | "amount_details" | "amount_received" | "canceled_at" | "cancellation_reason" | "capture_method" | "confirmation_method" | "excluded_payment_method_types" | "payment_method_configuration_details.id" | "payment_method_configuration_details.parent" | "last_payment_error.type" | "last_payment_error.payment_method" | "last_payment_error.charge" | "last_payment_error.advice_code" | "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.enabled" | "automatic_payment_methods.allow_redirects" | `next_action.${string}` | "amount_details.tip" | "amount_details.tip.amount">;
|
|
1197
1197
|
last_synced_at: import('convex/values').VFloat64<number, "required">;
|
|
1198
|
-
}, "required", "stripe" | "last_synced_at" | "stripe.object" | "stripe.id" | "stripe.description" | "stripe.metadata" | "stripe.statement_descriptor" | "stripe.created" | "stripe.livemode" | `stripe.metadata.${string}` | "stripe.currency" | "stripe.shipping" | "stripe.customer" | "stripe.amount" | "stripe.status" | "stripe.application_fee_amount" | "stripe.next_action" | `stripe.next_action.${string}` | "paymentIntentId" | "stripe.receipt_email" | "stripe.statement_descriptor_suffix" | "stripe.application" | "stripe.on_behalf_of" | "stripe.payment_method" | "stripe.presentment_details" | "stripe.review" | "stripe.transfer_data" | "stripe.transfer_group" | `stripe.shipping.${string}` | `stripe.presentment_details.${string}` | `stripe.transfer_data.${string}` | "stripe.client_secret" | "stripe.payment_method_configuration_details" | "stripe.payment_method_options" | "stripe.payment_method_types" | `stripe.payment_method_options.${string}` | "stripe.last_payment_error" | "stripe.latest_charge" | "stripe.processing" | "stripe.automatic_payment_methods" | "stripe.setup_future_usage" | "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.payment_method_configuration_details.id" | "stripe.payment_method_configuration_details.parent" | "stripe.last_payment_error.type" | "stripe.last_payment_error.payment_method" | "stripe.last_payment_error.charge" | "stripe.last_payment_error.advice_code" | "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.
|
|
1198
|
+
}, "required", "stripe" | "last_synced_at" | "stripe.object" | "stripe.id" | "stripe.description" | "stripe.metadata" | "stripe.statement_descriptor" | "stripe.created" | "stripe.livemode" | `stripe.metadata.${string}` | "stripe.currency" | "stripe.shipping" | "stripe.customer" | "stripe.amount" | "stripe.status" | "stripe.application_fee_amount" | "stripe.next_action" | `stripe.next_action.${string}` | "paymentIntentId" | "stripe.receipt_email" | "stripe.statement_descriptor_suffix" | "stripe.application" | "stripe.on_behalf_of" | "stripe.payment_method" | "stripe.presentment_details" | "stripe.review" | "stripe.transfer_data" | "stripe.transfer_group" | `stripe.shipping.${string}` | `stripe.presentment_details.${string}` | `stripe.transfer_data.${string}` | "stripe.client_secret" | "stripe.payment_method_configuration_details" | "stripe.payment_method_options" | "stripe.payment_method_types" | `stripe.payment_method_options.${string}` | "stripe.last_payment_error" | "stripe.latest_charge" | "stripe.processing" | "stripe.automatic_payment_methods" | "stripe.setup_future_usage" | "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.payment_method_configuration_details.id" | "stripe.payment_method_configuration_details.parent" | "stripe.last_payment_error.type" | "stripe.last_payment_error.payment_method" | "stripe.last_payment_error.charge" | "stripe.last_payment_error.advice_code" | "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.enabled" | "stripe.automatic_payment_methods.allow_redirects" | "stripe.amount_details.tip" | "stripe.amount_details.tip.amount">, {
|
|
1199
1199
|
byPaymentIntentId: ["paymentIntentId", "_creationTime"];
|
|
1200
1200
|
}, {}, {}>;
|
|
1201
1201
|
stripe_checkout_sessions: import('convex/server').TableDefinition<import('convex/values').VObject<{
|
|
@@ -1471,7 +1471,7 @@ export declare const stripeTables: {
|
|
|
1471
1471
|
attempt_count: number;
|
|
1472
1472
|
attempted: boolean;
|
|
1473
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" | "
|
|
1474
|
+
customer_tax_exempt: "reverse" | "none" | "exempt" | null;
|
|
1475
1475
|
default_tax_rates: any[];
|
|
1476
1476
|
post_payment_credit_notes_amount: number;
|
|
1477
1477
|
pre_payment_credit_notes_amount: number;
|
|
@@ -1553,7 +1553,7 @@ export declare const stripeTables: {
|
|
|
1553
1553
|
attempt_count: number;
|
|
1554
1554
|
attempted: boolean;
|
|
1555
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" | "
|
|
1556
|
+
customer_tax_exempt: "reverse" | "none" | "exempt" | null;
|
|
1557
1557
|
default_tax_rates: any[];
|
|
1558
1558
|
post_payment_credit_notes_amount: number;
|
|
1559
1559
|
pre_payment_credit_notes_amount: number;
|
|
@@ -1596,7 +1596,7 @@ export declare const stripeTables: {
|
|
|
1596
1596
|
customer_name: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
1597
1597
|
customer_phone: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
1598
1598
|
customer_shipping: import('convex/values').VAny<any, "optional", string>;
|
|
1599
|
-
customer_tax_exempt: import('convex/values').VUnion<"reverse" | "
|
|
1599
|
+
customer_tax_exempt: import('convex/values').VUnion<"reverse" | "none" | "exempt" | 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>;
|
|
1600
1600
|
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>;
|
|
1601
1601
|
default_payment_method: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
1602
1602
|
default_source: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
@@ -2046,8 +2046,8 @@ export declare const stripeTables: {
|
|
|
2046
2046
|
id: string;
|
|
2047
2047
|
} | null | undefined;
|
|
2048
2048
|
automatic_payment_methods?: {
|
|
2049
|
-
allow_redirects?: "always" | "never" | null | undefined;
|
|
2050
2049
|
enabled?: boolean | null | undefined;
|
|
2050
|
+
allow_redirects?: "always" | "never" | null | undefined;
|
|
2051
2051
|
} | null | undefined;
|
|
2052
2052
|
cancellation_reason?: "duplicate" | "abandoned" | "requested_by_customer" | null | undefined;
|
|
2053
2053
|
attach_to_self?: boolean | null | undefined;
|
|
@@ -2083,8 +2083,8 @@ export declare const stripeTables: {
|
|
|
2083
2083
|
id: string;
|
|
2084
2084
|
} | null | undefined;
|
|
2085
2085
|
automatic_payment_methods?: {
|
|
2086
|
-
allow_redirects?: "always" | "never" | null | undefined;
|
|
2087
2086
|
enabled?: boolean | null | undefined;
|
|
2087
|
+
allow_redirects?: "always" | "never" | null | undefined;
|
|
2088
2088
|
} | null | undefined;
|
|
2089
2089
|
cancellation_reason?: "duplicate" | "abandoned" | "requested_by_customer" | null | undefined;
|
|
2090
2090
|
attach_to_self?: boolean | null | undefined;
|
|
@@ -2105,15 +2105,15 @@ export declare const stripeTables: {
|
|
|
2105
2105
|
}, {
|
|
2106
2106
|
id: import('convex/values').VString<string, "required">;
|
|
2107
2107
|
automatic_payment_methods: import('convex/values').VUnion<{
|
|
2108
|
-
allow_redirects?: "always" | "never" | null | undefined;
|
|
2109
2108
|
enabled?: boolean | null | undefined;
|
|
2110
|
-
} | null | undefined, [import('convex/values').VObject<{
|
|
2111
2109
|
allow_redirects?: "always" | "never" | null | undefined;
|
|
2110
|
+
} | null | undefined, [import('convex/values').VObject<{
|
|
2112
2111
|
enabled?: boolean | null | undefined;
|
|
2112
|
+
allow_redirects?: "always" | "never" | null | undefined;
|
|
2113
2113
|
}, {
|
|
2114
2114
|
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>;
|
|
2115
2115
|
enabled: import('convex/values').VUnion<boolean | null | undefined, [import('convex/values').VBoolean<boolean, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
2116
|
-
}, "required", "
|
|
2116
|
+
}, "required", "enabled" | "allow_redirects">, import('convex/values').VNull<null, "required">], "optional", "enabled" | "allow_redirects">;
|
|
2117
2117
|
client_secret: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
2118
2118
|
customer: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
2119
2119
|
description: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
@@ -2146,9 +2146,9 @@ export declare const stripeTables: {
|
|
|
2146
2146
|
payment_method_options: import('convex/values').VAny<any, "required", string>;
|
|
2147
2147
|
payment_method_types: import('convex/values').VArray<string[], import('convex/values').VString<string, "required">, "required">;
|
|
2148
2148
|
single_use_mandate: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
2149
|
-
}, "required", "object" | "id" | "customer" | "description" | "metadata" | "status" | "application" | "created" | "livemode" | "on_behalf_of" | "payment_method" | `metadata.${string}` | "client_secret" | "payment_method_configuration_details" | "payment_method_options" | "payment_method_types" | `payment_method_options.${string}` | "automatic_payment_methods" | "next_action" | "cancellation_reason" | "payment_method_configuration_details.id" | "payment_method_configuration_details.parent" | "automatic_payment_methods.
|
|
2149
|
+
}, "required", "object" | "id" | "customer" | "description" | "metadata" | "status" | "application" | "created" | "livemode" | "on_behalf_of" | "payment_method" | `metadata.${string}` | "client_secret" | "payment_method_configuration_details" | "payment_method_options" | "payment_method_types" | `payment_method_options.${string}` | "automatic_payment_methods" | "next_action" | "cancellation_reason" | "payment_method_configuration_details.id" | "payment_method_configuration_details.parent" | "automatic_payment_methods.enabled" | "automatic_payment_methods.allow_redirects" | `next_action.${string}` | "last_setup_error" | "usage" | "attach_to_self" | "flow_directions" | "latest_attempt" | "mandate" | "single_use_mandate" | `last_setup_error.${string}`>;
|
|
2150
2150
|
last_synced_at: import('convex/values').VFloat64<number, "required">;
|
|
2151
|
-
}, "required", "stripe" | "last_synced_at" | "stripe.object" | "stripe.id" | "stripe.description" | "stripe.metadata" | "stripe.created" | "stripe.livemode" | `stripe.metadata.${string}` | "stripe.customer" | "stripe.status" | "stripe.next_action" | `stripe.next_action.${string}` | "stripe.application" | "stripe.on_behalf_of" | "stripe.payment_method" | "stripe.client_secret" | "stripe.payment_method_configuration_details" | "stripe.payment_method_options" | "stripe.payment_method_types" | `stripe.payment_method_options.${string}` | "stripe.automatic_payment_methods" | "stripe.cancellation_reason" | "stripe.payment_method_configuration_details.id" | "stripe.payment_method_configuration_details.parent" | "stripe.automatic_payment_methods.
|
|
2151
|
+
}, "required", "stripe" | "last_synced_at" | "stripe.object" | "stripe.id" | "stripe.description" | "stripe.metadata" | "stripe.created" | "stripe.livemode" | `stripe.metadata.${string}` | "stripe.customer" | "stripe.status" | "stripe.next_action" | `stripe.next_action.${string}` | "stripe.application" | "stripe.on_behalf_of" | "stripe.payment_method" | "stripe.client_secret" | "stripe.payment_method_configuration_details" | "stripe.payment_method_options" | "stripe.payment_method_types" | `stripe.payment_method_options.${string}` | "stripe.automatic_payment_methods" | "stripe.cancellation_reason" | "stripe.payment_method_configuration_details.id" | "stripe.payment_method_configuration_details.parent" | "stripe.automatic_payment_methods.enabled" | "stripe.automatic_payment_methods.allow_redirects" | "setupIntentId" | "stripe.last_setup_error" | "stripe.usage" | "stripe.attach_to_self" | "stripe.flow_directions" | "stripe.latest_attempt" | "stripe.mandate" | "stripe.single_use_mandate" | `stripe.last_setup_error.${string}`>, {
|
|
2152
2152
|
bySetupIntentId: ["setupIntentId", "_creationTime"];
|
|
2153
2153
|
}, {}, {}>;
|
|
2154
2154
|
stripe_credit_notes: import('convex/server').TableDefinition<import('convex/values').VObject<{
|
|
@@ -2531,7 +2531,7 @@ export declare const stripeTables: {
|
|
|
2531
2531
|
transfer_group: import('convex/values').VAny<any, "required", string>;
|
|
2532
2532
|
}, "required", "object" | "id" | "amount" | "balance_transaction" | "billing_details" | "currency" | "customer" | "description" | "disputed" | "metadata" | "payment_intent" | "payment_method_details" | "receipt_email" | "refunded" | "shipping" | "statement_descriptor" | "statement_descriptor_suffix" | "status" | "amount_captured" | "amount_refunded" | "application" | "application_fee" | "application_fee_amount" | "calculated_statement_descriptor" | "captured" | "created" | "failure_balance_transaction" | "failure_code" | "failure_message" | "fraud_details" | "livemode" | "on_behalf_of" | "outcome" | "paid" | "payment_method" | "presentment_details" | "radar_options" | "receipt_number" | "receipt_url" | "refunds" | "review" | "source_transfer" | "transfer" | "transfer_data" | "transfer_group" | "billing_details.address" | "billing_details.email" | "billing_details.name" | "billing_details.phone" | "billing_details.tax_id" | "billing_details.address.city" | "billing_details.address.country" | "billing_details.address.line1" | "billing_details.address.line2" | "billing_details.address.postal_code" | "billing_details.address.state" | `metadata.${string}` | `payment_method_details.${string}` | `shipping.${string}` | `fraud_details.${string}` | `outcome.${string}` | `presentment_details.${string}` | `radar_options.${string}` | `refunds.${string}` | `transfer_data.${string}` | `transfer_group.${string}`>;
|
|
2533
2533
|
last_synced_at: import('convex/values').VFloat64<number, "required">;
|
|
2534
|
-
}, "required", "stripe" | "last_synced_at" | "stripe.object" | "stripe.id" | "stripe.description" | "stripe.metadata" | "stripe.statement_descriptor" | "stripe.created" | "stripe.livemode" | `stripe.metadata.${string}` | "stripe.currency" | "stripe.shipping" | "stripe.customer" | "stripe.amount" | "stripe.balance_transaction" | "stripe.status" | "stripe.application_fee_amount" | "stripe.failure_balance_transaction" | "stripe.failure_code" | "stripe.failure_message" | "stripe.payment_intent" | "stripe.receipt_number" | "stripe.receipt_email" | "stripe.statement_descriptor_suffix" | "stripe.application" | "stripe.on_behalf_of" | "stripe.payment_method" | "stripe.presentment_details" | "stripe.review" | "stripe.transfer_data" | "stripe.transfer_group" | `stripe.shipping.${string}` | `stripe.presentment_details.${string}` | `stripe.transfer_data.${string}` | "stripe.payment_method_details" | `stripe.payment_method_details.${string}` | "stripe.refunds" | "chargeId" | "stripe.billing_details" | "stripe.disputed" | "stripe.refunded" | "stripe.amount_captured" | "stripe.amount_refunded" | "stripe.
|
|
2534
|
+
}, "required", "stripe" | "last_synced_at" | "stripe.object" | "stripe.id" | "stripe.description" | "stripe.metadata" | "stripe.statement_descriptor" | "stripe.created" | "stripe.livemode" | `stripe.metadata.${string}` | "stripe.currency" | "stripe.shipping" | "stripe.customer" | "stripe.amount" | "stripe.balance_transaction" | "stripe.status" | "stripe.application_fee" | "stripe.application_fee_amount" | "stripe.failure_balance_transaction" | "stripe.failure_code" | "stripe.failure_message" | "stripe.payment_intent" | "stripe.receipt_number" | "stripe.receipt_email" | "stripe.statement_descriptor_suffix" | "stripe.application" | "stripe.on_behalf_of" | "stripe.payment_method" | "stripe.presentment_details" | "stripe.review" | "stripe.transfer_data" | "stripe.transfer_group" | `stripe.shipping.${string}` | `stripe.presentment_details.${string}` | `stripe.transfer_data.${string}` | "stripe.payment_method_details" | `stripe.payment_method_details.${string}` | "stripe.refunds" | "chargeId" | "stripe.billing_details" | "stripe.disputed" | "stripe.refunded" | "stripe.amount_captured" | "stripe.amount_refunded" | "stripe.calculated_statement_descriptor" | "stripe.captured" | "stripe.fraud_details" | "stripe.outcome" | "stripe.paid" | "stripe.radar_options" | "stripe.receipt_url" | "stripe.source_transfer" | "stripe.transfer" | "stripe.billing_details.address" | "stripe.billing_details.email" | "stripe.billing_details.name" | "stripe.billing_details.phone" | "stripe.billing_details.tax_id" | "stripe.billing_details.address.city" | "stripe.billing_details.address.country" | "stripe.billing_details.address.line1" | "stripe.billing_details.address.line2" | "stripe.billing_details.address.postal_code" | "stripe.billing_details.address.state" | `stripe.fraud_details.${string}` | `stripe.outcome.${string}` | `stripe.radar_options.${string}` | `stripe.refunds.${string}` | `stripe.transfer_group.${string}`>, {
|
|
2535
2535
|
byChargeId: ["chargeId", "_creationTime"];
|
|
2536
2536
|
}, {}, {}>;
|
|
2537
2537
|
stripe_payment_methods: import('convex/server').TableDefinition<import('convex/values').VObject<{
|
|
@@ -3293,7 +3293,7 @@ declare const stripeSchema: import('convex/server').SchemaDefinition<{
|
|
|
3293
3293
|
preferred_locales?: string[] | null | undefined;
|
|
3294
3294
|
sources?: any;
|
|
3295
3295
|
subscriptions?: any;
|
|
3296
|
-
tax_exempt?: "reverse" | "
|
|
3296
|
+
tax_exempt?: "reverse" | "none" | "exempt" | null | undefined;
|
|
3297
3297
|
tax_ids?: any;
|
|
3298
3298
|
test_clock?: string | null | undefined;
|
|
3299
3299
|
object: string;
|
|
@@ -3357,7 +3357,7 @@ declare const stripeSchema: import('convex/server').SchemaDefinition<{
|
|
|
3357
3357
|
preferred_locales?: string[] | null | undefined;
|
|
3358
3358
|
sources?: any;
|
|
3359
3359
|
subscriptions?: any;
|
|
3360
|
-
tax_exempt?: "reverse" | "
|
|
3360
|
+
tax_exempt?: "reverse" | "none" | "exempt" | null | undefined;
|
|
3361
3361
|
tax_ids?: any;
|
|
3362
3362
|
test_clock?: string | null | undefined;
|
|
3363
3363
|
object: string;
|
|
@@ -3482,7 +3482,7 @@ declare const stripeSchema: import('convex/server').SchemaDefinition<{
|
|
|
3482
3482
|
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>;
|
|
3483
3483
|
sources: import('convex/values').VUnion<any, [import('convex/values').VAny<any, "required", string>, import('convex/values').VNull<null, "required">], "optional", string>;
|
|
3484
3484
|
subscriptions: import('convex/values').VUnion<any, [import('convex/values').VAny<any, "required", string>, import('convex/values').VNull<null, "required">], "optional", string>;
|
|
3485
|
-
tax_exempt: import('convex/values').VUnion<"reverse" | "
|
|
3485
|
+
tax_exempt: import('convex/values').VUnion<"reverse" | "none" | "exempt" | 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>;
|
|
3486
3486
|
tax_ids: import('convex/values').VUnion<any, [import('convex/values').VAny<any, "required", string>, import('convex/values').VNull<null, "required">], "optional", string>;
|
|
3487
3487
|
test_clock: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
3488
3488
|
}, "required", "object" | "id" | "address" | "email" | "name" | "phone" | "address.city" | "address.country" | "address.line1" | "address.line2" | "address.postal_code" | "address.state" | "currency" | "description" | "metadata" | "shipping" | "created" | "livemode" | `metadata.${string}` | "discount" | "tax" | "balance" | "cash_balance" | "default_source" | "delinquent" | "invoice_credit_balance" | "invoice_prefix" | "invoice_settings" | "next_invoice_sequence" | "preferred_locales" | "sources" | "subscriptions" | "tax_exempt" | "tax_ids" | "test_clock" | "shipping.address" | "shipping.name" | "shipping.phone" | "shipping.address.city" | "shipping.address.country" | "shipping.address.line1" | "shipping.address.line2" | "shipping.address.postal_code" | "shipping.address.state" | "shipping.carrier" | "shipping.tracking_number" | `discount.${string}` | "tax.automatic_tax" | "tax.ip_address" | "tax.location" | "tax.location.country" | "tax.location.state" | "tax.location.source" | `cash_balance.${string}` | `invoice_credit_balance.${string}` | `invoice_settings.${string}` | `sources.${string}` | `subscriptions.${string}` | `tax_ids.${string}`>;
|
|
@@ -3784,15 +3784,15 @@ declare const stripeSchema: import('convex/server').SchemaDefinition<{
|
|
|
3784
3784
|
description?: string | null | undefined;
|
|
3785
3785
|
metadata?: Record<string, string | number | null> | null | undefined;
|
|
3786
3786
|
statement_descriptor?: string | null | undefined;
|
|
3787
|
+
application_fee?: string | null | undefined;
|
|
3787
3788
|
application_fee_amount?: number | null | undefined;
|
|
3788
3789
|
failure_balance_transaction?: string | null | undefined;
|
|
3789
3790
|
failure_code?: string | null | undefined;
|
|
3790
3791
|
failure_message?: string | null | undefined;
|
|
3791
|
-
application_only?: string | null | undefined;
|
|
3792
3792
|
destination?: string | null | undefined;
|
|
3793
3793
|
original_payout?: string | null | undefined;
|
|
3794
3794
|
payout_method?: string | null | undefined;
|
|
3795
|
-
reconciliation_status?: "completed" | "in_progress" | "not_applicable" | undefined;
|
|
3795
|
+
reconciliation_status?: "completed" | "in_progress" | "not_applicable" | null | undefined;
|
|
3796
3796
|
reversed_by?: string | null | undefined;
|
|
3797
3797
|
trace_id?: {
|
|
3798
3798
|
value?: string | null | undefined;
|
|
@@ -3820,15 +3820,15 @@ declare const stripeSchema: import('convex/server').SchemaDefinition<{
|
|
|
3820
3820
|
description?: string | null | undefined;
|
|
3821
3821
|
metadata?: Record<string, string | number | null> | null | undefined;
|
|
3822
3822
|
statement_descriptor?: string | null | undefined;
|
|
3823
|
+
application_fee?: string | null | undefined;
|
|
3823
3824
|
application_fee_amount?: number | null | undefined;
|
|
3824
3825
|
failure_balance_transaction?: string | null | undefined;
|
|
3825
3826
|
failure_code?: string | null | undefined;
|
|
3826
3827
|
failure_message?: string | null | undefined;
|
|
3827
|
-
application_only?: string | null | undefined;
|
|
3828
3828
|
destination?: string | null | undefined;
|
|
3829
3829
|
original_payout?: string | null | undefined;
|
|
3830
3830
|
payout_method?: string | null | undefined;
|
|
3831
|
-
reconciliation_status?: "completed" | "in_progress" | "not_applicable" | undefined;
|
|
3831
|
+
reconciliation_status?: "completed" | "in_progress" | "not_applicable" | null | undefined;
|
|
3832
3832
|
reversed_by?: string | null | undefined;
|
|
3833
3833
|
trace_id?: {
|
|
3834
3834
|
value?: string | null | undefined;
|
|
@@ -3855,7 +3855,7 @@ declare const stripeSchema: import('convex/server').SchemaDefinition<{
|
|
|
3855
3855
|
statement_descriptor: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
3856
3856
|
status: import('convex/values').VString<string, "required">;
|
|
3857
3857
|
object: import('convex/values').VString<string, "required">;
|
|
3858
|
-
|
|
3858
|
+
application_fee: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
3859
3859
|
application_fee_amount: import('convex/values').VUnion<number | null | undefined, [import('convex/values').VFloat64<number, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
3860
3860
|
automatic: import('convex/values').VBoolean<boolean, "required">;
|
|
3861
3861
|
balance_transaction: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
@@ -3868,7 +3868,7 @@ declare const stripeSchema: import('convex/server').SchemaDefinition<{
|
|
|
3868
3868
|
method: import('convex/values').VString<string, "required">;
|
|
3869
3869
|
original_payout: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
3870
3870
|
payout_method: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
3871
|
-
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>;
|
|
3871
|
+
reconciliation_status: import('convex/values').VUnion<"completed" | "in_progress" | "not_applicable" | null | undefined, [import('convex/values').VLiteral<"completed", "required">, import('convex/values').VLiteral<"in_progress", "required">, import('convex/values').VLiteral<"not_applicable", "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
3872
3872
|
reversed_by: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
3873
3873
|
source_type: import('convex/values').VString<string, "required">;
|
|
3874
3874
|
trace_id: import('convex/values').VUnion<{
|
|
@@ -3882,9 +3882,9 @@ declare const stripeSchema: import('convex/server').SchemaDefinition<{
|
|
|
3882
3882
|
value: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
3883
3883
|
}, "required", "status" | "value">], "optional", "status" | "value">;
|
|
3884
3884
|
type: import('convex/values').VUnion<"card" | "bank_account", [import('convex/values').VLiteral<"bank_account", "required">, import('convex/values').VLiteral<"card", "required">], "required", never>;
|
|
3885
|
-
}, "required", "object" | "type" | "id" | "amount" | "balance_transaction" | "currency" | "description" | "metadata" | "statement_descriptor" | "status" | "application_fee_amount" | "created" | "failure_balance_transaction" | "failure_code" | "failure_message" | "livemode" | `metadata.${string}` | "automatic" | "arrival_date" | "
|
|
3885
|
+
}, "required", "object" | "type" | "id" | "amount" | "balance_transaction" | "currency" | "description" | "metadata" | "statement_descriptor" | "status" | "application_fee" | "application_fee_amount" | "created" | "failure_balance_transaction" | "failure_code" | "failure_message" | "livemode" | `metadata.${string}` | "automatic" | "arrival_date" | "destination" | "method" | "original_payout" | "payout_method" | "reconciliation_status" | "reversed_by" | "source_type" | "trace_id" | "trace_id.status" | "trace_id.value">;
|
|
3886
3886
|
last_synced_at: import('convex/values').VFloat64<number, "required">;
|
|
3887
|
-
}, "required", "stripe" | "last_synced_at" | "stripe.object" | "stripe.id" | "stripe.description" | "stripe.metadata" | "stripe.statement_descriptor" | "stripe.created" | "stripe.livemode" | `stripe.metadata.${string}` | "stripe.type" | "stripe.currency" | "payoutId" | "stripe.amount" | "stripe.balance_transaction" | "stripe.status" | "stripe.
|
|
3887
|
+
}, "required", "stripe" | "last_synced_at" | "stripe.object" | "stripe.id" | "stripe.description" | "stripe.metadata" | "stripe.statement_descriptor" | "stripe.created" | "stripe.livemode" | `stripe.metadata.${string}` | "stripe.type" | "stripe.currency" | "payoutId" | "stripe.amount" | "stripe.balance_transaction" | "stripe.status" | "stripe.application_fee" | "stripe.application_fee_amount" | "stripe.failure_balance_transaction" | "stripe.failure_code" | "stripe.failure_message" | "stripe.automatic" | "stripe.arrival_date" | "stripe.destination" | "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">, {
|
|
3888
3888
|
byPayoutId: ["payoutId", "_creationTime"];
|
|
3889
3889
|
}, {}, {}>;
|
|
3890
3890
|
stripe_refunds: import('convex/server').TableDefinition<import('convex/values').VObject<{
|
|
@@ -4114,7 +4114,7 @@ declare const stripeSchema: import('convex/server').SchemaDefinition<{
|
|
|
4114
4114
|
}, {
|
|
4115
4115
|
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>;
|
|
4116
4116
|
enabled: import('convex/values').VBoolean<boolean, "required">;
|
|
4117
|
-
}, "required", "
|
|
4117
|
+
}, "required", "enabled" | "allow_redirects">, import('convex/values').VNull<null, "required">], "optional", "enabled" | "allow_redirects">;
|
|
4118
4118
|
client_secret: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
4119
4119
|
currency: import('convex/values').VUnion<string | null, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "required", never>;
|
|
4120
4120
|
customer: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
@@ -4222,9 +4222,9 @@ declare const stripeSchema: import('convex/server').SchemaDefinition<{
|
|
|
4222
4222
|
review: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
4223
4223
|
transfer_data: import('convex/values').VAny<any, "optional", string>;
|
|
4224
4224
|
transfer_group: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
4225
|
-
}, "required", "object" | "id" | "amount" | "currency" | "customer" | "description" | "metadata" | "receipt_email" | "shipping" | "statement_descriptor" | "statement_descriptor_suffix" | "status" | "application" | "application_fee_amount" | "created" | "livemode" | "on_behalf_of" | "payment_method" | "presentment_details" | "review" | "transfer_data" | "transfer_group" | `metadata.${string}` | `shipping.${string}` | `presentment_details.${string}` | `transfer_data.${string}` | "client_secret" | "payment_method_configuration_details" | "payment_method_options" | "payment_method_types" | `payment_method_options.${string}` | "last_payment_error" | "latest_charge" | "processing" | "automatic_payment_methods" | "next_action" | "setup_future_usage" | "amount_capturable" | "amount_details" | "amount_received" | "canceled_at" | "cancellation_reason" | "capture_method" | "confirmation_method" | "excluded_payment_method_types" | "payment_method_configuration_details.id" | "payment_method_configuration_details.parent" | "last_payment_error.type" | "last_payment_error.payment_method" | "last_payment_error.charge" | "last_payment_error.advice_code" | "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.
|
|
4225
|
+
}, "required", "object" | "id" | "amount" | "currency" | "customer" | "description" | "metadata" | "receipt_email" | "shipping" | "statement_descriptor" | "statement_descriptor_suffix" | "status" | "application" | "application_fee_amount" | "created" | "livemode" | "on_behalf_of" | "payment_method" | "presentment_details" | "review" | "transfer_data" | "transfer_group" | `metadata.${string}` | `shipping.${string}` | `presentment_details.${string}` | `transfer_data.${string}` | "client_secret" | "payment_method_configuration_details" | "payment_method_options" | "payment_method_types" | `payment_method_options.${string}` | "last_payment_error" | "latest_charge" | "processing" | "automatic_payment_methods" | "next_action" | "setup_future_usage" | "amount_capturable" | "amount_details" | "amount_received" | "canceled_at" | "cancellation_reason" | "capture_method" | "confirmation_method" | "excluded_payment_method_types" | "payment_method_configuration_details.id" | "payment_method_configuration_details.parent" | "last_payment_error.type" | "last_payment_error.payment_method" | "last_payment_error.charge" | "last_payment_error.advice_code" | "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.enabled" | "automatic_payment_methods.allow_redirects" | `next_action.${string}` | "amount_details.tip" | "amount_details.tip.amount">;
|
|
4226
4226
|
last_synced_at: import('convex/values').VFloat64<number, "required">;
|
|
4227
|
-
}, "required", "stripe" | "last_synced_at" | "stripe.object" | "stripe.id" | "stripe.description" | "stripe.metadata" | "stripe.statement_descriptor" | "stripe.created" | "stripe.livemode" | `stripe.metadata.${string}` | "stripe.currency" | "stripe.shipping" | "stripe.customer" | "stripe.amount" | "stripe.status" | "stripe.application_fee_amount" | "stripe.next_action" | `stripe.next_action.${string}` | "paymentIntentId" | "stripe.receipt_email" | "stripe.statement_descriptor_suffix" | "stripe.application" | "stripe.on_behalf_of" | "stripe.payment_method" | "stripe.presentment_details" | "stripe.review" | "stripe.transfer_data" | "stripe.transfer_group" | `stripe.shipping.${string}` | `stripe.presentment_details.${string}` | `stripe.transfer_data.${string}` | "stripe.client_secret" | "stripe.payment_method_configuration_details" | "stripe.payment_method_options" | "stripe.payment_method_types" | `stripe.payment_method_options.${string}` | "stripe.last_payment_error" | "stripe.latest_charge" | "stripe.processing" | "stripe.automatic_payment_methods" | "stripe.setup_future_usage" | "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.payment_method_configuration_details.id" | "stripe.payment_method_configuration_details.parent" | "stripe.last_payment_error.type" | "stripe.last_payment_error.payment_method" | "stripe.last_payment_error.charge" | "stripe.last_payment_error.advice_code" | "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.
|
|
4227
|
+
}, "required", "stripe" | "last_synced_at" | "stripe.object" | "stripe.id" | "stripe.description" | "stripe.metadata" | "stripe.statement_descriptor" | "stripe.created" | "stripe.livemode" | `stripe.metadata.${string}` | "stripe.currency" | "stripe.shipping" | "stripe.customer" | "stripe.amount" | "stripe.status" | "stripe.application_fee_amount" | "stripe.next_action" | `stripe.next_action.${string}` | "paymentIntentId" | "stripe.receipt_email" | "stripe.statement_descriptor_suffix" | "stripe.application" | "stripe.on_behalf_of" | "stripe.payment_method" | "stripe.presentment_details" | "stripe.review" | "stripe.transfer_data" | "stripe.transfer_group" | `stripe.shipping.${string}` | `stripe.presentment_details.${string}` | `stripe.transfer_data.${string}` | "stripe.client_secret" | "stripe.payment_method_configuration_details" | "stripe.payment_method_options" | "stripe.payment_method_types" | `stripe.payment_method_options.${string}` | "stripe.last_payment_error" | "stripe.latest_charge" | "stripe.processing" | "stripe.automatic_payment_methods" | "stripe.setup_future_usage" | "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.payment_method_configuration_details.id" | "stripe.payment_method_configuration_details.parent" | "stripe.last_payment_error.type" | "stripe.last_payment_error.payment_method" | "stripe.last_payment_error.charge" | "stripe.last_payment_error.advice_code" | "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.enabled" | "stripe.automatic_payment_methods.allow_redirects" | "stripe.amount_details.tip" | "stripe.amount_details.tip.amount">, {
|
|
4228
4228
|
byPaymentIntentId: ["paymentIntentId", "_creationTime"];
|
|
4229
4229
|
}, {}, {}>;
|
|
4230
4230
|
stripe_checkout_sessions: import('convex/server').TableDefinition<import('convex/values').VObject<{
|
|
@@ -4500,7 +4500,7 @@ declare const stripeSchema: import('convex/server').SchemaDefinition<{
|
|
|
4500
4500
|
attempt_count: number;
|
|
4501
4501
|
attempted: boolean;
|
|
4502
4502
|
billing_reason: "subscription" | "automatic_pending_invoice_item_invoice" | "manual" | "quote_accept" | "subscription_create" | "subscription_cycle" | "subscription_threshold" | "subscription_update" | "upcoming" | null;
|
|
4503
|
-
customer_tax_exempt: "reverse" | "
|
|
4503
|
+
customer_tax_exempt: "reverse" | "none" | "exempt" | null;
|
|
4504
4504
|
default_tax_rates: any[];
|
|
4505
4505
|
post_payment_credit_notes_amount: number;
|
|
4506
4506
|
pre_payment_credit_notes_amount: number;
|
|
@@ -4582,7 +4582,7 @@ declare const stripeSchema: import('convex/server').SchemaDefinition<{
|
|
|
4582
4582
|
attempt_count: number;
|
|
4583
4583
|
attempted: boolean;
|
|
4584
4584
|
billing_reason: "subscription" | "automatic_pending_invoice_item_invoice" | "manual" | "quote_accept" | "subscription_create" | "subscription_cycle" | "subscription_threshold" | "subscription_update" | "upcoming" | null;
|
|
4585
|
-
customer_tax_exempt: "reverse" | "
|
|
4585
|
+
customer_tax_exempt: "reverse" | "none" | "exempt" | null;
|
|
4586
4586
|
default_tax_rates: any[];
|
|
4587
4587
|
post_payment_credit_notes_amount: number;
|
|
4588
4588
|
pre_payment_credit_notes_amount: number;
|
|
@@ -4625,7 +4625,7 @@ declare const stripeSchema: import('convex/server').SchemaDefinition<{
|
|
|
4625
4625
|
customer_name: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
4626
4626
|
customer_phone: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
4627
4627
|
customer_shipping: import('convex/values').VAny<any, "optional", string>;
|
|
4628
|
-
customer_tax_exempt: import('convex/values').VUnion<"reverse" | "
|
|
4628
|
+
customer_tax_exempt: import('convex/values').VUnion<"reverse" | "none" | "exempt" | 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>;
|
|
4629
4629
|
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>;
|
|
4630
4630
|
default_payment_method: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
4631
4631
|
default_source: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
@@ -5075,8 +5075,8 @@ declare const stripeSchema: import('convex/server').SchemaDefinition<{
|
|
|
5075
5075
|
id: string;
|
|
5076
5076
|
} | null | undefined;
|
|
5077
5077
|
automatic_payment_methods?: {
|
|
5078
|
-
allow_redirects?: "always" | "never" | null | undefined;
|
|
5079
5078
|
enabled?: boolean | null | undefined;
|
|
5079
|
+
allow_redirects?: "always" | "never" | null | undefined;
|
|
5080
5080
|
} | null | undefined;
|
|
5081
5081
|
cancellation_reason?: "duplicate" | "abandoned" | "requested_by_customer" | null | undefined;
|
|
5082
5082
|
attach_to_self?: boolean | null | undefined;
|
|
@@ -5112,8 +5112,8 @@ declare const stripeSchema: import('convex/server').SchemaDefinition<{
|
|
|
5112
5112
|
id: string;
|
|
5113
5113
|
} | null | undefined;
|
|
5114
5114
|
automatic_payment_methods?: {
|
|
5115
|
-
allow_redirects?: "always" | "never" | null | undefined;
|
|
5116
5115
|
enabled?: boolean | null | undefined;
|
|
5116
|
+
allow_redirects?: "always" | "never" | null | undefined;
|
|
5117
5117
|
} | null | undefined;
|
|
5118
5118
|
cancellation_reason?: "duplicate" | "abandoned" | "requested_by_customer" | null | undefined;
|
|
5119
5119
|
attach_to_self?: boolean | null | undefined;
|
|
@@ -5134,15 +5134,15 @@ declare const stripeSchema: import('convex/server').SchemaDefinition<{
|
|
|
5134
5134
|
}, {
|
|
5135
5135
|
id: import('convex/values').VString<string, "required">;
|
|
5136
5136
|
automatic_payment_methods: import('convex/values').VUnion<{
|
|
5137
|
-
allow_redirects?: "always" | "never" | null | undefined;
|
|
5138
5137
|
enabled?: boolean | null | undefined;
|
|
5139
|
-
} | null | undefined, [import('convex/values').VObject<{
|
|
5140
5138
|
allow_redirects?: "always" | "never" | null | undefined;
|
|
5139
|
+
} | null | undefined, [import('convex/values').VObject<{
|
|
5141
5140
|
enabled?: boolean | null | undefined;
|
|
5141
|
+
allow_redirects?: "always" | "never" | null | undefined;
|
|
5142
5142
|
}, {
|
|
5143
5143
|
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>;
|
|
5144
5144
|
enabled: import('convex/values').VUnion<boolean | null | undefined, [import('convex/values').VBoolean<boolean, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
5145
|
-
}, "required", "
|
|
5145
|
+
}, "required", "enabled" | "allow_redirects">, import('convex/values').VNull<null, "required">], "optional", "enabled" | "allow_redirects">;
|
|
5146
5146
|
client_secret: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
5147
5147
|
customer: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
5148
5148
|
description: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
@@ -5175,9 +5175,9 @@ declare const stripeSchema: import('convex/server').SchemaDefinition<{
|
|
|
5175
5175
|
payment_method_options: import('convex/values').VAny<any, "required", string>;
|
|
5176
5176
|
payment_method_types: import('convex/values').VArray<string[], import('convex/values').VString<string, "required">, "required">;
|
|
5177
5177
|
single_use_mandate: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
5178
|
-
}, "required", "object" | "id" | "customer" | "description" | "metadata" | "status" | "application" | "created" | "livemode" | "on_behalf_of" | "payment_method" | `metadata.${string}` | "client_secret" | "payment_method_configuration_details" | "payment_method_options" | "payment_method_types" | `payment_method_options.${string}` | "automatic_payment_methods" | "next_action" | "cancellation_reason" | "payment_method_configuration_details.id" | "payment_method_configuration_details.parent" | "automatic_payment_methods.
|
|
5178
|
+
}, "required", "object" | "id" | "customer" | "description" | "metadata" | "status" | "application" | "created" | "livemode" | "on_behalf_of" | "payment_method" | `metadata.${string}` | "client_secret" | "payment_method_configuration_details" | "payment_method_options" | "payment_method_types" | `payment_method_options.${string}` | "automatic_payment_methods" | "next_action" | "cancellation_reason" | "payment_method_configuration_details.id" | "payment_method_configuration_details.parent" | "automatic_payment_methods.enabled" | "automatic_payment_methods.allow_redirects" | `next_action.${string}` | "last_setup_error" | "usage" | "attach_to_self" | "flow_directions" | "latest_attempt" | "mandate" | "single_use_mandate" | `last_setup_error.${string}`>;
|
|
5179
5179
|
last_synced_at: import('convex/values').VFloat64<number, "required">;
|
|
5180
|
-
}, "required", "stripe" | "last_synced_at" | "stripe.object" | "stripe.id" | "stripe.description" | "stripe.metadata" | "stripe.created" | "stripe.livemode" | `stripe.metadata.${string}` | "stripe.customer" | "stripe.status" | "stripe.next_action" | `stripe.next_action.${string}` | "stripe.application" | "stripe.on_behalf_of" | "stripe.payment_method" | "stripe.client_secret" | "stripe.payment_method_configuration_details" | "stripe.payment_method_options" | "stripe.payment_method_types" | `stripe.payment_method_options.${string}` | "stripe.automatic_payment_methods" | "stripe.cancellation_reason" | "stripe.payment_method_configuration_details.id" | "stripe.payment_method_configuration_details.parent" | "stripe.automatic_payment_methods.
|
|
5180
|
+
}, "required", "stripe" | "last_synced_at" | "stripe.object" | "stripe.id" | "stripe.description" | "stripe.metadata" | "stripe.created" | "stripe.livemode" | `stripe.metadata.${string}` | "stripe.customer" | "stripe.status" | "stripe.next_action" | `stripe.next_action.${string}` | "stripe.application" | "stripe.on_behalf_of" | "stripe.payment_method" | "stripe.client_secret" | "stripe.payment_method_configuration_details" | "stripe.payment_method_options" | "stripe.payment_method_types" | `stripe.payment_method_options.${string}` | "stripe.automatic_payment_methods" | "stripe.cancellation_reason" | "stripe.payment_method_configuration_details.id" | "stripe.payment_method_configuration_details.parent" | "stripe.automatic_payment_methods.enabled" | "stripe.automatic_payment_methods.allow_redirects" | "setupIntentId" | "stripe.last_setup_error" | "stripe.usage" | "stripe.attach_to_self" | "stripe.flow_directions" | "stripe.latest_attempt" | "stripe.mandate" | "stripe.single_use_mandate" | `stripe.last_setup_error.${string}`>, {
|
|
5181
5181
|
bySetupIntentId: ["setupIntentId", "_creationTime"];
|
|
5182
5182
|
}, {}, {}>;
|
|
5183
5183
|
stripe_credit_notes: import('convex/server').TableDefinition<import('convex/values').VObject<{
|
|
@@ -5560,7 +5560,7 @@ declare const stripeSchema: import('convex/server').SchemaDefinition<{
|
|
|
5560
5560
|
transfer_group: import('convex/values').VAny<any, "required", string>;
|
|
5561
5561
|
}, "required", "object" | "id" | "amount" | "balance_transaction" | "billing_details" | "currency" | "customer" | "description" | "disputed" | "metadata" | "payment_intent" | "payment_method_details" | "receipt_email" | "refunded" | "shipping" | "statement_descriptor" | "statement_descriptor_suffix" | "status" | "amount_captured" | "amount_refunded" | "application" | "application_fee" | "application_fee_amount" | "calculated_statement_descriptor" | "captured" | "created" | "failure_balance_transaction" | "failure_code" | "failure_message" | "fraud_details" | "livemode" | "on_behalf_of" | "outcome" | "paid" | "payment_method" | "presentment_details" | "radar_options" | "receipt_number" | "receipt_url" | "refunds" | "review" | "source_transfer" | "transfer" | "transfer_data" | "transfer_group" | "billing_details.address" | "billing_details.email" | "billing_details.name" | "billing_details.phone" | "billing_details.tax_id" | "billing_details.address.city" | "billing_details.address.country" | "billing_details.address.line1" | "billing_details.address.line2" | "billing_details.address.postal_code" | "billing_details.address.state" | `metadata.${string}` | `payment_method_details.${string}` | `shipping.${string}` | `fraud_details.${string}` | `outcome.${string}` | `presentment_details.${string}` | `radar_options.${string}` | `refunds.${string}` | `transfer_data.${string}` | `transfer_group.${string}`>;
|
|
5562
5562
|
last_synced_at: import('convex/values').VFloat64<number, "required">;
|
|
5563
|
-
}, "required", "stripe" | "last_synced_at" | "stripe.object" | "stripe.id" | "stripe.description" | "stripe.metadata" | "stripe.statement_descriptor" | "stripe.created" | "stripe.livemode" | `stripe.metadata.${string}` | "stripe.currency" | "stripe.shipping" | "stripe.customer" | "stripe.amount" | "stripe.balance_transaction" | "stripe.status" | "stripe.application_fee_amount" | "stripe.failure_balance_transaction" | "stripe.failure_code" | "stripe.failure_message" | "stripe.payment_intent" | "stripe.receipt_number" | "stripe.receipt_email" | "stripe.statement_descriptor_suffix" | "stripe.application" | "stripe.on_behalf_of" | "stripe.payment_method" | "stripe.presentment_details" | "stripe.review" | "stripe.transfer_data" | "stripe.transfer_group" | `stripe.shipping.${string}` | `stripe.presentment_details.${string}` | `stripe.transfer_data.${string}` | "stripe.payment_method_details" | `stripe.payment_method_details.${string}` | "stripe.refunds" | "chargeId" | "stripe.billing_details" | "stripe.disputed" | "stripe.refunded" | "stripe.amount_captured" | "stripe.amount_refunded" | "stripe.
|
|
5563
|
+
}, "required", "stripe" | "last_synced_at" | "stripe.object" | "stripe.id" | "stripe.description" | "stripe.metadata" | "stripe.statement_descriptor" | "stripe.created" | "stripe.livemode" | `stripe.metadata.${string}` | "stripe.currency" | "stripe.shipping" | "stripe.customer" | "stripe.amount" | "stripe.balance_transaction" | "stripe.status" | "stripe.application_fee" | "stripe.application_fee_amount" | "stripe.failure_balance_transaction" | "stripe.failure_code" | "stripe.failure_message" | "stripe.payment_intent" | "stripe.receipt_number" | "stripe.receipt_email" | "stripe.statement_descriptor_suffix" | "stripe.application" | "stripe.on_behalf_of" | "stripe.payment_method" | "stripe.presentment_details" | "stripe.review" | "stripe.transfer_data" | "stripe.transfer_group" | `stripe.shipping.${string}` | `stripe.presentment_details.${string}` | `stripe.transfer_data.${string}` | "stripe.payment_method_details" | `stripe.payment_method_details.${string}` | "stripe.refunds" | "chargeId" | "stripe.billing_details" | "stripe.disputed" | "stripe.refunded" | "stripe.amount_captured" | "stripe.amount_refunded" | "stripe.calculated_statement_descriptor" | "stripe.captured" | "stripe.fraud_details" | "stripe.outcome" | "stripe.paid" | "stripe.radar_options" | "stripe.receipt_url" | "stripe.source_transfer" | "stripe.transfer" | "stripe.billing_details.address" | "stripe.billing_details.email" | "stripe.billing_details.name" | "stripe.billing_details.phone" | "stripe.billing_details.tax_id" | "stripe.billing_details.address.city" | "stripe.billing_details.address.country" | "stripe.billing_details.address.line1" | "stripe.billing_details.address.line2" | "stripe.billing_details.address.postal_code" | "stripe.billing_details.address.state" | `stripe.fraud_details.${string}` | `stripe.outcome.${string}` | `stripe.radar_options.${string}` | `stripe.refunds.${string}` | `stripe.transfer_group.${string}`>, {
|
|
5564
5564
|
byChargeId: ["chargeId", "_creationTime"];
|
|
5565
5565
|
}, {}, {}>;
|
|
5566
5566
|
stripe_payment_methods: import('convex/server').TableDefinition<import('convex/values').VObject<{
|
|
@@ -73,7 +73,7 @@ export declare const InvoiceStripeToConvex: (invoice: Stripe.Invoice & {
|
|
|
73
73
|
attempt_count: number;
|
|
74
74
|
attempted: boolean;
|
|
75
75
|
billing_reason: "subscription" | "automatic_pending_invoice_item_invoice" | "manual" | "quote_accept" | "subscription_create" | "subscription_cycle" | "subscription_threshold" | "subscription_update" | "upcoming" | null;
|
|
76
|
-
customer_tax_exempt: "reverse" | "
|
|
76
|
+
customer_tax_exempt: "reverse" | "none" | "exempt" | null;
|
|
77
77
|
default_tax_rates: any[];
|
|
78
78
|
post_payment_credit_notes_amount: number;
|
|
79
79
|
pre_payment_credit_notes_amount: number;
|
|
@@ -117,7 +117,7 @@ export declare const InvoiceSchema: {
|
|
|
117
117
|
customer_name: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
118
118
|
customer_phone: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
119
119
|
customer_shipping: import('convex/values').VAny<any, "optional", string>;
|
|
120
|
-
customer_tax_exempt: import('convex/values').VUnion<"reverse" | "
|
|
120
|
+
customer_tax_exempt: import('convex/values').VUnion<"reverse" | "none" | "exempt" | null, [import('convex/values').VLiteral<"exempt", "required">, import('convex/values').VLiteral<"none", "required">, import('convex/values').VLiteral<"reverse", "required">, import('convex/values').VNull<null, "required">], "required", never>;
|
|
121
121
|
customer_tax_ids: import('convex/values').VUnion<any[] | null | undefined, [import('convex/values').VArray<any[], import('convex/values').VAny<any, "required", string>, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
122
122
|
default_payment_method: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
123
123
|
default_source: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
@@ -229,7 +229,7 @@ export declare const InvoiceObject: import('convex/values').VObject<{
|
|
|
229
229
|
attempt_count: number;
|
|
230
230
|
attempted: boolean;
|
|
231
231
|
billing_reason: "subscription" | "automatic_pending_invoice_item_invoice" | "manual" | "quote_accept" | "subscription_create" | "subscription_cycle" | "subscription_threshold" | "subscription_update" | "upcoming" | null;
|
|
232
|
-
customer_tax_exempt: "reverse" | "
|
|
232
|
+
customer_tax_exempt: "reverse" | "none" | "exempt" | null;
|
|
233
233
|
default_tax_rates: any[];
|
|
234
234
|
post_payment_credit_notes_amount: number;
|
|
235
235
|
pre_payment_credit_notes_amount: number;
|
|
@@ -272,7 +272,7 @@ export declare const InvoiceObject: import('convex/values').VObject<{
|
|
|
272
272
|
customer_name: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
273
273
|
customer_phone: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
274
274
|
customer_shipping: import('convex/values').VAny<any, "optional", string>;
|
|
275
|
-
customer_tax_exempt: import('convex/values').VUnion<"reverse" | "
|
|
275
|
+
customer_tax_exempt: import('convex/values').VUnion<"reverse" | "none" | "exempt" | null, [import('convex/values').VLiteral<"exempt", "required">, import('convex/values').VLiteral<"none", "required">, import('convex/values').VLiteral<"reverse", "required">, import('convex/values').VNull<null, "required">], "required", never>;
|
|
276
276
|
customer_tax_ids: import('convex/values').VUnion<any[] | null | undefined, [import('convex/values').VArray<any[], import('convex/values').VAny<any, "required", string>, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
277
277
|
default_payment_method: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
278
278
|
default_source: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
@@ -13,7 +13,7 @@ export declare const PaymentIntentSchema: {
|
|
|
13
13
|
}, {
|
|
14
14
|
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>;
|
|
15
15
|
enabled: import('convex/values').VBoolean<boolean, "required">;
|
|
16
|
-
}, "required", "
|
|
16
|
+
}, "required", "enabled" | "allow_redirects">, import('convex/values').VNull<null, "required">], "optional", "enabled" | "allow_redirects">;
|
|
17
17
|
client_secret: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
18
18
|
currency: import('convex/values').VUnion<string | null, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "required", never>;
|
|
19
19
|
customer: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
@@ -200,7 +200,7 @@ export declare const PaymentIntentObject: import('convex/values').VObject<{
|
|
|
200
200
|
}, {
|
|
201
201
|
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>;
|
|
202
202
|
enabled: import('convex/values').VBoolean<boolean, "required">;
|
|
203
|
-
}, "required", "
|
|
203
|
+
}, "required", "enabled" | "allow_redirects">, import('convex/values').VNull<null, "required">], "optional", "enabled" | "allow_redirects">;
|
|
204
204
|
client_secret: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
205
205
|
currency: import('convex/values').VUnion<string | null, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "required", never>;
|
|
206
206
|
customer: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
@@ -308,4 +308,4 @@ export declare const PaymentIntentObject: import('convex/values').VObject<{
|
|
|
308
308
|
review: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
309
309
|
transfer_data: import('convex/values').VAny<any, "optional", string>;
|
|
310
310
|
transfer_group: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
311
|
-
}, "required", "object" | "id" | "amount" | "currency" | "customer" | "description" | "metadata" | "receipt_email" | "shipping" | "statement_descriptor" | "statement_descriptor_suffix" | "status" | "application" | "application_fee_amount" | "created" | "livemode" | "on_behalf_of" | "payment_method" | "presentment_details" | "review" | "transfer_data" | "transfer_group" | `metadata.${string}` | `shipping.${string}` | `presentment_details.${string}` | `transfer_data.${string}` | "client_secret" | "payment_method_configuration_details" | "payment_method_options" | "payment_method_types" | `payment_method_options.${string}` | "last_payment_error" | "latest_charge" | "processing" | "automatic_payment_methods" | "next_action" | "setup_future_usage" | "amount_capturable" | "amount_details" | "amount_received" | "canceled_at" | "cancellation_reason" | "capture_method" | "confirmation_method" | "excluded_payment_method_types" | "payment_method_configuration_details.id" | "payment_method_configuration_details.parent" | "last_payment_error.type" | "last_payment_error.payment_method" | "last_payment_error.charge" | "last_payment_error.advice_code" | "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.
|
|
311
|
+
}, "required", "object" | "id" | "amount" | "currency" | "customer" | "description" | "metadata" | "receipt_email" | "shipping" | "statement_descriptor" | "statement_descriptor_suffix" | "status" | "application" | "application_fee_amount" | "created" | "livemode" | "on_behalf_of" | "payment_method" | "presentment_details" | "review" | "transfer_data" | "transfer_group" | `metadata.${string}` | `shipping.${string}` | `presentment_details.${string}` | `transfer_data.${string}` | "client_secret" | "payment_method_configuration_details" | "payment_method_options" | "payment_method_types" | `payment_method_options.${string}` | "last_payment_error" | "latest_charge" | "processing" | "automatic_payment_methods" | "next_action" | "setup_future_usage" | "amount_capturable" | "amount_details" | "amount_received" | "canceled_at" | "cancellation_reason" | "capture_method" | "confirmation_method" | "excluded_payment_method_types" | "payment_method_configuration_details.id" | "payment_method_configuration_details.parent" | "last_payment_error.type" | "last_payment_error.payment_method" | "last_payment_error.charge" | "last_payment_error.advice_code" | "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.enabled" | "automatic_payment_methods.allow_redirects" | `next_action.${string}` | "amount_details.tip" | "amount_details.tip.amount">;
|
|
@@ -5,15 +5,15 @@ export declare const PayoutStripeToConvex: (payout: Stripe.Payout) => {
|
|
|
5
5
|
description?: string | null | undefined;
|
|
6
6
|
metadata?: Record<string, string | number | null> | null | undefined;
|
|
7
7
|
statement_descriptor?: string | null | undefined;
|
|
8
|
+
application_fee?: string | null | undefined;
|
|
8
9
|
application_fee_amount?: number | null | undefined;
|
|
9
10
|
failure_balance_transaction?: string | null | undefined;
|
|
10
11
|
failure_code?: string | null | undefined;
|
|
11
12
|
failure_message?: string | null | undefined;
|
|
12
|
-
application_only?: string | null | undefined;
|
|
13
13
|
destination?: string | null | undefined;
|
|
14
14
|
original_payout?: string | null | undefined;
|
|
15
15
|
payout_method?: string | null | undefined;
|
|
16
|
-
reconciliation_status?: "completed" | "in_progress" | "not_applicable" | undefined;
|
|
16
|
+
reconciliation_status?: "completed" | "in_progress" | "not_applicable" | null | undefined;
|
|
17
17
|
reversed_by?: string | null | undefined;
|
|
18
18
|
trace_id?: {
|
|
19
19
|
value?: string | null | undefined;
|
|
@@ -41,7 +41,7 @@ export declare const PayoutSchema: {
|
|
|
41
41
|
statement_descriptor: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
42
42
|
status: import('convex/values').VString<string, "required">;
|
|
43
43
|
object: import('convex/values').VString<string, "required">;
|
|
44
|
-
|
|
44
|
+
application_fee: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
45
45
|
application_fee_amount: import('convex/values').VUnion<number | null | undefined, [import('convex/values').VFloat64<number, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
46
46
|
automatic: import('convex/values').VBoolean<boolean, "required">;
|
|
47
47
|
balance_transaction: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
@@ -54,7 +54,7 @@ export declare const PayoutSchema: {
|
|
|
54
54
|
method: import('convex/values').VString<string, "required">;
|
|
55
55
|
original_payout: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
56
56
|
payout_method: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
57
|
-
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>;
|
|
57
|
+
reconciliation_status: import('convex/values').VUnion<"completed" | "in_progress" | "not_applicable" | null | undefined, [import('convex/values').VLiteral<"completed", "required">, import('convex/values').VLiteral<"in_progress", "required">, import('convex/values').VLiteral<"not_applicable", "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
58
58
|
reversed_by: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
59
59
|
source_type: import('convex/values').VString<string, "required">;
|
|
60
60
|
trace_id: import('convex/values').VUnion<{
|
|
@@ -75,15 +75,15 @@ export declare const PayoutObject: import('convex/values').VObject<{
|
|
|
75
75
|
description?: string | null | undefined;
|
|
76
76
|
metadata?: Record<string, string | number | null> | null | undefined;
|
|
77
77
|
statement_descriptor?: string | null | undefined;
|
|
78
|
+
application_fee?: string | null | undefined;
|
|
78
79
|
application_fee_amount?: number | null | undefined;
|
|
79
80
|
failure_balance_transaction?: string | null | undefined;
|
|
80
81
|
failure_code?: string | null | undefined;
|
|
81
82
|
failure_message?: string | null | undefined;
|
|
82
|
-
application_only?: string | null | undefined;
|
|
83
83
|
destination?: string | null | undefined;
|
|
84
84
|
original_payout?: string | null | undefined;
|
|
85
85
|
payout_method?: string | null | undefined;
|
|
86
|
-
reconciliation_status?: "completed" | "in_progress" | "not_applicable" | undefined;
|
|
86
|
+
reconciliation_status?: "completed" | "in_progress" | "not_applicable" | null | undefined;
|
|
87
87
|
reversed_by?: string | null | undefined;
|
|
88
88
|
trace_id?: {
|
|
89
89
|
value?: string | null | undefined;
|
|
@@ -110,7 +110,7 @@ export declare const PayoutObject: import('convex/values').VObject<{
|
|
|
110
110
|
statement_descriptor: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
111
111
|
status: import('convex/values').VString<string, "required">;
|
|
112
112
|
object: import('convex/values').VString<string, "required">;
|
|
113
|
-
|
|
113
|
+
application_fee: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
114
114
|
application_fee_amount: import('convex/values').VUnion<number | null | undefined, [import('convex/values').VFloat64<number, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
115
115
|
automatic: import('convex/values').VBoolean<boolean, "required">;
|
|
116
116
|
balance_transaction: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
@@ -123,7 +123,7 @@ export declare const PayoutObject: import('convex/values').VObject<{
|
|
|
123
123
|
method: import('convex/values').VString<string, "required">;
|
|
124
124
|
original_payout: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
125
125
|
payout_method: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
126
|
-
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>;
|
|
126
|
+
reconciliation_status: import('convex/values').VUnion<"completed" | "in_progress" | "not_applicable" | null | undefined, [import('convex/values').VLiteral<"completed", "required">, import('convex/values').VLiteral<"in_progress", "required">, import('convex/values').VLiteral<"not_applicable", "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
127
127
|
reversed_by: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
128
128
|
source_type: import('convex/values').VString<string, "required">;
|
|
129
129
|
trace_id: import('convex/values').VUnion<{
|
|
@@ -137,4 +137,4 @@ export declare const PayoutObject: import('convex/values').VObject<{
|
|
|
137
137
|
value: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
138
138
|
}, "required", "status" | "value">], "optional", "status" | "value">;
|
|
139
139
|
type: import('convex/values').VUnion<"card" | "bank_account", [import('convex/values').VLiteral<"bank_account", "required">, import('convex/values').VLiteral<"card", "required">], "required", never>;
|
|
140
|
-
}, "required", "object" | "type" | "id" | "amount" | "balance_transaction" | "currency" | "description" | "metadata" | "statement_descriptor" | "status" | "application_fee_amount" | "created" | "failure_balance_transaction" | "failure_code" | "failure_message" | "livemode" | `metadata.${string}` | "automatic" | "arrival_date" | "
|
|
140
|
+
}, "required", "object" | "type" | "id" | "amount" | "balance_transaction" | "currency" | "description" | "metadata" | "statement_descriptor" | "status" | "application_fee" | "application_fee_amount" | "created" | "failure_balance_transaction" | "failure_code" | "failure_message" | "livemode" | `metadata.${string}` | "automatic" | "arrival_date" | "destination" | "method" | "original_payout" | "payout_method" | "reconciliation_status" | "reversed_by" | "source_type" | "trace_id" | "trace_id.status" | "trace_id.value">;
|
|
@@ -12,8 +12,8 @@ export declare const SetupIntentStripeToConvex: (setupIntent: Stripe.SetupIntent
|
|
|
12
12
|
id: string;
|
|
13
13
|
} | null | undefined;
|
|
14
14
|
automatic_payment_methods?: {
|
|
15
|
-
allow_redirects?: "always" | "never" | null | undefined;
|
|
16
15
|
enabled?: boolean | null | undefined;
|
|
16
|
+
allow_redirects?: "always" | "never" | null | undefined;
|
|
17
17
|
} | null | undefined;
|
|
18
18
|
cancellation_reason?: "duplicate" | "abandoned" | "requested_by_customer" | null | undefined;
|
|
19
19
|
attach_to_self?: boolean | null | undefined;
|
|
@@ -35,15 +35,15 @@ export declare const SetupIntentStripeToConvex: (setupIntent: Stripe.SetupIntent
|
|
|
35
35
|
export declare const SetupIntentSchema: {
|
|
36
36
|
id: import('convex/values').VString<string, "required">;
|
|
37
37
|
automatic_payment_methods: import('convex/values').VUnion<{
|
|
38
|
-
allow_redirects?: "always" | "never" | null | undefined;
|
|
39
38
|
enabled?: boolean | null | undefined;
|
|
40
|
-
} | null | undefined, [import('convex/values').VObject<{
|
|
41
39
|
allow_redirects?: "always" | "never" | null | undefined;
|
|
40
|
+
} | null | undefined, [import('convex/values').VObject<{
|
|
42
41
|
enabled?: boolean | null | undefined;
|
|
42
|
+
allow_redirects?: "always" | "never" | null | undefined;
|
|
43
43
|
}, {
|
|
44
44
|
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>;
|
|
45
45
|
enabled: import('convex/values').VUnion<boolean | null | undefined, [import('convex/values').VBoolean<boolean, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
46
|
-
}, "required", "
|
|
46
|
+
}, "required", "enabled" | "allow_redirects">, import('convex/values').VNull<null, "required">], "optional", "enabled" | "allow_redirects">;
|
|
47
47
|
client_secret: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
48
48
|
customer: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
49
49
|
description: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
@@ -90,8 +90,8 @@ export declare const SetupIntentObject: import('convex/values').VObject<{
|
|
|
90
90
|
id: string;
|
|
91
91
|
} | null | undefined;
|
|
92
92
|
automatic_payment_methods?: {
|
|
93
|
-
allow_redirects?: "always" | "never" | null | undefined;
|
|
94
93
|
enabled?: boolean | null | undefined;
|
|
94
|
+
allow_redirects?: "always" | "never" | null | undefined;
|
|
95
95
|
} | null | undefined;
|
|
96
96
|
cancellation_reason?: "duplicate" | "abandoned" | "requested_by_customer" | null | undefined;
|
|
97
97
|
attach_to_self?: boolean | null | undefined;
|
|
@@ -112,15 +112,15 @@ export declare const SetupIntentObject: import('convex/values').VObject<{
|
|
|
112
112
|
}, {
|
|
113
113
|
id: import('convex/values').VString<string, "required">;
|
|
114
114
|
automatic_payment_methods: import('convex/values').VUnion<{
|
|
115
|
-
allow_redirects?: "always" | "never" | null | undefined;
|
|
116
115
|
enabled?: boolean | null | undefined;
|
|
117
|
-
} | null | undefined, [import('convex/values').VObject<{
|
|
118
116
|
allow_redirects?: "always" | "never" | null | undefined;
|
|
117
|
+
} | null | undefined, [import('convex/values').VObject<{
|
|
119
118
|
enabled?: boolean | null | undefined;
|
|
119
|
+
allow_redirects?: "always" | "never" | null | undefined;
|
|
120
120
|
}, {
|
|
121
121
|
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>;
|
|
122
122
|
enabled: import('convex/values').VUnion<boolean | null | undefined, [import('convex/values').VBoolean<boolean, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
123
|
-
}, "required", "
|
|
123
|
+
}, "required", "enabled" | "allow_redirects">, import('convex/values').VNull<null, "required">], "optional", "enabled" | "allow_redirects">;
|
|
124
124
|
client_secret: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
125
125
|
customer: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
126
126
|
description: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
@@ -153,4 +153,4 @@ export declare const SetupIntentObject: import('convex/values').VObject<{
|
|
|
153
153
|
payment_method_options: import('convex/values').VAny<any, "required", string>;
|
|
154
154
|
payment_method_types: import('convex/values').VArray<string[], import('convex/values').VString<string, "required">, "required">;
|
|
155
155
|
single_use_mandate: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
156
|
-
}, "required", "object" | "id" | "customer" | "description" | "metadata" | "status" | "application" | "created" | "livemode" | "on_behalf_of" | "payment_method" | `metadata.${string}` | "client_secret" | "payment_method_configuration_details" | "payment_method_options" | "payment_method_types" | `payment_method_options.${string}` | "automatic_payment_methods" | "next_action" | "cancellation_reason" | "payment_method_configuration_details.id" | "payment_method_configuration_details.parent" | "automatic_payment_methods.
|
|
156
|
+
}, "required", "object" | "id" | "customer" | "description" | "metadata" | "status" | "application" | "created" | "livemode" | "on_behalf_of" | "payment_method" | `metadata.${string}` | "client_secret" | "payment_method_configuration_details" | "payment_method_options" | "payment_method_types" | `payment_method_options.${string}` | "automatic_payment_methods" | "next_action" | "cancellation_reason" | "payment_method_configuration_details.id" | "payment_method_configuration_details.parent" | "automatic_payment_methods.enabled" | "automatic_payment_methods.allow_redirects" | `next_action.${string}` | "last_setup_error" | "usage" | "attach_to_self" | "flow_directions" | "latest_attempt" | "mandate" | "single_use_mandate" | `last_setup_error.${string}`>;
|
|
@@ -156,7 +156,7 @@ export declare const StoreImplementation: {
|
|
|
156
156
|
preferred_locales?: string[] | null | undefined;
|
|
157
157
|
sources?: any;
|
|
158
158
|
subscriptions?: any;
|
|
159
|
-
tax_exempt?: "reverse" | "
|
|
159
|
+
tax_exempt?: "reverse" | "none" | "exempt" | null | undefined;
|
|
160
160
|
tax_ids?: any;
|
|
161
161
|
test_clock?: string | null | undefined;
|
|
162
162
|
object: string;
|
|
@@ -261,15 +261,15 @@ export declare const StoreImplementation: {
|
|
|
261
261
|
description?: string | null | undefined;
|
|
262
262
|
metadata?: Record<string, string | number | null> | null | undefined;
|
|
263
263
|
statement_descriptor?: string | null | undefined;
|
|
264
|
+
application_fee?: string | null | undefined;
|
|
264
265
|
application_fee_amount?: number | null | undefined;
|
|
265
266
|
failure_balance_transaction?: string | null | undefined;
|
|
266
267
|
failure_code?: string | null | undefined;
|
|
267
268
|
failure_message?: string | null | undefined;
|
|
268
|
-
application_only?: string | null | undefined;
|
|
269
269
|
destination?: string | null | undefined;
|
|
270
270
|
original_payout?: string | null | undefined;
|
|
271
271
|
payout_method?: string | null | undefined;
|
|
272
|
-
reconciliation_status?: "completed" | "in_progress" | "not_applicable" | undefined;
|
|
272
|
+
reconciliation_status?: "completed" | "in_progress" | "not_applicable" | null | undefined;
|
|
273
273
|
reversed_by?: string | null | undefined;
|
|
274
274
|
trace_id?: {
|
|
275
275
|
value?: string | null | undefined;
|
|
@@ -533,7 +533,7 @@ export declare const StoreImplementation: {
|
|
|
533
533
|
attempt_count: number;
|
|
534
534
|
attempted: boolean;
|
|
535
535
|
billing_reason: "subscription" | "automatic_pending_invoice_item_invoice" | "manual" | "quote_accept" | "subscription_create" | "subscription_cycle" | "subscription_threshold" | "subscription_update" | "upcoming" | null;
|
|
536
|
-
customer_tax_exempt: "reverse" | "
|
|
536
|
+
customer_tax_exempt: "reverse" | "none" | "exempt" | null;
|
|
537
537
|
default_tax_rates: any[];
|
|
538
538
|
post_payment_credit_notes_amount: number;
|
|
539
539
|
pre_payment_credit_notes_amount: number;
|
|
@@ -684,8 +684,8 @@ export declare const StoreImplementation: {
|
|
|
684
684
|
id: string;
|
|
685
685
|
} | null | undefined;
|
|
686
686
|
automatic_payment_methods?: {
|
|
687
|
-
allow_redirects?: "always" | "never" | null | undefined;
|
|
688
687
|
enabled?: boolean | null | undefined;
|
|
688
|
+
allow_redirects?: "always" | "never" | null | undefined;
|
|
689
689
|
} | null | undefined;
|
|
690
690
|
cancellation_reason?: "duplicate" | "abandoned" | "requested_by_customer" | null | undefined;
|
|
691
691
|
attach_to_self?: boolean | null | undefined;
|
package/dist/server.js
CHANGED
|
@@ -856,7 +856,7 @@ class ConvexError extends (_b = Error, _a = IDENTIFYING_FIELD, _b) {
|
|
|
856
856
|
this.data = data;
|
|
857
857
|
}
|
|
858
858
|
}
|
|
859
|
-
const version = "1.27.
|
|
859
|
+
const version = "1.27.1";
|
|
860
860
|
function performSyscall(op, arg) {
|
|
861
861
|
if (typeof Convex === "undefined" || Convex.syscall === void 0) {
|
|
862
862
|
throw new Error(
|
|
@@ -2779,7 +2779,66 @@ const buildRedirectImplementation = (configuration) => httpActionGeneric(async (
|
|
|
2779
2779
|
});
|
|
2780
2780
|
const CheckoutSessionStripeToConvex = (session) => {
|
|
2781
2781
|
const object = {
|
|
2782
|
-
|
|
2782
|
+
id: session.id,
|
|
2783
|
+
automatic_tax: session.automatic_tax,
|
|
2784
|
+
client_reference_id: session.client_reference_id || null,
|
|
2785
|
+
currency: session.currency || null,
|
|
2786
|
+
customer_email: session.customer_email || null,
|
|
2787
|
+
metadata: session.metadata,
|
|
2788
|
+
mode: session.mode,
|
|
2789
|
+
payment_status: session.payment_status,
|
|
2790
|
+
return_url: session.return_url || null,
|
|
2791
|
+
status: session.status || null,
|
|
2792
|
+
success_url: session.success_url || null,
|
|
2793
|
+
ui_mode: session.ui_mode || null,
|
|
2794
|
+
url: session.url || null,
|
|
2795
|
+
object: session.object,
|
|
2796
|
+
adaptive_pricing: session.adaptive_pricing || null,
|
|
2797
|
+
after_expiration: session.after_expiration || null,
|
|
2798
|
+
allow_promotion_codes: typeof session.allow_promotion_codes === "boolean" ? session.allow_promotion_codes : null,
|
|
2799
|
+
amount_subtotal: session.amount_subtotal ?? null,
|
|
2800
|
+
amount_total: session.amount_total ?? null,
|
|
2801
|
+
billing_address_collection: session.billing_address_collection || null,
|
|
2802
|
+
cancel_url: session.cancel_url || null,
|
|
2803
|
+
client_secret: session.client_secret || null,
|
|
2804
|
+
collected_information: session.collected_information || null,
|
|
2805
|
+
consent: session.consent || null,
|
|
2806
|
+
consent_collection: session.consent_collection || null,
|
|
2807
|
+
created: session.created,
|
|
2808
|
+
currency_conversion: session.currency_conversion || null,
|
|
2809
|
+
custom_fields: session.custom_fields || [],
|
|
2810
|
+
// custom_text: session.custom_text || null,
|
|
2811
|
+
custom_text: session.custom_text || {},
|
|
2812
|
+
customer_creation: session.customer_creation || null,
|
|
2813
|
+
customer_details: session.customer_details || null,
|
|
2814
|
+
discounts: session.discounts || null,
|
|
2815
|
+
expires_at: session.expires_at,
|
|
2816
|
+
invoice_creation: session.invoice_creation || null,
|
|
2817
|
+
livemode: session.livemode,
|
|
2818
|
+
locale: session.locale || null,
|
|
2819
|
+
optional_items: session.optional_items || null,
|
|
2820
|
+
origin_context: session.origin_context || null,
|
|
2821
|
+
payment_method_collection: session.payment_method_collection || null,
|
|
2822
|
+
payment_method_configuration_details: session.payment_method_configuration_details || null,
|
|
2823
|
+
payment_method_options: session.payment_method_options || null,
|
|
2824
|
+
payment_method_types: session.payment_method_types,
|
|
2825
|
+
permissions: session.permissions || null,
|
|
2826
|
+
phone_number_collection: session.phone_number_collection || null,
|
|
2827
|
+
presentment_details: session.presentment_details || null,
|
|
2828
|
+
recovered_from: session.recovered_from || null,
|
|
2829
|
+
redirect_on_completion: session.redirect_on_completion || null,
|
|
2830
|
+
saved_payment_method_options: session.saved_payment_method_options || null,
|
|
2831
|
+
shipping_address_collection: session.shipping_address_collection || null,
|
|
2832
|
+
shipping_cost: session.shipping_cost || null,
|
|
2833
|
+
shipping_options: session.shipping_options || [],
|
|
2834
|
+
submit_type: session.submit_type || null,
|
|
2835
|
+
tax_id_collection: session.tax_id_collection || null,
|
|
2836
|
+
total_details: session.total_details || null,
|
|
2837
|
+
wallet_options: session.wallet_options || null,
|
|
2838
|
+
// References
|
|
2839
|
+
// Some of these can be expanded objects or just IDs, we store only the ID in Convex
|
|
2840
|
+
// see https://stripe.com/docs/api/checkout/sessions/object#checkout_session_object-customer
|
|
2841
|
+
// for more details
|
|
2783
2842
|
subscription: typeof session.subscription === "string" ? session.subscription : session.subscription?.id || null,
|
|
2784
2843
|
customer: typeof session.customer === "string" ? session.customer : session.customer?.id || null,
|
|
2785
2844
|
line_items: Array.isArray(session.line_items) ? session.line_items : session.line_items?.data || null,
|
|
@@ -3950,8 +4009,25 @@ const __vite_glob_0_1$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.d
|
|
|
3950
4009
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
3951
4010
|
const CouponStripeToConvex = (coupon) => {
|
|
3952
4011
|
const object = {
|
|
3953
|
-
|
|
3954
|
-
|
|
4012
|
+
id: coupon.id,
|
|
4013
|
+
amount_off: coupon.amount_off ?? null,
|
|
4014
|
+
currency: coupon.currency ?? null,
|
|
4015
|
+
duration: coupon.duration,
|
|
4016
|
+
metadata: coupon.metadata,
|
|
4017
|
+
name: coupon.name ?? null,
|
|
4018
|
+
percent_off: coupon.percent_off ?? null,
|
|
4019
|
+
object: coupon.object,
|
|
4020
|
+
applies_to: coupon.applies_to ? {
|
|
4021
|
+
products: coupon.applies_to.products
|
|
4022
|
+
} : null,
|
|
4023
|
+
created: coupon.created,
|
|
4024
|
+
currency_options: coupon.currency_options ?? null,
|
|
4025
|
+
duration_in_months: coupon.duration_in_months ?? null,
|
|
4026
|
+
livemode: coupon.livemode,
|
|
4027
|
+
max_redemptions: coupon.max_redemptions ?? null,
|
|
4028
|
+
redeem_by: coupon.redeem_by ?? null,
|
|
4029
|
+
times_redeemed: coupon.times_redeemed,
|
|
4030
|
+
valid: coupon.valid
|
|
3955
4031
|
};
|
|
3956
4032
|
return object;
|
|
3957
4033
|
};
|
|
@@ -4243,7 +4319,39 @@ const __vite_glob_0_3$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.d
|
|
|
4243
4319
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4244
4320
|
const CustomerStripeToConvex = (customer) => {
|
|
4245
4321
|
const object = {
|
|
4246
|
-
|
|
4322
|
+
id: customer.id,
|
|
4323
|
+
address: customer.address ? {
|
|
4324
|
+
city: customer.address.city ?? null,
|
|
4325
|
+
country: customer.address.country ?? null,
|
|
4326
|
+
line1: customer.address.line1 ?? null,
|
|
4327
|
+
line2: customer.address.line2 ?? null,
|
|
4328
|
+
postal_code: customer.address.postal_code ?? null,
|
|
4329
|
+
state: customer.address.state ?? null
|
|
4330
|
+
} : null,
|
|
4331
|
+
description: customer.description ?? null,
|
|
4332
|
+
email: customer.email ?? null,
|
|
4333
|
+
metadata: customer.metadata,
|
|
4334
|
+
name: customer.name ?? null,
|
|
4335
|
+
phone: customer.phone ?? null,
|
|
4336
|
+
shipping: customer.shipping,
|
|
4337
|
+
tax: customer.tax,
|
|
4338
|
+
object: customer.object,
|
|
4339
|
+
balance: customer.balance,
|
|
4340
|
+
cash_balance: customer.cash_balance ?? null,
|
|
4341
|
+
created: customer.created,
|
|
4342
|
+
currency: customer.currency ?? null,
|
|
4343
|
+
delinquent: typeof customer.delinquent === "boolean" ? customer.delinquent : null,
|
|
4344
|
+
discount: customer.discount ?? null,
|
|
4345
|
+
invoice_credit_balance: customer.invoice_credit_balance,
|
|
4346
|
+
invoice_prefix: customer.invoice_prefix ?? null,
|
|
4347
|
+
invoice_settings: customer.invoice_settings ?? {},
|
|
4348
|
+
livemode: customer.livemode,
|
|
4349
|
+
next_invoice_sequence: customer.next_invoice_sequence ?? null,
|
|
4350
|
+
preferred_locales: customer.preferred_locales ?? null,
|
|
4351
|
+
sources: customer.sources ?? null,
|
|
4352
|
+
subscriptions: customer.subscriptions ?? null,
|
|
4353
|
+
tax_exempt: customer.tax_exempt === "exempt" || customer.tax_exempt === "none" || customer.tax_exempt === "reverse" ? customer.tax_exempt : null,
|
|
4354
|
+
tax_ids: customer.tax_ids ?? null,
|
|
4247
4355
|
default_source: typeof customer.default_source === "string" ? customer.default_source : customer.default_source?.id,
|
|
4248
4356
|
test_clock: typeof customer.test_clock === "string" ? customer.test_clock : customer.test_clock?.id
|
|
4249
4357
|
};
|
|
@@ -5421,7 +5529,26 @@ const __vite_glob_0_9$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.d
|
|
|
5421
5529
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
5422
5530
|
const PayoutStripeToConvex = (payout) => {
|
|
5423
5531
|
const object = {
|
|
5424
|
-
|
|
5532
|
+
id: payout.id,
|
|
5533
|
+
amount: payout.amount,
|
|
5534
|
+
arrival_date: payout.arrival_date,
|
|
5535
|
+
application_fee: typeof payout.application_fee === "string" ? payout.application_fee : payout.application_fee?.id || null,
|
|
5536
|
+
application_fee_amount: payout.application_fee_amount ?? null,
|
|
5537
|
+
automatic: payout.automatic,
|
|
5538
|
+
created: payout.created,
|
|
5539
|
+
description: payout.description ?? null,
|
|
5540
|
+
failure_code: payout.failure_code ?? null,
|
|
5541
|
+
failure_message: payout.failure_message ?? null,
|
|
5542
|
+
livemode: payout.livemode,
|
|
5543
|
+
metadata: payout.metadata,
|
|
5544
|
+
method: payout.method,
|
|
5545
|
+
object: payout.object,
|
|
5546
|
+
payout_method: payout.payout_method ?? null,
|
|
5547
|
+
reconciliation_status: payout.reconciliation_status,
|
|
5548
|
+
source_type: payout.source_type,
|
|
5549
|
+
status: payout.status,
|
|
5550
|
+
trace_id: payout.trace_id,
|
|
5551
|
+
type: payout.type,
|
|
5425
5552
|
original_payout: typeof payout.original_payout === "string" ? payout.original_payout : payout.original_payout?.id || null,
|
|
5426
5553
|
reversed_by: typeof payout.reversed_by === "string" ? payout.reversed_by : payout.reversed_by?.id || null,
|
|
5427
5554
|
destination: typeof payout.destination === "string" ? payout.destination : payout.destination?.id || null,
|
|
@@ -5442,7 +5569,7 @@ const PayoutSchema = {
|
|
|
5442
5569
|
statement_descriptor: v.optional(nullablestring()),
|
|
5443
5570
|
status: v.string(),
|
|
5444
5571
|
object: v.string(),
|
|
5445
|
-
|
|
5572
|
+
application_fee: v.optional(nullablestring()),
|
|
5446
5573
|
application_fee_amount: v.optional(nullablenumber()),
|
|
5447
5574
|
automatic: v.boolean(),
|
|
5448
5575
|
balance_transaction: v.optional(nullablestring()),
|
|
@@ -5481,7 +5608,8 @@ const PayoutSchema = {
|
|
|
5481
5608
|
v.union(
|
|
5482
5609
|
v.literal("completed"),
|
|
5483
5610
|
v.literal("in_progress"),
|
|
5484
|
-
v.literal("not_applicable")
|
|
5611
|
+
v.literal("not_applicable"),
|
|
5612
|
+
v.null()
|
|
5485
5613
|
)
|
|
5486
5614
|
),
|
|
5487
5615
|
reversed_by: v.optional(nullablestring()),
|
|
@@ -5920,12 +6048,19 @@ const __vite_glob_0_13$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.
|
|
|
5920
6048
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
5921
6049
|
const PromotionCodeStripeToConvex = (promotionCode) => {
|
|
5922
6050
|
const object = {
|
|
5923
|
-
|
|
6051
|
+
id: promotionCode.id,
|
|
6052
|
+
code: promotionCode.code,
|
|
6053
|
+
metadata: promotionCode.metadata,
|
|
6054
|
+
object: promotionCode.object,
|
|
6055
|
+
active: promotionCode.active,
|
|
6056
|
+
created: promotionCode.created,
|
|
6057
|
+
expires_at: promotionCode.expires_at ?? null,
|
|
6058
|
+
livemode: promotionCode.livemode,
|
|
6059
|
+
max_redemptions: promotionCode.max_redemptions ?? null,
|
|
6060
|
+
restrictions: promotionCode.restrictions,
|
|
6061
|
+
times_redeemed: promotionCode.times_redeemed,
|
|
5924
6062
|
customer: typeof promotionCode.customer === "string" ? promotionCode.customer : promotionCode.customer?.id || null,
|
|
5925
|
-
coupon:
|
|
5926
|
-
...promotionCode.coupon,
|
|
5927
|
-
currency: promotionCode.coupon.currency
|
|
5928
|
-
}
|
|
6063
|
+
coupon: promotionCode.coupon
|
|
5929
6064
|
};
|
|
5930
6065
|
return object;
|
|
5931
6066
|
};
|
|
@@ -6026,7 +6161,21 @@ const __vite_glob_0_14$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.
|
|
|
6026
6161
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
6027
6162
|
const RefundStripeToConvex = (refund) => {
|
|
6028
6163
|
const object = {
|
|
6029
|
-
|
|
6164
|
+
id: refund.id,
|
|
6165
|
+
amount: refund.amount,
|
|
6166
|
+
created: refund.created,
|
|
6167
|
+
currency: refund.currency,
|
|
6168
|
+
description: refund.description,
|
|
6169
|
+
failure_reason: refund.failure_reason,
|
|
6170
|
+
instructions_email: refund.instructions_email,
|
|
6171
|
+
metadata: refund.metadata,
|
|
6172
|
+
next_action: refund.next_action,
|
|
6173
|
+
object: refund.object,
|
|
6174
|
+
pending_reason: refund.pending_reason,
|
|
6175
|
+
receipt_number: refund.receipt_number,
|
|
6176
|
+
reason: refund.reason,
|
|
6177
|
+
status: refund.status,
|
|
6178
|
+
destination_details: refund.destination_details,
|
|
6030
6179
|
charge: typeof refund.charge === "string" ? refund.charge : refund.charge?.id,
|
|
6031
6180
|
balance_transaction: typeof refund.balance_transaction === "string" ? refund.balance_transaction : refund.balance_transaction?.id || null,
|
|
6032
6181
|
failure_balance_transaction: typeof refund.failure_balance_transaction === "string" ? refund.failure_balance_transaction : refund.failure_balance_transaction?.id || null,
|