@raideno/convex-stripe 0.1.2 → 0.1.4
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/actions/pay.d.ts +52 -52
- package/dist/server/actions/setup.d.ts +3 -3
- package/dist/server/actions/subscribe.d.ts +7 -7
- package/dist/server/index.d.ts +451 -73
- package/dist/server/schema/charge.d.ts +294 -0
- package/dist/server/schema/checkout-session.d.ts +21 -21
- package/dist/server/schema/coupon.d.ts +3 -3
- package/dist/server/schema/credit-note.d.ts +228 -0
- package/dist/server/schema/customer.d.ts +19 -19
- package/dist/server/schema/dispute.d.ts +76 -0
- package/dist/server/schema/early-fraud-warning.d.ts +40 -0
- package/dist/server/schema/index.d.ts +4158 -1608
- package/dist/server/schema/invoice.d.ts +35 -35
- package/dist/server/schema/payment-intent.d.ts +28 -28
- package/dist/server/schema/payment-method.d.ts +248 -0
- package/dist/server/schema/payout.d.ts +11 -11
- package/dist/server/schema/plan.d.ts +112 -0
- package/dist/server/schema/price.d.ts +17 -17
- package/dist/server/schema/product.d.ts +7 -7
- package/dist/server/schema/promotion-code.d.ts +7 -7
- package/dist/server/schema/refund.d.ts +11 -11
- package/dist/server/schema/review.d.ts +9 -9
- package/dist/server/schema/setup-intent.d.ts +156 -0
- package/dist/server/schema/subscription-schedule.d.ts +468 -0
- package/dist/server/schema/tax-id.d.ts +120 -0
- package/dist/server/store/index.d.ts +450 -72
- package/dist/server/sync/charges.handler.d.ts +5 -0
- package/dist/server/sync/credit-notes.handler.d.ts +5 -0
- package/dist/server/sync/disputes.handler.d.ts +5 -0
- package/dist/server/sync/early-fraud-warnings.handler.d.ts +5 -0
- package/dist/server/sync/payment-methods.handler.d.ts +5 -0
- package/dist/server/sync/plans.handler.d.ts +5 -0
- package/dist/server/sync/setup-intents.handler.d.ts +5 -0
- package/dist/server/sync/subscription-schedules.handler.d.ts +5 -0
- package/dist/server/sync/tax-id.handler.d.ts +5 -0
- package/dist/server/types.d.ts +1 -9
- package/dist/server/webhooks/charges.handler.d.ts +2 -0
- package/dist/server/webhooks/credit-notes.handler.d.ts +2 -0
- package/dist/server/webhooks/disputes.handler.d.ts +2 -0
- package/dist/server/webhooks/early-fraud-warnings.handler.d.ts +2 -0
- package/dist/server/webhooks/payment-methods.handler.d.ts +2 -0
- package/dist/server/webhooks/plans.handler.d.ts +2 -0
- package/dist/server/webhooks/refunds.handler.d.ts +1 -1
- package/dist/server/webhooks/setup-intent.handler.d.ts +2 -0
- package/dist/server/webhooks/subscription-schedules.handler.d.ts +2 -0
- package/dist/server/webhooks/tax-id.handler.d.ts +2 -0
- package/dist/server.js +2032 -90
- package/package.json +1 -3
- /package/dist/server/sync/{checkouts-session.handler.d.ts → checkout-sessions.handler.d.ts} +0 -0
- /package/dist/server/sync/{payment-intent.handler.d.ts → payment-intents.handler.d.ts} +0 -0
- /package/dist/server/webhooks/{checkouts-session.handler.d.ts → checkout-sessions.handler.d.ts} +0 -0
|
@@ -0,0 +1,228 @@
|
|
|
1
|
+
import { default as Stripe } from 'stripe';
|
|
2
|
+
export declare const CreditNoteStripeToConvex: (creditNote: Stripe.CreditNote) => {
|
|
3
|
+
customer?: string | null | undefined;
|
|
4
|
+
metadata?: Record<string, string | number | null> | null | undefined;
|
|
5
|
+
invoice?: string | null | undefined;
|
|
6
|
+
memo?: string | null | undefined;
|
|
7
|
+
customer_balance_transaction?: string | null | undefined;
|
|
8
|
+
effective_at?: number | null | undefined;
|
|
9
|
+
out_of_band_amount?: number | null | undefined;
|
|
10
|
+
subtotal_excluding_tax?: number | null | undefined;
|
|
11
|
+
total_excluding_tax?: number | null | undefined;
|
|
12
|
+
voided_at?: number | null | undefined;
|
|
13
|
+
number: string;
|
|
14
|
+
object: string;
|
|
15
|
+
type: "mixed" | "post_payment" | "pre_payment";
|
|
16
|
+
id: string;
|
|
17
|
+
amount: number;
|
|
18
|
+
currency: string;
|
|
19
|
+
status: "issued" | "void";
|
|
20
|
+
created: number;
|
|
21
|
+
livemode: boolean;
|
|
22
|
+
refunds: {
|
|
23
|
+
amount_refunded: number;
|
|
24
|
+
refund: string;
|
|
25
|
+
}[];
|
|
26
|
+
shipping_cost: any;
|
|
27
|
+
lines: any;
|
|
28
|
+
reason: "duplicate" | "fraudulent" | "order_change" | "product_unsatisfactory" | null;
|
|
29
|
+
subtotal: number;
|
|
30
|
+
total: number;
|
|
31
|
+
amount_shipping: number;
|
|
32
|
+
discount_amount: number;
|
|
33
|
+
discount_amounts: {
|
|
34
|
+
amount: number;
|
|
35
|
+
discount: string;
|
|
36
|
+
}[];
|
|
37
|
+
pdf: string;
|
|
38
|
+
post_payment_amount: number;
|
|
39
|
+
pre_payment_amount: number;
|
|
40
|
+
pretax_credit_amounts: {
|
|
41
|
+
discount?: string | null | undefined;
|
|
42
|
+
credit_balance_transaction?: string | null | undefined;
|
|
43
|
+
type: "discount" | "credit_balance_transaction";
|
|
44
|
+
amount: number;
|
|
45
|
+
}[];
|
|
46
|
+
total_taxes: any;
|
|
47
|
+
};
|
|
48
|
+
export declare const CreditNoteSchema: {
|
|
49
|
+
id: import('convex/values').VString<string, "required">;
|
|
50
|
+
currency: import('convex/values').VString<string, "required">;
|
|
51
|
+
invoice: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
52
|
+
lines: import('convex/values').VAny<any, "required", string>;
|
|
53
|
+
memo: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
54
|
+
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>;
|
|
55
|
+
reason: import('convex/values').VUnion<"duplicate" | "fraudulent" | "order_change" | "product_unsatisfactory" | null, [import('convex/values').VLiteral<"duplicate", "required">, import('convex/values').VLiteral<"fraudulent", "required">, import('convex/values').VLiteral<"order_change", "required">, import('convex/values').VLiteral<"product_unsatisfactory", "required">, import('convex/values').VNull<null, "required">], "required", never>;
|
|
56
|
+
status: import('convex/values').VUnion<"issued" | "void", [import('convex/values').VLiteral<"issued", "required">, import('convex/values').VLiteral<"void", "required">], "required", never>;
|
|
57
|
+
subtotal: import('convex/values').VFloat64<number, "required">;
|
|
58
|
+
total: import('convex/values').VFloat64<number, "required">;
|
|
59
|
+
object: import('convex/values').VString<string, "required">;
|
|
60
|
+
amount: import('convex/values').VFloat64<number, "required">;
|
|
61
|
+
amount_shipping: import('convex/values').VFloat64<number, "required">;
|
|
62
|
+
created: import('convex/values').VFloat64<number, "required">;
|
|
63
|
+
customer: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
64
|
+
customer_balance_transaction: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
65
|
+
discount_amount: import('convex/values').VFloat64<number, "required">;
|
|
66
|
+
discount_amounts: import('convex/values').VArray<{
|
|
67
|
+
amount: number;
|
|
68
|
+
discount: string;
|
|
69
|
+
}[], import('convex/values').VObject<{
|
|
70
|
+
amount: number;
|
|
71
|
+
discount: string;
|
|
72
|
+
}, {
|
|
73
|
+
amount: import('convex/values').VFloat64<number, "required">;
|
|
74
|
+
discount: import('convex/values').VString<string, "required">;
|
|
75
|
+
}, "required", "amount" | "discount">, "required">;
|
|
76
|
+
effective_at: import('convex/values').VUnion<number | null | undefined, [import('convex/values').VFloat64<number, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
77
|
+
livemode: import('convex/values').VBoolean<boolean, "required">;
|
|
78
|
+
number: import('convex/values').VString<string, "required">;
|
|
79
|
+
out_of_band_amount: import('convex/values').VUnion<number | null | undefined, [import('convex/values').VFloat64<number, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
80
|
+
pdf: import('convex/values').VString<string, "required">;
|
|
81
|
+
post_payment_amount: import('convex/values').VFloat64<number, "required">;
|
|
82
|
+
pre_payment_amount: import('convex/values').VFloat64<number, "required">;
|
|
83
|
+
pretax_credit_amounts: import('convex/values').VArray<{
|
|
84
|
+
discount?: string | null | undefined;
|
|
85
|
+
credit_balance_transaction?: string | null | undefined;
|
|
86
|
+
type: "discount" | "credit_balance_transaction";
|
|
87
|
+
amount: number;
|
|
88
|
+
}[], import('convex/values').VObject<{
|
|
89
|
+
discount?: string | null | undefined;
|
|
90
|
+
credit_balance_transaction?: string | null | undefined;
|
|
91
|
+
type: "discount" | "credit_balance_transaction";
|
|
92
|
+
amount: number;
|
|
93
|
+
}, {
|
|
94
|
+
amount: import('convex/values').VFloat64<number, "required">;
|
|
95
|
+
credit_balance_transaction: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
96
|
+
discount: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
97
|
+
type: import('convex/values').VUnion<"discount" | "credit_balance_transaction", [import('convex/values').VLiteral<"credit_balance_transaction", "required">, import('convex/values').VLiteral<"discount", "required">], "required", never>;
|
|
98
|
+
}, "required", "type" | "amount" | "discount" | "credit_balance_transaction">, "required">;
|
|
99
|
+
refunds: import('convex/values').VArray<{
|
|
100
|
+
amount_refunded: number;
|
|
101
|
+
refund: string;
|
|
102
|
+
}[], import('convex/values').VObject<{
|
|
103
|
+
amount_refunded: number;
|
|
104
|
+
refund: string;
|
|
105
|
+
}, {
|
|
106
|
+
amount_refunded: import('convex/values').VFloat64<number, "required">;
|
|
107
|
+
refund: import('convex/values').VString<string, "required">;
|
|
108
|
+
}, "required", "amount_refunded" | "refund">, "required">;
|
|
109
|
+
shipping_cost: import('convex/values').VAny<any, "required", string>;
|
|
110
|
+
subtotal_excluding_tax: import('convex/values').VUnion<number | null | undefined, [import('convex/values').VFloat64<number, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
111
|
+
total_excluding_tax: import('convex/values').VUnion<number | null | undefined, [import('convex/values').VFloat64<number, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
112
|
+
total_taxes: import('convex/values').VAny<any, "required", string>;
|
|
113
|
+
type: import('convex/values').VUnion<"mixed" | "post_payment" | "pre_payment", [import('convex/values').VLiteral<"mixed", "required">, import('convex/values').VLiteral<"post_payment", "required">, import('convex/values').VLiteral<"pre_payment", "required">], "required", never>;
|
|
114
|
+
voided_at: import('convex/values').VUnion<number | null | undefined, [import('convex/values').VFloat64<number, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
115
|
+
};
|
|
116
|
+
export declare const CreditNoteObject: import('convex/values').VObject<{
|
|
117
|
+
customer?: string | null | undefined;
|
|
118
|
+
metadata?: Record<string, string | number | null> | null | undefined;
|
|
119
|
+
invoice?: string | null | undefined;
|
|
120
|
+
memo?: string | null | undefined;
|
|
121
|
+
customer_balance_transaction?: string | null | undefined;
|
|
122
|
+
effective_at?: number | null | undefined;
|
|
123
|
+
out_of_band_amount?: number | null | undefined;
|
|
124
|
+
subtotal_excluding_tax?: number | null | undefined;
|
|
125
|
+
total_excluding_tax?: number | null | undefined;
|
|
126
|
+
voided_at?: number | null | undefined;
|
|
127
|
+
number: string;
|
|
128
|
+
object: string;
|
|
129
|
+
type: "mixed" | "post_payment" | "pre_payment";
|
|
130
|
+
id: string;
|
|
131
|
+
amount: number;
|
|
132
|
+
currency: string;
|
|
133
|
+
status: "issued" | "void";
|
|
134
|
+
created: number;
|
|
135
|
+
livemode: boolean;
|
|
136
|
+
refunds: {
|
|
137
|
+
amount_refunded: number;
|
|
138
|
+
refund: string;
|
|
139
|
+
}[];
|
|
140
|
+
shipping_cost: any;
|
|
141
|
+
lines: any;
|
|
142
|
+
reason: "duplicate" | "fraudulent" | "order_change" | "product_unsatisfactory" | null;
|
|
143
|
+
subtotal: number;
|
|
144
|
+
total: number;
|
|
145
|
+
amount_shipping: number;
|
|
146
|
+
discount_amount: number;
|
|
147
|
+
discount_amounts: {
|
|
148
|
+
amount: number;
|
|
149
|
+
discount: string;
|
|
150
|
+
}[];
|
|
151
|
+
pdf: string;
|
|
152
|
+
post_payment_amount: number;
|
|
153
|
+
pre_payment_amount: number;
|
|
154
|
+
pretax_credit_amounts: {
|
|
155
|
+
discount?: string | null | undefined;
|
|
156
|
+
credit_balance_transaction?: string | null | undefined;
|
|
157
|
+
type: "discount" | "credit_balance_transaction";
|
|
158
|
+
amount: number;
|
|
159
|
+
}[];
|
|
160
|
+
total_taxes: any;
|
|
161
|
+
}, {
|
|
162
|
+
id: import('convex/values').VString<string, "required">;
|
|
163
|
+
currency: import('convex/values').VString<string, "required">;
|
|
164
|
+
invoice: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
165
|
+
lines: import('convex/values').VAny<any, "required", string>;
|
|
166
|
+
memo: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
167
|
+
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>;
|
|
168
|
+
reason: import('convex/values').VUnion<"duplicate" | "fraudulent" | "order_change" | "product_unsatisfactory" | null, [import('convex/values').VLiteral<"duplicate", "required">, import('convex/values').VLiteral<"fraudulent", "required">, import('convex/values').VLiteral<"order_change", "required">, import('convex/values').VLiteral<"product_unsatisfactory", "required">, import('convex/values').VNull<null, "required">], "required", never>;
|
|
169
|
+
status: import('convex/values').VUnion<"issued" | "void", [import('convex/values').VLiteral<"issued", "required">, import('convex/values').VLiteral<"void", "required">], "required", never>;
|
|
170
|
+
subtotal: import('convex/values').VFloat64<number, "required">;
|
|
171
|
+
total: import('convex/values').VFloat64<number, "required">;
|
|
172
|
+
object: import('convex/values').VString<string, "required">;
|
|
173
|
+
amount: import('convex/values').VFloat64<number, "required">;
|
|
174
|
+
amount_shipping: import('convex/values').VFloat64<number, "required">;
|
|
175
|
+
created: import('convex/values').VFloat64<number, "required">;
|
|
176
|
+
customer: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
177
|
+
customer_balance_transaction: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
178
|
+
discount_amount: import('convex/values').VFloat64<number, "required">;
|
|
179
|
+
discount_amounts: import('convex/values').VArray<{
|
|
180
|
+
amount: number;
|
|
181
|
+
discount: string;
|
|
182
|
+
}[], import('convex/values').VObject<{
|
|
183
|
+
amount: number;
|
|
184
|
+
discount: string;
|
|
185
|
+
}, {
|
|
186
|
+
amount: import('convex/values').VFloat64<number, "required">;
|
|
187
|
+
discount: import('convex/values').VString<string, "required">;
|
|
188
|
+
}, "required", "amount" | "discount">, "required">;
|
|
189
|
+
effective_at: import('convex/values').VUnion<number | null | undefined, [import('convex/values').VFloat64<number, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
190
|
+
livemode: import('convex/values').VBoolean<boolean, "required">;
|
|
191
|
+
number: import('convex/values').VString<string, "required">;
|
|
192
|
+
out_of_band_amount: import('convex/values').VUnion<number | null | undefined, [import('convex/values').VFloat64<number, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
193
|
+
pdf: import('convex/values').VString<string, "required">;
|
|
194
|
+
post_payment_amount: import('convex/values').VFloat64<number, "required">;
|
|
195
|
+
pre_payment_amount: import('convex/values').VFloat64<number, "required">;
|
|
196
|
+
pretax_credit_amounts: import('convex/values').VArray<{
|
|
197
|
+
discount?: string | null | undefined;
|
|
198
|
+
credit_balance_transaction?: string | null | undefined;
|
|
199
|
+
type: "discount" | "credit_balance_transaction";
|
|
200
|
+
amount: number;
|
|
201
|
+
}[], import('convex/values').VObject<{
|
|
202
|
+
discount?: string | null | undefined;
|
|
203
|
+
credit_balance_transaction?: string | null | undefined;
|
|
204
|
+
type: "discount" | "credit_balance_transaction";
|
|
205
|
+
amount: number;
|
|
206
|
+
}, {
|
|
207
|
+
amount: import('convex/values').VFloat64<number, "required">;
|
|
208
|
+
credit_balance_transaction: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
209
|
+
discount: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
210
|
+
type: import('convex/values').VUnion<"discount" | "credit_balance_transaction", [import('convex/values').VLiteral<"credit_balance_transaction", "required">, import('convex/values').VLiteral<"discount", "required">], "required", never>;
|
|
211
|
+
}, "required", "type" | "amount" | "discount" | "credit_balance_transaction">, "required">;
|
|
212
|
+
refunds: import('convex/values').VArray<{
|
|
213
|
+
amount_refunded: number;
|
|
214
|
+
refund: string;
|
|
215
|
+
}[], import('convex/values').VObject<{
|
|
216
|
+
amount_refunded: number;
|
|
217
|
+
refund: string;
|
|
218
|
+
}, {
|
|
219
|
+
amount_refunded: import('convex/values').VFloat64<number, "required">;
|
|
220
|
+
refund: import('convex/values').VString<string, "required">;
|
|
221
|
+
}, "required", "amount_refunded" | "refund">, "required">;
|
|
222
|
+
shipping_cost: import('convex/values').VAny<any, "required", string>;
|
|
223
|
+
subtotal_excluding_tax: import('convex/values').VUnion<number | null | undefined, [import('convex/values').VFloat64<number, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
224
|
+
total_excluding_tax: import('convex/values').VUnion<number | null | undefined, [import('convex/values').VFloat64<number, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
225
|
+
total_taxes: import('convex/values').VAny<any, "required", string>;
|
|
226
|
+
type: import('convex/values').VUnion<"mixed" | "post_payment" | "pre_payment", [import('convex/values').VLiteral<"mixed", "required">, import('convex/values').VLiteral<"post_payment", "required">, import('convex/values').VLiteral<"pre_payment", "required">], "required", never>;
|
|
227
|
+
voided_at: import('convex/values').VUnion<number | null | undefined, [import('convex/values').VFloat64<number, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
228
|
+
}, "required", "number" | "object" | "type" | "id" | "amount" | "currency" | "customer" | "metadata" | "status" | "created" | "livemode" | "refunds" | `metadata.${string}` | "invoice" | "shipping_cost" | `shipping_cost.${string}` | "lines" | "memo" | "reason" | "subtotal" | "total" | "amount_shipping" | "customer_balance_transaction" | "discount_amount" | "discount_amounts" | "effective_at" | "out_of_band_amount" | "pdf" | "post_payment_amount" | "pre_payment_amount" | "pretax_credit_amounts" | "subtotal_excluding_tax" | "total_excluding_tax" | "total_taxes" | "voided_at" | `lines.${string}` | `total_taxes.${string}`>;
|
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
import { default as Stripe } from 'stripe';
|
|
2
2
|
export declare const CustomerStripeToConvex: (customer: Stripe.Customer) => {
|
|
3
|
-
currency?: string | null | undefined;
|
|
4
|
-
metadata?: Record<string, string | number | null> | null | undefined;
|
|
5
|
-
name?: string | null | undefined;
|
|
6
3
|
address?: {
|
|
7
4
|
city?: string | null | undefined;
|
|
8
5
|
country?: string | null | undefined;
|
|
@@ -11,11 +8,13 @@ export declare const CustomerStripeToConvex: (customer: Stripe.Customer) => {
|
|
|
11
8
|
postal_code?: string | null | undefined;
|
|
12
9
|
state?: string | null | undefined;
|
|
13
10
|
} | null | undefined;
|
|
11
|
+
email?: string | null | undefined;
|
|
12
|
+
name?: string | null | undefined;
|
|
14
13
|
phone?: string | null | undefined;
|
|
14
|
+
currency?: string | null | undefined;
|
|
15
15
|
description?: string | null | undefined;
|
|
16
|
-
|
|
16
|
+
metadata?: Record<string, string | number | null> | null | undefined;
|
|
17
17
|
shipping?: {
|
|
18
|
-
name?: string | undefined;
|
|
19
18
|
address?: {
|
|
20
19
|
city?: string | null | undefined;
|
|
21
20
|
country?: string | null | undefined;
|
|
@@ -24,10 +23,12 @@ export declare const CustomerStripeToConvex: (customer: Stripe.Customer) => {
|
|
|
24
23
|
postal_code?: string | null | undefined;
|
|
25
24
|
state?: string | null | undefined;
|
|
26
25
|
} | undefined;
|
|
26
|
+
name?: string | undefined;
|
|
27
27
|
phone?: string | null | undefined;
|
|
28
28
|
carrier?: string | null | undefined;
|
|
29
29
|
tracking_number?: string | null | undefined;
|
|
30
30
|
} | null | undefined;
|
|
31
|
+
discount?: any;
|
|
31
32
|
tax?: {
|
|
32
33
|
ip_address?: string | null | undefined;
|
|
33
34
|
automatic_tax: "failed" | "not_collecting" | "supported" | "unrecognized_location";
|
|
@@ -40,7 +41,6 @@ export declare const CustomerStripeToConvex: (customer: Stripe.Customer) => {
|
|
|
40
41
|
cash_balance?: any;
|
|
41
42
|
default_source?: string | null | undefined;
|
|
42
43
|
delinquent?: boolean | null | undefined;
|
|
43
|
-
discount?: any;
|
|
44
44
|
invoice_credit_balance?: any;
|
|
45
45
|
invoice_prefix?: string | null | undefined;
|
|
46
46
|
invoice_settings?: any;
|
|
@@ -95,7 +95,6 @@ export declare const CustomerSchema: {
|
|
|
95
95
|
name: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
96
96
|
phone: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
97
97
|
shipping: import('convex/values').VUnion<{
|
|
98
|
-
name?: string | undefined;
|
|
99
98
|
address?: {
|
|
100
99
|
city?: string | null | undefined;
|
|
101
100
|
country?: string | null | undefined;
|
|
@@ -104,11 +103,11 @@ export declare const CustomerSchema: {
|
|
|
104
103
|
postal_code?: string | null | undefined;
|
|
105
104
|
state?: string | null | undefined;
|
|
106
105
|
} | undefined;
|
|
106
|
+
name?: string | undefined;
|
|
107
107
|
phone?: string | null | undefined;
|
|
108
108
|
carrier?: string | null | undefined;
|
|
109
109
|
tracking_number?: string | null | undefined;
|
|
110
110
|
} | null | undefined, [import('convex/values').VObject<{
|
|
111
|
-
name?: string | undefined;
|
|
112
111
|
address?: {
|
|
113
112
|
city?: string | null | undefined;
|
|
114
113
|
country?: string | null | undefined;
|
|
@@ -117,6 +116,7 @@ export declare const CustomerSchema: {
|
|
|
117
116
|
postal_code?: string | null | undefined;
|
|
118
117
|
state?: string | null | undefined;
|
|
119
118
|
} | undefined;
|
|
119
|
+
name?: string | undefined;
|
|
120
120
|
phone?: string | null | undefined;
|
|
121
121
|
carrier?: string | null | undefined;
|
|
122
122
|
tracking_number?: string | null | undefined;
|
|
@@ -140,7 +140,7 @@ export declare const CustomerSchema: {
|
|
|
140
140
|
phone: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
141
141
|
carrier: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
142
142
|
tracking_number: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
143
|
-
}, "required", "
|
|
143
|
+
}, "required", "address" | "name" | "phone" | "address.city" | "address.country" | "address.line1" | "address.line2" | "address.postal_code" | "address.state" | "carrier" | "tracking_number">, import('convex/values').VNull<null, "required">], "optional", "address" | "name" | "phone" | "address.city" | "address.country" | "address.line1" | "address.line2" | "address.postal_code" | "address.state" | "carrier" | "tracking_number">;
|
|
144
144
|
tax: import('convex/values').VObject<{
|
|
145
145
|
ip_address?: string | null | undefined;
|
|
146
146
|
automatic_tax: "failed" | "not_collecting" | "supported" | "unrecognized_location";
|
|
@@ -187,9 +187,6 @@ export declare const CustomerSchema: {
|
|
|
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
|
};
|
|
189
189
|
export declare const CustomerObject: import('convex/values').VObject<{
|
|
190
|
-
currency?: string | null | undefined;
|
|
191
|
-
metadata?: Record<string, string | number | null> | null | undefined;
|
|
192
|
-
name?: string | null | undefined;
|
|
193
190
|
address?: {
|
|
194
191
|
city?: string | null | undefined;
|
|
195
192
|
country?: string | null | undefined;
|
|
@@ -198,11 +195,13 @@ export declare const CustomerObject: import('convex/values').VObject<{
|
|
|
198
195
|
postal_code?: string | null | undefined;
|
|
199
196
|
state?: string | null | undefined;
|
|
200
197
|
} | null | undefined;
|
|
198
|
+
email?: string | null | undefined;
|
|
199
|
+
name?: string | null | undefined;
|
|
201
200
|
phone?: string | null | undefined;
|
|
201
|
+
currency?: string | null | undefined;
|
|
202
202
|
description?: string | null | undefined;
|
|
203
|
-
|
|
203
|
+
metadata?: Record<string, string | number | null> | null | undefined;
|
|
204
204
|
shipping?: {
|
|
205
|
-
name?: string | undefined;
|
|
206
205
|
address?: {
|
|
207
206
|
city?: string | null | undefined;
|
|
208
207
|
country?: string | null | undefined;
|
|
@@ -211,10 +210,12 @@ export declare const CustomerObject: import('convex/values').VObject<{
|
|
|
211
210
|
postal_code?: string | null | undefined;
|
|
212
211
|
state?: string | null | undefined;
|
|
213
212
|
} | undefined;
|
|
213
|
+
name?: string | undefined;
|
|
214
214
|
phone?: string | null | undefined;
|
|
215
215
|
carrier?: string | null | undefined;
|
|
216
216
|
tracking_number?: string | null | undefined;
|
|
217
217
|
} | null | undefined;
|
|
218
|
+
discount?: any;
|
|
218
219
|
tax?: {
|
|
219
220
|
ip_address?: string | null | undefined;
|
|
220
221
|
automatic_tax: "failed" | "not_collecting" | "supported" | "unrecognized_location";
|
|
@@ -227,7 +228,6 @@ export declare const CustomerObject: import('convex/values').VObject<{
|
|
|
227
228
|
cash_balance?: any;
|
|
228
229
|
default_source?: string | null | undefined;
|
|
229
230
|
delinquent?: boolean | null | undefined;
|
|
230
|
-
discount?: any;
|
|
231
231
|
invoice_credit_balance?: any;
|
|
232
232
|
invoice_prefix?: string | null | undefined;
|
|
233
233
|
invoice_settings?: any;
|
|
@@ -273,7 +273,6 @@ export declare const CustomerObject: import('convex/values').VObject<{
|
|
|
273
273
|
name: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
274
274
|
phone: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
275
275
|
shipping: import('convex/values').VUnion<{
|
|
276
|
-
name?: string | undefined;
|
|
277
276
|
address?: {
|
|
278
277
|
city?: string | null | undefined;
|
|
279
278
|
country?: string | null | undefined;
|
|
@@ -282,11 +281,11 @@ export declare const CustomerObject: import('convex/values').VObject<{
|
|
|
282
281
|
postal_code?: string | null | undefined;
|
|
283
282
|
state?: string | null | undefined;
|
|
284
283
|
} | undefined;
|
|
284
|
+
name?: string | undefined;
|
|
285
285
|
phone?: string | null | undefined;
|
|
286
286
|
carrier?: string | null | undefined;
|
|
287
287
|
tracking_number?: string | null | undefined;
|
|
288
288
|
} | null | undefined, [import('convex/values').VObject<{
|
|
289
|
-
name?: string | undefined;
|
|
290
289
|
address?: {
|
|
291
290
|
city?: string | null | undefined;
|
|
292
291
|
country?: string | null | undefined;
|
|
@@ -295,6 +294,7 @@ export declare const CustomerObject: import('convex/values').VObject<{
|
|
|
295
294
|
postal_code?: string | null | undefined;
|
|
296
295
|
state?: string | null | undefined;
|
|
297
296
|
} | undefined;
|
|
297
|
+
name?: string | undefined;
|
|
298
298
|
phone?: string | null | undefined;
|
|
299
299
|
carrier?: string | null | undefined;
|
|
300
300
|
tracking_number?: string | null | undefined;
|
|
@@ -318,7 +318,7 @@ export declare const CustomerObject: import('convex/values').VObject<{
|
|
|
318
318
|
phone: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
319
319
|
carrier: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
320
320
|
tracking_number: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
321
|
-
}, "required", "
|
|
321
|
+
}, "required", "address" | "name" | "phone" | "address.city" | "address.country" | "address.line1" | "address.line2" | "address.postal_code" | "address.state" | "carrier" | "tracking_number">, import('convex/values').VNull<null, "required">], "optional", "address" | "name" | "phone" | "address.city" | "address.country" | "address.line1" | "address.line2" | "address.postal_code" | "address.state" | "carrier" | "tracking_number">;
|
|
322
322
|
tax: import('convex/values').VObject<{
|
|
323
323
|
ip_address?: string | null | undefined;
|
|
324
324
|
automatic_tax: "failed" | "not_collecting" | "supported" | "unrecognized_location";
|
|
@@ -363,4 +363,4 @@ export declare const CustomerObject: import('convex/values').VObject<{
|
|
|
363
363
|
tax_exempt: import('convex/values').VUnion<"reverse" | "exempt" | "none" | null | undefined, [import('convex/values').VLiteral<"exempt", "required">, import('convex/values').VLiteral<"none", "required">, import('convex/values').VLiteral<"reverse", "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
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
|
-
}, "required", "object" | "id" | "
|
|
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}`>;
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { default as Stripe } from 'stripe';
|
|
2
|
+
export declare const DisputeStripeToConvex: (dispute: Stripe.Dispute) => {
|
|
3
|
+
metadata?: Record<string, string | number | null> | null | undefined;
|
|
4
|
+
payment_intent?: string | null | undefined;
|
|
5
|
+
object: string;
|
|
6
|
+
id: string;
|
|
7
|
+
amount: number;
|
|
8
|
+
currency: string;
|
|
9
|
+
payment_method_details: any;
|
|
10
|
+
status: "lost" | "needs_response" | "prevented" | "under_review" | "warning_closed" | "warning_needs_response" | "warning_under_review" | "won";
|
|
11
|
+
created: number;
|
|
12
|
+
livemode: boolean;
|
|
13
|
+
charge: string;
|
|
14
|
+
reason: string;
|
|
15
|
+
evidence: any;
|
|
16
|
+
balance_transactions: any[];
|
|
17
|
+
enhanced_eligibility_types: ("visa_compelling_evidence_3" | "visa_compliance")[];
|
|
18
|
+
evidence_details: any;
|
|
19
|
+
is_charge_refundable: boolean;
|
|
20
|
+
};
|
|
21
|
+
export declare const DisputeSchema: {
|
|
22
|
+
id: import('convex/values').VString<string, "required">;
|
|
23
|
+
amount: import('convex/values').VFloat64<number, "required">;
|
|
24
|
+
charge: import('convex/values').VString<string, "required">;
|
|
25
|
+
currency: import('convex/values').VString<string, "required">;
|
|
26
|
+
evidence: import('convex/values').VAny<any, "required", string>;
|
|
27
|
+
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>;
|
|
28
|
+
payment_intent: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
29
|
+
reason: import('convex/values').VString<string, "required">;
|
|
30
|
+
status: import('convex/values').VUnion<"lost" | "needs_response" | "prevented" | "under_review" | "warning_closed" | "warning_needs_response" | "warning_under_review" | "won", [import('convex/values').VLiteral<"lost", "required">, import('convex/values').VLiteral<"needs_response", "required">, import('convex/values').VLiteral<"prevented", "required">, import('convex/values').VLiteral<"under_review", "required">, import('convex/values').VLiteral<"warning_closed", "required">, import('convex/values').VLiteral<"warning_needs_response", "required">, import('convex/values').VLiteral<"warning_under_review", "required">, import('convex/values').VLiteral<"won", "required">], "required", never>;
|
|
31
|
+
object: import('convex/values').VString<string, "required">;
|
|
32
|
+
balance_transactions: import('convex/values').VArray<any[], import('convex/values').VAny<any, "required", string>, "required">;
|
|
33
|
+
created: import('convex/values').VFloat64<number, "required">;
|
|
34
|
+
enhanced_eligibility_types: import('convex/values').VArray<("visa_compelling_evidence_3" | "visa_compliance")[], import('convex/values').VUnion<"visa_compelling_evidence_3" | "visa_compliance", [import('convex/values').VLiteral<"visa_compelling_evidence_3", "required">, import('convex/values').VLiteral<"visa_compliance", "required">], "required", never>, "required">;
|
|
35
|
+
evidence_details: import('convex/values').VAny<any, "required", string>;
|
|
36
|
+
is_charge_refundable: import('convex/values').VBoolean<boolean, "required">;
|
|
37
|
+
livemode: import('convex/values').VBoolean<boolean, "required">;
|
|
38
|
+
payment_method_details: import('convex/values').VAny<any, "required", string>;
|
|
39
|
+
};
|
|
40
|
+
export declare const DisputeObject: import('convex/values').VObject<{
|
|
41
|
+
metadata?: Record<string, string | number | null> | null | undefined;
|
|
42
|
+
payment_intent?: string | null | undefined;
|
|
43
|
+
object: string;
|
|
44
|
+
id: string;
|
|
45
|
+
amount: number;
|
|
46
|
+
currency: string;
|
|
47
|
+
payment_method_details: any;
|
|
48
|
+
status: "lost" | "needs_response" | "prevented" | "under_review" | "warning_closed" | "warning_needs_response" | "warning_under_review" | "won";
|
|
49
|
+
created: number;
|
|
50
|
+
livemode: boolean;
|
|
51
|
+
charge: string;
|
|
52
|
+
reason: string;
|
|
53
|
+
evidence: any;
|
|
54
|
+
balance_transactions: any[];
|
|
55
|
+
enhanced_eligibility_types: ("visa_compelling_evidence_3" | "visa_compliance")[];
|
|
56
|
+
evidence_details: any;
|
|
57
|
+
is_charge_refundable: boolean;
|
|
58
|
+
}, {
|
|
59
|
+
id: import('convex/values').VString<string, "required">;
|
|
60
|
+
amount: import('convex/values').VFloat64<number, "required">;
|
|
61
|
+
charge: import('convex/values').VString<string, "required">;
|
|
62
|
+
currency: import('convex/values').VString<string, "required">;
|
|
63
|
+
evidence: import('convex/values').VAny<any, "required", string>;
|
|
64
|
+
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>;
|
|
65
|
+
payment_intent: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
66
|
+
reason: import('convex/values').VString<string, "required">;
|
|
67
|
+
status: import('convex/values').VUnion<"lost" | "needs_response" | "prevented" | "under_review" | "warning_closed" | "warning_needs_response" | "warning_under_review" | "won", [import('convex/values').VLiteral<"lost", "required">, import('convex/values').VLiteral<"needs_response", "required">, import('convex/values').VLiteral<"prevented", "required">, import('convex/values').VLiteral<"under_review", "required">, import('convex/values').VLiteral<"warning_closed", "required">, import('convex/values').VLiteral<"warning_needs_response", "required">, import('convex/values').VLiteral<"warning_under_review", "required">, import('convex/values').VLiteral<"won", "required">], "required", never>;
|
|
68
|
+
object: import('convex/values').VString<string, "required">;
|
|
69
|
+
balance_transactions: import('convex/values').VArray<any[], import('convex/values').VAny<any, "required", string>, "required">;
|
|
70
|
+
created: import('convex/values').VFloat64<number, "required">;
|
|
71
|
+
enhanced_eligibility_types: import('convex/values').VArray<("visa_compelling_evidence_3" | "visa_compliance")[], import('convex/values').VUnion<"visa_compelling_evidence_3" | "visa_compliance", [import('convex/values').VLiteral<"visa_compelling_evidence_3", "required">, import('convex/values').VLiteral<"visa_compliance", "required">], "required", never>, "required">;
|
|
72
|
+
evidence_details: import('convex/values').VAny<any, "required", string>;
|
|
73
|
+
is_charge_refundable: import('convex/values').VBoolean<boolean, "required">;
|
|
74
|
+
livemode: import('convex/values').VBoolean<boolean, "required">;
|
|
75
|
+
payment_method_details: import('convex/values').VAny<any, "required", string>;
|
|
76
|
+
}, "required", "object" | "id" | "amount" | "currency" | "metadata" | "payment_intent" | "payment_method_details" | "status" | "created" | "livemode" | `metadata.${string}` | `payment_method_details.${string}` | "charge" | "reason" | "evidence" | "balance_transactions" | "enhanced_eligibility_types" | "evidence_details" | "is_charge_refundable" | `evidence.${string}` | `evidence_details.${string}`>;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { default as Stripe } from 'stripe';
|
|
2
|
+
export declare const EarlyFraudWarningStripeToConvex: (earlyFraudWarning: Stripe.Radar.EarlyFraudWarning) => {
|
|
3
|
+
payment_intent?: string | null | undefined;
|
|
4
|
+
object: string;
|
|
5
|
+
id: string;
|
|
6
|
+
created: number;
|
|
7
|
+
livemode: boolean;
|
|
8
|
+
charge: string;
|
|
9
|
+
actionable: boolean;
|
|
10
|
+
fraud_type: string;
|
|
11
|
+
};
|
|
12
|
+
export declare const EarlyFraudWarningSchema: {
|
|
13
|
+
id: import('convex/values').VString<string, "required">;
|
|
14
|
+
object: import('convex/values').VString<string, "required">;
|
|
15
|
+
actionable: import('convex/values').VBoolean<boolean, "required">;
|
|
16
|
+
charge: import('convex/values').VString<string, "required">;
|
|
17
|
+
created: import('convex/values').VFloat64<number, "required">;
|
|
18
|
+
fraud_type: import('convex/values').VString<string, "required">;
|
|
19
|
+
livemode: import('convex/values').VBoolean<boolean, "required">;
|
|
20
|
+
payment_intent: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
21
|
+
};
|
|
22
|
+
export declare const EarlyFraudWarningObject: import('convex/values').VObject<{
|
|
23
|
+
payment_intent?: string | null | undefined;
|
|
24
|
+
object: string;
|
|
25
|
+
id: string;
|
|
26
|
+
created: number;
|
|
27
|
+
livemode: boolean;
|
|
28
|
+
charge: string;
|
|
29
|
+
actionable: boolean;
|
|
30
|
+
fraud_type: string;
|
|
31
|
+
}, {
|
|
32
|
+
id: import('convex/values').VString<string, "required">;
|
|
33
|
+
object: import('convex/values').VString<string, "required">;
|
|
34
|
+
actionable: import('convex/values').VBoolean<boolean, "required">;
|
|
35
|
+
charge: import('convex/values').VString<string, "required">;
|
|
36
|
+
created: import('convex/values').VFloat64<number, "required">;
|
|
37
|
+
fraud_type: import('convex/values').VString<string, "required">;
|
|
38
|
+
livemode: import('convex/values').VBoolean<boolean, "required">;
|
|
39
|
+
payment_intent: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
40
|
+
}, "required", "object" | "id" | "payment_intent" | "created" | "livemode" | "charge" | "actionable" | "fraud_type">;
|