@raideno/convex-stripe 0.1.0 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +0 -2
- package/dist/index.js +1 -0
- package/dist/server/actions/index.d.ts +4 -0
- package/dist/server/actions/pay.d.ts +579 -0
- package/dist/server/actions/portal.d.ts +26 -0
- package/dist/server/actions/setup.d.ts +19 -0
- package/dist/server/actions/subscribe.d.ts +44 -0
- package/dist/server/helpers.d.ts +28 -0
- package/dist/server/index.d.ts +589 -0
- package/dist/server/logger.d.ts +8 -0
- package/dist/server/redirects/index.d.ts +47 -0
- package/dist/server/redirects/pay.d.ts +5 -0
- package/dist/server/redirects/portal.d.ts +3 -0
- package/dist/server/redirects/subscribe.d.ts +3 -0
- package/dist/server/redirects/types.d.ts +9 -0
- package/dist/server/schema/checkout-session.d.ts +256 -0
- package/dist/server/schema/coupon.d.ts +112 -0
- package/dist/server/schema/customer.d.ts +366 -0
- package/dist/server/schema/index.d.ts +3511 -0
- package/dist/server/schema/invoice.d.ts +314 -0
- package/dist/server/schema/payment-intent.d.ts +311 -0
- package/dist/server/schema/payout.d.ts +140 -0
- package/dist/server/schema/price.d.ts +148 -0
- package/dist/server/schema/product.d.ts +132 -0
- package/dist/server/schema/promotion-code.d.ts +266 -0
- package/dist/server/schema/refund.d.ts +92 -0
- package/dist/server/schema/review.d.ts +152 -0
- package/dist/server/schema/subscription.d.ts +4 -0
- package/dist/server/store/index.d.ts +582 -0
- package/dist/server/store/operations/delete-by-id.d.ts +3 -0
- package/dist/server/store/operations/index.d.ts +5 -0
- package/dist/server/store/operations/select-all.d.ts +3 -0
- package/dist/server/store/operations/select-by-id.d.ts +4 -0
- package/dist/server/store/operations/select-one.d.ts +3 -0
- package/dist/server/store/operations/upsert.d.ts +4 -0
- package/dist/server/store/types.d.ts +70 -0
- package/dist/server/sync/all.d.ts +5 -0
- package/dist/server/sync/checkouts-session.handler.d.ts +5 -0
- package/dist/server/sync/coupons.handler.d.ts +5 -0
- package/dist/server/sync/customers.handler.d.ts +5 -0
- package/dist/server/sync/invoices.handler.d.ts +5 -0
- package/dist/server/sync/payment-intent.handler.d.ts +5 -0
- package/dist/server/sync/payouts.handler.d.ts +5 -0
- package/dist/server/sync/prices.handler.d.ts +5 -0
- package/dist/server/sync/products.handler.d.ts +5 -0
- package/dist/server/sync/promotion-codes.handler.d.ts +5 -0
- package/dist/server/sync/refunds.handler.d.ts +5 -0
- package/dist/server/sync/reviews.handler.d.ts +5 -0
- package/dist/server/sync/subscription.d.ts +12 -0
- package/dist/server/sync/subscriptions.handler.d.ts +5 -0
- package/dist/server/types.d.ts +29 -0
- package/dist/server/webhooks/checkouts-session.handler.d.ts +2 -0
- package/dist/server/webhooks/coupons.handler.d.ts +2 -0
- package/dist/server/webhooks/customers.handler.d.ts +2 -0
- package/dist/server/webhooks/index.d.ts +2 -0
- package/dist/server/webhooks/invoices.handler.d.ts +2 -0
- package/dist/server/webhooks/payment-intents.handler.d.ts +2 -0
- package/dist/server/webhooks/payouts.handler.d.ts +2 -0
- package/dist/server/webhooks/prices.handler.d.ts +2 -0
- package/dist/server/webhooks/products.handler.d.ts +2 -0
- package/dist/server/webhooks/promotion-codes.handler.d.ts +2 -0
- package/dist/server/webhooks/refunds.handler.d.ts +2 -0
- package/dist/server/webhooks/reviews.handler.d.ts +2 -0
- package/dist/server/webhooks/subscription.handler.d.ts +2 -0
- package/dist/server/webhooks/types.d.ts +11 -0
- package/dist/server.d.ts +2 -3790
- package/dist/server.js +3812 -1239
- package/package.json +9 -8
|
@@ -0,0 +1,311 @@
|
|
|
1
|
+
import { Infer } from 'convex/values';
|
|
2
|
+
import { default as Stripe } from 'stripe';
|
|
3
|
+
export declare const PaymentIntentStripeToConvex: (intent: Stripe.PaymentIntent) => Infer<typeof PaymentIntentObject>;
|
|
4
|
+
export declare const PaymentIntentSchema: {
|
|
5
|
+
id: import('convex/values').VString<string, "required">;
|
|
6
|
+
amount: import('convex/values').VFloat64<number, "required">;
|
|
7
|
+
automatic_payment_methods: import('convex/values').VUnion<{
|
|
8
|
+
allow_redirects?: "always" | "never" | null | undefined;
|
|
9
|
+
enabled: boolean;
|
|
10
|
+
} | null | undefined, [import('convex/values').VObject<{
|
|
11
|
+
allow_redirects?: "always" | "never" | null | undefined;
|
|
12
|
+
enabled: boolean;
|
|
13
|
+
}, {
|
|
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
|
+
enabled: import('convex/values').VBoolean<boolean, "required">;
|
|
16
|
+
}, "required", "allow_redirects" | "enabled">, import('convex/values').VNull<null, "required">], "optional", "allow_redirects" | "enabled">;
|
|
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
|
+
currency: import('convex/values').VUnion<string | null, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "required", never>;
|
|
19
|
+
customer: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
20
|
+
description: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
21
|
+
last_payment_error: import('convex/values').VUnion<{
|
|
22
|
+
payment_method?: any;
|
|
23
|
+
advice_code?: string | null | undefined;
|
|
24
|
+
charge?: string | null | undefined;
|
|
25
|
+
code?: string | null | undefined;
|
|
26
|
+
decline_code?: string | null | undefined;
|
|
27
|
+
doc_url?: string | null | undefined;
|
|
28
|
+
message?: string | null | undefined;
|
|
29
|
+
network_advice_code?: string | null | undefined;
|
|
30
|
+
network_decline_code?: string | null | undefined;
|
|
31
|
+
param?: string | null | undefined;
|
|
32
|
+
payment_method_type?: string | null | undefined;
|
|
33
|
+
last_payment_error?: any;
|
|
34
|
+
latest_charge?: string | null | undefined;
|
|
35
|
+
type: "api_error" | "card_error" | "idempotency_error" | "invalid_request_error";
|
|
36
|
+
} | null | undefined, [import('convex/values').VObject<{
|
|
37
|
+
payment_method?: any;
|
|
38
|
+
advice_code?: string | null | undefined;
|
|
39
|
+
charge?: string | null | undefined;
|
|
40
|
+
code?: string | null | undefined;
|
|
41
|
+
decline_code?: string | null | undefined;
|
|
42
|
+
doc_url?: string | null | undefined;
|
|
43
|
+
message?: string | null | undefined;
|
|
44
|
+
network_advice_code?: string | null | undefined;
|
|
45
|
+
network_decline_code?: string | null | undefined;
|
|
46
|
+
param?: string | null | undefined;
|
|
47
|
+
payment_method_type?: string | null | undefined;
|
|
48
|
+
last_payment_error?: any;
|
|
49
|
+
latest_charge?: string | null | undefined;
|
|
50
|
+
type: "api_error" | "card_error" | "idempotency_error" | "invalid_request_error";
|
|
51
|
+
}, {
|
|
52
|
+
advice_code: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
53
|
+
charge: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
54
|
+
code: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
55
|
+
decline_code: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
56
|
+
doc_url: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
57
|
+
message: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
58
|
+
network_advice_code: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
59
|
+
network_decline_code: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
60
|
+
param: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
61
|
+
payment_method: import('convex/values').VAny<any, "optional", string>;
|
|
62
|
+
payment_method_type: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
63
|
+
last_payment_error: import('convex/values').VAny<any, "optional", string>;
|
|
64
|
+
type: import('convex/values').VUnion<"api_error" | "card_error" | "idempotency_error" | "invalid_request_error", [import('convex/values').VLiteral<"api_error", "required">, import('convex/values').VLiteral<"card_error", "required">, import('convex/values').VLiteral<"idempotency_error", "required">, import('convex/values').VLiteral<"invalid_request_error", "required">], "required", never>;
|
|
65
|
+
latest_charge: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
66
|
+
}, "required", "type" | "payment_method" | "advice_code" | "charge" | "code" | "decline_code" | "doc_url" | "message" | "network_advice_code" | "network_decline_code" | "param" | "payment_method_type" | "last_payment_error" | "latest_charge" | `payment_method.${string}` | `last_payment_error.${string}`>, import('convex/values').VNull<null, "required">], "optional", "type" | "payment_method" | "advice_code" | "charge" | "code" | "decline_code" | "doc_url" | "message" | "network_advice_code" | "network_decline_code" | "param" | "payment_method_type" | "last_payment_error" | "latest_charge" | `payment_method.${string}` | `last_payment_error.${string}`>;
|
|
67
|
+
latest_charge: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
68
|
+
metadata: import('convex/values').VUnion<Record<string, string | number | null> | null | undefined, [import('convex/values').VRecord<Record<string, string | number | null>, import('convex/values').VString<string, "required">, import('convex/values').VUnion<string | number | null, [import('convex/values').VString<string, "required">, import('convex/values').VFloat64<number, "required">, import('convex/values').VNull<null, "required">], "required", never>, "required", string>, import('convex/values').VNull<null, "required">], "optional", string>;
|
|
69
|
+
next_action: import('convex/values').VAny<any, "optional", string>;
|
|
70
|
+
payment_method: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
71
|
+
receipt_email: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
72
|
+
setup_future_usage: import('convex/values').VUnion<"off_session" | "on_session" | null, [import('convex/values').VLiteral<"off_session", "required">, import('convex/values').VLiteral<"on_session", "required">, import('convex/values').VNull<null, "required">], "required", never>;
|
|
73
|
+
shipping: import('convex/values').VAny<any, "optional", string>;
|
|
74
|
+
statement_descriptor: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
75
|
+
statement_descriptor_suffix: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
76
|
+
status: import('convex/values').VUnion<"canceled" | "processing" | "requires_action" | "requires_capture" | "requires_confirmation" | "requires_payment_method" | "succeeded", [import('convex/values').VLiteral<"canceled", "required">, import('convex/values').VLiteral<"processing", "required">, import('convex/values').VLiteral<"requires_action", "required">, import('convex/values').VLiteral<"requires_capture", "required">, import('convex/values').VLiteral<"requires_confirmation", "required">, import('convex/values').VLiteral<"requires_payment_method", "required">, import('convex/values').VLiteral<"succeeded", "required">], "required", never>;
|
|
77
|
+
object: import('convex/values').VString<string, "required">;
|
|
78
|
+
amount_capturable: import('convex/values').VFloat64<number, "required">;
|
|
79
|
+
amount_details: import('convex/values').VUnion<{
|
|
80
|
+
tip?: {
|
|
81
|
+
amount?: number | null | undefined;
|
|
82
|
+
} | null | undefined;
|
|
83
|
+
} | null | undefined, [import('convex/values').VObject<{
|
|
84
|
+
tip?: {
|
|
85
|
+
amount?: number | null | undefined;
|
|
86
|
+
} | null | undefined;
|
|
87
|
+
}, {
|
|
88
|
+
tip: import('convex/values').VUnion<{
|
|
89
|
+
amount?: number | null | undefined;
|
|
90
|
+
} | null | undefined, [import('convex/values').VObject<{
|
|
91
|
+
amount?: number | null | undefined;
|
|
92
|
+
}, {
|
|
93
|
+
amount: import('convex/values').VUnion<number | null | undefined, [import('convex/values').VFloat64<number, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
94
|
+
}, "required", "amount">, import('convex/values').VNull<null, "required">], "optional", "amount">;
|
|
95
|
+
}, "required", "tip" | "tip.amount">, import('convex/values').VNull<null, "required">], "optional", "tip" | "tip.amount">;
|
|
96
|
+
amount_received: import('convex/values').VFloat64<number, "required">;
|
|
97
|
+
application: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
98
|
+
application_fee_amount: import('convex/values').VUnion<number | null | undefined, [import('convex/values').VFloat64<number, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
99
|
+
canceled_at: import('convex/values').VUnion<number | null | undefined, [import('convex/values').VFloat64<number, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
100
|
+
cancellation_reason: import('convex/values').VUnion<"expired" | "abandoned" | "automatic" | "duplicate" | "failed_invoice" | "fraudulent" | "requested_by_customer" | "void_invoice" | null | undefined, [import('convex/values').VLiteral<"abandoned", "required">, import('convex/values').VLiteral<"automatic", "required">, import('convex/values').VLiteral<"duplicate", "required">, import('convex/values').VLiteral<"expired", "required">, import('convex/values').VLiteral<"failed_invoice", "required">, import('convex/values').VLiteral<"fraudulent", "required">, import('convex/values').VLiteral<"requested_by_customer", "required">, import('convex/values').VLiteral<"void_invoice", "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
101
|
+
capture_method: import('convex/values').VUnion<"manual" | "automatic" | "automatic_sync" | "automatic_async", [import('convex/values').VLiteral<"automatic", "required">, import('convex/values').VLiteral<"automatic_sync", "required">, import('convex/values').VLiteral<"automatic_async", "required">, import('convex/values').VLiteral<"manual", "required">], "required", never>;
|
|
102
|
+
confirmation_method: import('convex/values').VUnion<"manual" | "automatic", [import('convex/values').VLiteral<"automatic", "required">, import('convex/values').VLiteral<"manual", "required">], "required", never>;
|
|
103
|
+
created: import('convex/values').VFloat64<number, "required">;
|
|
104
|
+
excluded_payment_method_types: import('convex/values').VUnion<string[] | null, [import('convex/values').VArray<string[], import('convex/values').VString<string, "required">, "required">, import('convex/values').VNull<null, "required">], "required", never>;
|
|
105
|
+
livemode: import('convex/values').VBoolean<boolean, "required">;
|
|
106
|
+
on_behalf_of: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
107
|
+
payment_method_configuration_details: import('convex/values').VUnion<{
|
|
108
|
+
parent?: string | null | undefined;
|
|
109
|
+
id: string;
|
|
110
|
+
} | null | undefined, [import('convex/values').VObject<{
|
|
111
|
+
parent?: string | null | undefined;
|
|
112
|
+
id: string;
|
|
113
|
+
}, {
|
|
114
|
+
id: import('convex/values').VString<string, "required">;
|
|
115
|
+
parent: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
116
|
+
}, "required", "id" | "parent">, import('convex/values').VNull<null, "required">], "optional", "id" | "parent">;
|
|
117
|
+
payment_method_options: import('convex/values').VAny<any, "optional", string>;
|
|
118
|
+
payment_method_types: import('convex/values').VArray<string[], import('convex/values').VString<string, "required">, "required">;
|
|
119
|
+
presentment_details: import('convex/values').VAny<any, "optional", string>;
|
|
120
|
+
processing: import('convex/values').VAny<any, "optional", string>;
|
|
121
|
+
review: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
122
|
+
transfer_data: import('convex/values').VAny<any, "optional", string>;
|
|
123
|
+
transfer_group: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
124
|
+
};
|
|
125
|
+
export declare const PaymentIntentObject: import('convex/values').VObject<{
|
|
126
|
+
customer?: string | null | undefined;
|
|
127
|
+
metadata?: Record<string, string | number | null> | null | undefined;
|
|
128
|
+
client_secret?: string | null | undefined;
|
|
129
|
+
payment_method_configuration_details?: {
|
|
130
|
+
parent?: string | null | undefined;
|
|
131
|
+
id: string;
|
|
132
|
+
} | null | undefined;
|
|
133
|
+
payment_method_options?: any;
|
|
134
|
+
presentment_details?: any;
|
|
135
|
+
description?: string | null | undefined;
|
|
136
|
+
shipping?: any;
|
|
137
|
+
payment_method?: string | null | undefined;
|
|
138
|
+
application?: string | null | undefined;
|
|
139
|
+
on_behalf_of?: string | null | undefined;
|
|
140
|
+
statement_descriptor?: string | null | undefined;
|
|
141
|
+
last_payment_error?: {
|
|
142
|
+
payment_method?: any;
|
|
143
|
+
advice_code?: string | null | undefined;
|
|
144
|
+
charge?: string | null | undefined;
|
|
145
|
+
code?: string | null | undefined;
|
|
146
|
+
decline_code?: string | null | undefined;
|
|
147
|
+
doc_url?: string | null | undefined;
|
|
148
|
+
message?: string | null | undefined;
|
|
149
|
+
network_advice_code?: string | null | undefined;
|
|
150
|
+
network_decline_code?: string | null | undefined;
|
|
151
|
+
param?: string | null | undefined;
|
|
152
|
+
payment_method_type?: string | null | undefined;
|
|
153
|
+
last_payment_error?: any;
|
|
154
|
+
latest_charge?: string | null | undefined;
|
|
155
|
+
type: "api_error" | "card_error" | "idempotency_error" | "invalid_request_error";
|
|
156
|
+
} | null | undefined;
|
|
157
|
+
latest_charge?: string | null | undefined;
|
|
158
|
+
processing?: any;
|
|
159
|
+
automatic_payment_methods?: {
|
|
160
|
+
allow_redirects?: "always" | "never" | null | undefined;
|
|
161
|
+
enabled: boolean;
|
|
162
|
+
} | null | undefined;
|
|
163
|
+
next_action?: any;
|
|
164
|
+
receipt_email?: string | null | undefined;
|
|
165
|
+
statement_descriptor_suffix?: string | null | undefined;
|
|
166
|
+
amount_details?: {
|
|
167
|
+
tip?: {
|
|
168
|
+
amount?: number | null | undefined;
|
|
169
|
+
} | null | undefined;
|
|
170
|
+
} | null | undefined;
|
|
171
|
+
application_fee_amount?: number | null | undefined;
|
|
172
|
+
canceled_at?: number | null | undefined;
|
|
173
|
+
cancellation_reason?: "expired" | "abandoned" | "automatic" | "duplicate" | "failed_invoice" | "fraudulent" | "requested_by_customer" | "void_invoice" | null | undefined;
|
|
174
|
+
review?: string | null | undefined;
|
|
175
|
+
transfer_data?: any;
|
|
176
|
+
transfer_group?: string | null | undefined;
|
|
177
|
+
object: string;
|
|
178
|
+
id: string;
|
|
179
|
+
currency: string | null;
|
|
180
|
+
status: "canceled" | "processing" | "requires_action" | "requires_capture" | "requires_confirmation" | "requires_payment_method" | "succeeded";
|
|
181
|
+
created: number;
|
|
182
|
+
livemode: boolean;
|
|
183
|
+
payment_method_types: string[];
|
|
184
|
+
amount: number;
|
|
185
|
+
setup_future_usage: "off_session" | "on_session" | null;
|
|
186
|
+
amount_capturable: number;
|
|
187
|
+
amount_received: number;
|
|
188
|
+
capture_method: "manual" | "automatic" | "automatic_sync" | "automatic_async";
|
|
189
|
+
confirmation_method: "manual" | "automatic";
|
|
190
|
+
excluded_payment_method_types: string[] | null;
|
|
191
|
+
}, {
|
|
192
|
+
id: import('convex/values').VString<string, "required">;
|
|
193
|
+
amount: import('convex/values').VFloat64<number, "required">;
|
|
194
|
+
automatic_payment_methods: import('convex/values').VUnion<{
|
|
195
|
+
allow_redirects?: "always" | "never" | null | undefined;
|
|
196
|
+
enabled: boolean;
|
|
197
|
+
} | null | undefined, [import('convex/values').VObject<{
|
|
198
|
+
allow_redirects?: "always" | "never" | null | undefined;
|
|
199
|
+
enabled: boolean;
|
|
200
|
+
}, {
|
|
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
|
+
enabled: import('convex/values').VBoolean<boolean, "required">;
|
|
203
|
+
}, "required", "allow_redirects" | "enabled">, import('convex/values').VNull<null, "required">], "optional", "allow_redirects" | "enabled">;
|
|
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
|
+
currency: import('convex/values').VUnion<string | null, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "required", never>;
|
|
206
|
+
customer: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
207
|
+
description: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
208
|
+
last_payment_error: import('convex/values').VUnion<{
|
|
209
|
+
payment_method?: any;
|
|
210
|
+
advice_code?: string | null | undefined;
|
|
211
|
+
charge?: string | null | undefined;
|
|
212
|
+
code?: string | null | undefined;
|
|
213
|
+
decline_code?: string | null | undefined;
|
|
214
|
+
doc_url?: string | null | undefined;
|
|
215
|
+
message?: string | null | undefined;
|
|
216
|
+
network_advice_code?: string | null | undefined;
|
|
217
|
+
network_decline_code?: string | null | undefined;
|
|
218
|
+
param?: string | null | undefined;
|
|
219
|
+
payment_method_type?: string | null | undefined;
|
|
220
|
+
last_payment_error?: any;
|
|
221
|
+
latest_charge?: string | null | undefined;
|
|
222
|
+
type: "api_error" | "card_error" | "idempotency_error" | "invalid_request_error";
|
|
223
|
+
} | null | undefined, [import('convex/values').VObject<{
|
|
224
|
+
payment_method?: any;
|
|
225
|
+
advice_code?: string | null | undefined;
|
|
226
|
+
charge?: string | null | undefined;
|
|
227
|
+
code?: string | null | undefined;
|
|
228
|
+
decline_code?: string | null | undefined;
|
|
229
|
+
doc_url?: string | null | undefined;
|
|
230
|
+
message?: string | null | undefined;
|
|
231
|
+
network_advice_code?: string | null | undefined;
|
|
232
|
+
network_decline_code?: string | null | undefined;
|
|
233
|
+
param?: string | null | undefined;
|
|
234
|
+
payment_method_type?: string | null | undefined;
|
|
235
|
+
last_payment_error?: any;
|
|
236
|
+
latest_charge?: string | null | undefined;
|
|
237
|
+
type: "api_error" | "card_error" | "idempotency_error" | "invalid_request_error";
|
|
238
|
+
}, {
|
|
239
|
+
advice_code: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
240
|
+
charge: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
241
|
+
code: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
242
|
+
decline_code: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
243
|
+
doc_url: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
244
|
+
message: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
245
|
+
network_advice_code: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
246
|
+
network_decline_code: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
247
|
+
param: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
248
|
+
payment_method: import('convex/values').VAny<any, "optional", string>;
|
|
249
|
+
payment_method_type: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
250
|
+
last_payment_error: import('convex/values').VAny<any, "optional", string>;
|
|
251
|
+
type: import('convex/values').VUnion<"api_error" | "card_error" | "idempotency_error" | "invalid_request_error", [import('convex/values').VLiteral<"api_error", "required">, import('convex/values').VLiteral<"card_error", "required">, import('convex/values').VLiteral<"idempotency_error", "required">, import('convex/values').VLiteral<"invalid_request_error", "required">], "required", never>;
|
|
252
|
+
latest_charge: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
253
|
+
}, "required", "type" | "payment_method" | "advice_code" | "charge" | "code" | "decline_code" | "doc_url" | "message" | "network_advice_code" | "network_decline_code" | "param" | "payment_method_type" | "last_payment_error" | "latest_charge" | `payment_method.${string}` | `last_payment_error.${string}`>, import('convex/values').VNull<null, "required">], "optional", "type" | "payment_method" | "advice_code" | "charge" | "code" | "decline_code" | "doc_url" | "message" | "network_advice_code" | "network_decline_code" | "param" | "payment_method_type" | "last_payment_error" | "latest_charge" | `payment_method.${string}` | `last_payment_error.${string}`>;
|
|
254
|
+
latest_charge: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
255
|
+
metadata: import('convex/values').VUnion<Record<string, string | number | null> | null | undefined, [import('convex/values').VRecord<Record<string, string | number | null>, import('convex/values').VString<string, "required">, import('convex/values').VUnion<string | number | null, [import('convex/values').VString<string, "required">, import('convex/values').VFloat64<number, "required">, import('convex/values').VNull<null, "required">], "required", never>, "required", string>, import('convex/values').VNull<null, "required">], "optional", string>;
|
|
256
|
+
next_action: import('convex/values').VAny<any, "optional", string>;
|
|
257
|
+
payment_method: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
258
|
+
receipt_email: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
259
|
+
setup_future_usage: import('convex/values').VUnion<"off_session" | "on_session" | null, [import('convex/values').VLiteral<"off_session", "required">, import('convex/values').VLiteral<"on_session", "required">, import('convex/values').VNull<null, "required">], "required", never>;
|
|
260
|
+
shipping: import('convex/values').VAny<any, "optional", string>;
|
|
261
|
+
statement_descriptor: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
262
|
+
statement_descriptor_suffix: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
263
|
+
status: import('convex/values').VUnion<"canceled" | "processing" | "requires_action" | "requires_capture" | "requires_confirmation" | "requires_payment_method" | "succeeded", [import('convex/values').VLiteral<"canceled", "required">, import('convex/values').VLiteral<"processing", "required">, import('convex/values').VLiteral<"requires_action", "required">, import('convex/values').VLiteral<"requires_capture", "required">, import('convex/values').VLiteral<"requires_confirmation", "required">, import('convex/values').VLiteral<"requires_payment_method", "required">, import('convex/values').VLiteral<"succeeded", "required">], "required", never>;
|
|
264
|
+
object: import('convex/values').VString<string, "required">;
|
|
265
|
+
amount_capturable: import('convex/values').VFloat64<number, "required">;
|
|
266
|
+
amount_details: import('convex/values').VUnion<{
|
|
267
|
+
tip?: {
|
|
268
|
+
amount?: number | null | undefined;
|
|
269
|
+
} | null | undefined;
|
|
270
|
+
} | null | undefined, [import('convex/values').VObject<{
|
|
271
|
+
tip?: {
|
|
272
|
+
amount?: number | null | undefined;
|
|
273
|
+
} | null | undefined;
|
|
274
|
+
}, {
|
|
275
|
+
tip: import('convex/values').VUnion<{
|
|
276
|
+
amount?: number | null | undefined;
|
|
277
|
+
} | null | undefined, [import('convex/values').VObject<{
|
|
278
|
+
amount?: number | null | undefined;
|
|
279
|
+
}, {
|
|
280
|
+
amount: import('convex/values').VUnion<number | null | undefined, [import('convex/values').VFloat64<number, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
281
|
+
}, "required", "amount">, import('convex/values').VNull<null, "required">], "optional", "amount">;
|
|
282
|
+
}, "required", "tip" | "tip.amount">, import('convex/values').VNull<null, "required">], "optional", "tip" | "tip.amount">;
|
|
283
|
+
amount_received: import('convex/values').VFloat64<number, "required">;
|
|
284
|
+
application: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
285
|
+
application_fee_amount: import('convex/values').VUnion<number | null | undefined, [import('convex/values').VFloat64<number, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
286
|
+
canceled_at: import('convex/values').VUnion<number | null | undefined, [import('convex/values').VFloat64<number, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
287
|
+
cancellation_reason: import('convex/values').VUnion<"expired" | "abandoned" | "automatic" | "duplicate" | "failed_invoice" | "fraudulent" | "requested_by_customer" | "void_invoice" | null | undefined, [import('convex/values').VLiteral<"abandoned", "required">, import('convex/values').VLiteral<"automatic", "required">, import('convex/values').VLiteral<"duplicate", "required">, import('convex/values').VLiteral<"expired", "required">, import('convex/values').VLiteral<"failed_invoice", "required">, import('convex/values').VLiteral<"fraudulent", "required">, import('convex/values').VLiteral<"requested_by_customer", "required">, import('convex/values').VLiteral<"void_invoice", "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
288
|
+
capture_method: import('convex/values').VUnion<"manual" | "automatic" | "automatic_sync" | "automatic_async", [import('convex/values').VLiteral<"automatic", "required">, import('convex/values').VLiteral<"automatic_sync", "required">, import('convex/values').VLiteral<"automatic_async", "required">, import('convex/values').VLiteral<"manual", "required">], "required", never>;
|
|
289
|
+
confirmation_method: import('convex/values').VUnion<"manual" | "automatic", [import('convex/values').VLiteral<"automatic", "required">, import('convex/values').VLiteral<"manual", "required">], "required", never>;
|
|
290
|
+
created: import('convex/values').VFloat64<number, "required">;
|
|
291
|
+
excluded_payment_method_types: import('convex/values').VUnion<string[] | null, [import('convex/values').VArray<string[], import('convex/values').VString<string, "required">, "required">, import('convex/values').VNull<null, "required">], "required", never>;
|
|
292
|
+
livemode: import('convex/values').VBoolean<boolean, "required">;
|
|
293
|
+
on_behalf_of: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
294
|
+
payment_method_configuration_details: import('convex/values').VUnion<{
|
|
295
|
+
parent?: string | null | undefined;
|
|
296
|
+
id: string;
|
|
297
|
+
} | null | undefined, [import('convex/values').VObject<{
|
|
298
|
+
parent?: string | null | undefined;
|
|
299
|
+
id: string;
|
|
300
|
+
}, {
|
|
301
|
+
id: import('convex/values').VString<string, "required">;
|
|
302
|
+
parent: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
303
|
+
}, "required", "id" | "parent">, import('convex/values').VNull<null, "required">], "optional", "id" | "parent">;
|
|
304
|
+
payment_method_options: import('convex/values').VAny<any, "optional", string>;
|
|
305
|
+
payment_method_types: import('convex/values').VArray<string[], import('convex/values').VString<string, "required">, "required">;
|
|
306
|
+
presentment_details: import('convex/values').VAny<any, "optional", string>;
|
|
307
|
+
processing: import('convex/values').VAny<any, "optional", string>;
|
|
308
|
+
review: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
309
|
+
transfer_data: import('convex/values').VAny<any, "optional", string>;
|
|
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" | "currency" | "customer" | "metadata" | "status" | "client_secret" | "created" | "livemode" | "payment_method_configuration_details" | "payment_method_options" | "payment_method_types" | "presentment_details" | `metadata.${string}` | `payment_method_options.${string}` | `presentment_details.${string}` | "description" | "shipping" | "payment_method" | "application" | "on_behalf_of" | "statement_descriptor" | "last_payment_error" | "latest_charge" | "processing" | "amount" | "automatic_payment_methods" | "next_action" | "receipt_email" | "setup_future_usage" | "statement_descriptor_suffix" | "amount_capturable" | "amount_details" | "amount_received" | "application_fee_amount" | "canceled_at" | "cancellation_reason" | "capture_method" | "confirmation_method" | "excluded_payment_method_types" | "review" | "transfer_data" | "transfer_group" | "payment_method_configuration_details.id" | "payment_method_configuration_details.parent" | `shipping.${string}` | "last_payment_error.type" | "last_payment_error.payment_method" | "last_payment_error.advice_code" | "last_payment_error.charge" | "last_payment_error.code" | "last_payment_error.decline_code" | "last_payment_error.doc_url" | "last_payment_error.message" | "last_payment_error.network_advice_code" | "last_payment_error.network_decline_code" | "last_payment_error.param" | "last_payment_error.payment_method_type" | "last_payment_error.last_payment_error" | "last_payment_error.latest_charge" | `last_payment_error.payment_method.${string}` | `last_payment_error.last_payment_error.${string}` | `processing.${string}` | "automatic_payment_methods.allow_redirects" | "automatic_payment_methods.enabled" | `next_action.${string}` | "amount_details.tip" | "amount_details.tip.amount" | `transfer_data.${string}`>;
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
import { default as Stripe } from 'stripe';
|
|
2
|
+
export declare const PayoutStripeToConvex: (payout: Stripe.Payout) => {
|
|
3
|
+
currency?: string | null | undefined;
|
|
4
|
+
metadata?: Record<string, string | number | null> | null | undefined;
|
|
5
|
+
description?: string | null | undefined;
|
|
6
|
+
statement_descriptor?: string | null | undefined;
|
|
7
|
+
application_fee_amount?: number | null | undefined;
|
|
8
|
+
application_only?: string | null | undefined;
|
|
9
|
+
balance_transaction?: string | null | undefined;
|
|
10
|
+
destination?: string | null | undefined;
|
|
11
|
+
failure_balance_transaction?: string | null | undefined;
|
|
12
|
+
failure_code?: string | null | undefined;
|
|
13
|
+
failure_message?: string | null | undefined;
|
|
14
|
+
original_payout?: string | null | undefined;
|
|
15
|
+
payout_method?: string | null | undefined;
|
|
16
|
+
reconciliation_status?: "completed" | "in_progress" | "not_applicable" | undefined;
|
|
17
|
+
reversed_by?: string | null | undefined;
|
|
18
|
+
trace_id?: {
|
|
19
|
+
value?: string | null | undefined;
|
|
20
|
+
status: string;
|
|
21
|
+
} | null | undefined;
|
|
22
|
+
object: string;
|
|
23
|
+
type: "card" | "bank_account";
|
|
24
|
+
id: string;
|
|
25
|
+
status: string;
|
|
26
|
+
created: number;
|
|
27
|
+
livemode: boolean;
|
|
28
|
+
amount: number;
|
|
29
|
+
automatic: boolean;
|
|
30
|
+
arrival_date: number;
|
|
31
|
+
method: string;
|
|
32
|
+
source_type: string;
|
|
33
|
+
};
|
|
34
|
+
export declare const PayoutSchema: {
|
|
35
|
+
id: import('convex/values').VString<string, "required">;
|
|
36
|
+
amount: import('convex/values').VFloat64<number, "required">;
|
|
37
|
+
arrival_date: import('convex/values').VFloat64<number, "required">;
|
|
38
|
+
currency: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
39
|
+
description: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
40
|
+
metadata: import('convex/values').VUnion<Record<string, string | number | null> | null | undefined, [import('convex/values').VRecord<Record<string, string | number | null>, import('convex/values').VString<string, "required">, import('convex/values').VUnion<string | number | null, [import('convex/values').VString<string, "required">, import('convex/values').VFloat64<number, "required">, import('convex/values').VNull<null, "required">], "required", never>, "required", string>, import('convex/values').VNull<null, "required">], "optional", string>;
|
|
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
|
+
status: import('convex/values').VString<string, "required">;
|
|
43
|
+
object: import('convex/values').VString<string, "required">;
|
|
44
|
+
application_only: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
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
|
+
automatic: import('convex/values').VBoolean<boolean, "required">;
|
|
47
|
+
balance_transaction: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
48
|
+
created: import('convex/values').VFloat64<number, "required">;
|
|
49
|
+
destination: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
50
|
+
failure_balance_transaction: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
51
|
+
failure_code: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VLiteral<"account_closed", "required">, import('convex/values').VLiteral<"account_frozen", "required">, import('convex/values').VLiteral<"bank_account_restricted", "required">, import('convex/values').VLiteral<"bank_ownership_changed", "required">, import('convex/values').VLiteral<"could_not_process", "required">, import('convex/values').VLiteral<"debit_not_authorized", "required">, import('convex/values').VLiteral<"declined", "required">, import('convex/values').VLiteral<"incorrect_account_holder_address", "required">, import('convex/values').VLiteral<"incorrect_account_holder_name", "required">, import('convex/values').VLiteral<"incorrect_account_holder_tax_id", "required">, import('convex/values').VLiteral<"incorrect_account_type", "required">, import('convex/values').VLiteral<"insufficient_funds", "required">, import('convex/values').VLiteral<"invalid_account_number", "required">, import('convex/values').VLiteral<"invalid_account_number_length", "required">, import('convex/values').VLiteral<"invalid_currency", "required">, import('convex/values').VLiteral<"no_account", "required">, import('convex/values').VLiteral<"unsupported_card", "required">, import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
52
|
+
failure_message: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
53
|
+
livemode: import('convex/values').VBoolean<boolean, "required">;
|
|
54
|
+
method: import('convex/values').VString<string, "required">;
|
|
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
|
+
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>;
|
|
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
|
+
source_type: import('convex/values').VString<string, "required">;
|
|
60
|
+
trace_id: import('convex/values').VUnion<{
|
|
61
|
+
value?: string | null | undefined;
|
|
62
|
+
status: string;
|
|
63
|
+
} | null | undefined, [import('convex/values').VNull<null, "required">, import('convex/values').VObject<{
|
|
64
|
+
value?: string | null | undefined;
|
|
65
|
+
status: string;
|
|
66
|
+
}, {
|
|
67
|
+
status: import('convex/values').VString<string, "required">;
|
|
68
|
+
value: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
69
|
+
}, "required", "status" | "value">], "optional", "status" | "value">;
|
|
70
|
+
type: import('convex/values').VUnion<"card" | "bank_account", [import('convex/values').VLiteral<"bank_account", "required">, import('convex/values').VLiteral<"card", "required">], "required", never>;
|
|
71
|
+
};
|
|
72
|
+
export declare const PayoutObject: import('convex/values').VObject<{
|
|
73
|
+
currency?: string | null | undefined;
|
|
74
|
+
metadata?: Record<string, string | number | null> | null | undefined;
|
|
75
|
+
description?: string | null | undefined;
|
|
76
|
+
statement_descriptor?: string | null | undefined;
|
|
77
|
+
application_fee_amount?: number | null | undefined;
|
|
78
|
+
application_only?: string | null | undefined;
|
|
79
|
+
balance_transaction?: string | null | undefined;
|
|
80
|
+
destination?: string | null | undefined;
|
|
81
|
+
failure_balance_transaction?: string | null | undefined;
|
|
82
|
+
failure_code?: string | null | undefined;
|
|
83
|
+
failure_message?: string | null | undefined;
|
|
84
|
+
original_payout?: string | null | undefined;
|
|
85
|
+
payout_method?: string | null | undefined;
|
|
86
|
+
reconciliation_status?: "completed" | "in_progress" | "not_applicable" | undefined;
|
|
87
|
+
reversed_by?: string | null | undefined;
|
|
88
|
+
trace_id?: {
|
|
89
|
+
value?: string | null | undefined;
|
|
90
|
+
status: string;
|
|
91
|
+
} | null | undefined;
|
|
92
|
+
object: string;
|
|
93
|
+
type: "card" | "bank_account";
|
|
94
|
+
id: string;
|
|
95
|
+
status: string;
|
|
96
|
+
created: number;
|
|
97
|
+
livemode: boolean;
|
|
98
|
+
amount: number;
|
|
99
|
+
automatic: boolean;
|
|
100
|
+
arrival_date: number;
|
|
101
|
+
method: string;
|
|
102
|
+
source_type: string;
|
|
103
|
+
}, {
|
|
104
|
+
id: import('convex/values').VString<string, "required">;
|
|
105
|
+
amount: import('convex/values').VFloat64<number, "required">;
|
|
106
|
+
arrival_date: import('convex/values').VFloat64<number, "required">;
|
|
107
|
+
currency: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
108
|
+
description: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
109
|
+
metadata: import('convex/values').VUnion<Record<string, string | number | null> | null | undefined, [import('convex/values').VRecord<Record<string, string | number | null>, import('convex/values').VString<string, "required">, import('convex/values').VUnion<string | number | null, [import('convex/values').VString<string, "required">, import('convex/values').VFloat64<number, "required">, import('convex/values').VNull<null, "required">], "required", never>, "required", string>, import('convex/values').VNull<null, "required">], "optional", string>;
|
|
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
|
+
status: import('convex/values').VString<string, "required">;
|
|
112
|
+
object: import('convex/values').VString<string, "required">;
|
|
113
|
+
application_only: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
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
|
+
automatic: import('convex/values').VBoolean<boolean, "required">;
|
|
116
|
+
balance_transaction: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
117
|
+
created: import('convex/values').VFloat64<number, "required">;
|
|
118
|
+
destination: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
119
|
+
failure_balance_transaction: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
120
|
+
failure_code: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VLiteral<"account_closed", "required">, import('convex/values').VLiteral<"account_frozen", "required">, import('convex/values').VLiteral<"bank_account_restricted", "required">, import('convex/values').VLiteral<"bank_ownership_changed", "required">, import('convex/values').VLiteral<"could_not_process", "required">, import('convex/values').VLiteral<"debit_not_authorized", "required">, import('convex/values').VLiteral<"declined", "required">, import('convex/values').VLiteral<"incorrect_account_holder_address", "required">, import('convex/values').VLiteral<"incorrect_account_holder_name", "required">, import('convex/values').VLiteral<"incorrect_account_holder_tax_id", "required">, import('convex/values').VLiteral<"incorrect_account_type", "required">, import('convex/values').VLiteral<"insufficient_funds", "required">, import('convex/values').VLiteral<"invalid_account_number", "required">, import('convex/values').VLiteral<"invalid_account_number_length", "required">, import('convex/values').VLiteral<"invalid_currency", "required">, import('convex/values').VLiteral<"no_account", "required">, import('convex/values').VLiteral<"unsupported_card", "required">, import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
121
|
+
failure_message: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
122
|
+
livemode: import('convex/values').VBoolean<boolean, "required">;
|
|
123
|
+
method: import('convex/values').VString<string, "required">;
|
|
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
|
+
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>;
|
|
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
|
+
source_type: import('convex/values').VString<string, "required">;
|
|
129
|
+
trace_id: import('convex/values').VUnion<{
|
|
130
|
+
value?: string | null | undefined;
|
|
131
|
+
status: string;
|
|
132
|
+
} | null | undefined, [import('convex/values').VNull<null, "required">, import('convex/values').VObject<{
|
|
133
|
+
value?: string | null | undefined;
|
|
134
|
+
status: string;
|
|
135
|
+
}, {
|
|
136
|
+
status: import('convex/values').VString<string, "required">;
|
|
137
|
+
value: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
138
|
+
}, "required", "status" | "value">], "optional", "status" | "value">;
|
|
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" | "currency" | "metadata" | "status" | "created" | "livemode" | `metadata.${string}` | "description" | "statement_descriptor" | "amount" | "automatic" | "application_fee_amount" | "arrival_date" | "application_only" | "balance_transaction" | "destination" | "failure_balance_transaction" | "failure_code" | "failure_message" | "method" | "original_payout" | "payout_method" | "reconciliation_status" | "reversed_by" | "source_type" | "trace_id" | "trace_id.status" | "trace_id.value">;
|