@raideno/convex-stripe 0.1.8 → 0.1.10
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 +996 -0
- package/dist/server.js +305 -276
- package/package.json +1 -7
- package/dist/index.js +0 -1
- package/dist/server/actions/index.d.ts +0 -4
- package/dist/server/actions/pay.d.ts +0 -579
- package/dist/server/actions/portal.d.ts +0 -26
- package/dist/server/actions/setup.d.ts +0 -19
- package/dist/server/actions/subscribe.d.ts +0 -44
- package/dist/server/helpers.d.ts +0 -28
- package/dist/server/index.d.ts +0 -967
- package/dist/server/logger.d.ts +0 -8
- package/dist/server/redirects/index.d.ts +0 -45
- package/dist/server/redirects/pay.d.ts +0 -5
- package/dist/server/redirects/portal.d.ts +0 -3
- package/dist/server/redirects/subscribe.d.ts +0 -3
- package/dist/server/redirects/types.d.ts +0 -9
- package/dist/server/schema/charge.d.ts +0 -294
- package/dist/server/schema/checkout-session.d.ts +0 -256
- package/dist/server/schema/coupon.d.ts +0 -112
- package/dist/server/schema/credit-note.d.ts +0 -228
- package/dist/server/schema/customer.d.ts +0 -366
- package/dist/server/schema/dispute.d.ts +0 -76
- package/dist/server/schema/early-fraud-warning.d.ts +0 -40
- package/dist/server/schema/index.d.ts +0 -6061
- package/dist/server/schema/invoice.d.ts +0 -314
- package/dist/server/schema/payment-intent.d.ts +0 -311
- package/dist/server/schema/payment-method.d.ts +0 -248
- package/dist/server/schema/payout.d.ts +0 -140
- package/dist/server/schema/plan.d.ts +0 -112
- package/dist/server/schema/price.d.ts +0 -148
- package/dist/server/schema/product.d.ts +0 -132
- package/dist/server/schema/promotion-code.d.ts +0 -266
- package/dist/server/schema/refund.d.ts +0 -92
- package/dist/server/schema/review.d.ts +0 -152
- package/dist/server/schema/setup-intent.d.ts +0 -156
- package/dist/server/schema/subscription-schedule.d.ts +0 -468
- package/dist/server/schema/subscription.d.ts +0 -4
- package/dist/server/schema/tax-id.d.ts +0 -120
- package/dist/server/store/index.d.ts +0 -960
- package/dist/server/store/operations/delete-by-id.d.ts +0 -3
- package/dist/server/store/operations/index.d.ts +0 -5
- package/dist/server/store/operations/select-all.d.ts +0 -3
- package/dist/server/store/operations/select-by-id.d.ts +0 -4
- package/dist/server/store/operations/select-one.d.ts +0 -3
- package/dist/server/store/operations/upsert.d.ts +0 -4
- package/dist/server/store/types.d.ts +0 -70
- package/dist/server/sync/all.d.ts +0 -5
- package/dist/server/sync/charges.handler.d.ts +0 -5
- package/dist/server/sync/checkout-sessions.handler.d.ts +0 -5
- package/dist/server/sync/coupons.handler.d.ts +0 -5
- package/dist/server/sync/credit-notes.handler.d.ts +0 -5
- package/dist/server/sync/customers.handler.d.ts +0 -5
- package/dist/server/sync/disputes.handler.d.ts +0 -5
- package/dist/server/sync/early-fraud-warnings.handler.d.ts +0 -5
- package/dist/server/sync/invoices.handler.d.ts +0 -5
- package/dist/server/sync/payment-intents.handler.d.ts +0 -5
- package/dist/server/sync/payment-methods.handler.d.ts +0 -5
- package/dist/server/sync/payouts.handler.d.ts +0 -5
- package/dist/server/sync/plans.handler.d.ts +0 -5
- package/dist/server/sync/prices.handler.d.ts +0 -5
- package/dist/server/sync/products.handler.d.ts +0 -5
- package/dist/server/sync/promotion-codes.handler.d.ts +0 -5
- package/dist/server/sync/refunds.handler.d.ts +0 -5
- package/dist/server/sync/reviews.handler.d.ts +0 -5
- package/dist/server/sync/setup-intents.handler.d.ts +0 -5
- package/dist/server/sync/subscription-schedules.handler.d.ts +0 -5
- package/dist/server/sync/subscription.d.ts +0 -12
- package/dist/server/sync/subscriptions.handler.d.ts +0 -5
- package/dist/server/sync/tax-id.handler.d.ts +0 -5
- package/dist/server/types.d.ts +0 -22
- package/dist/server/webhooks/charges.handler.d.ts +0 -2
- package/dist/server/webhooks/checkout-sessions.handler.d.ts +0 -2
- package/dist/server/webhooks/coupons.handler.d.ts +0 -2
- package/dist/server/webhooks/credit-notes.handler.d.ts +0 -2
- package/dist/server/webhooks/customers.handler.d.ts +0 -2
- package/dist/server/webhooks/disputes.handler.d.ts +0 -2
- package/dist/server/webhooks/early-fraud-warnings.handler.d.ts +0 -2
- package/dist/server/webhooks/index.d.ts +0 -2
- package/dist/server/webhooks/invoices.handler.d.ts +0 -2
- package/dist/server/webhooks/payment-intents.handler.d.ts +0 -2
- package/dist/server/webhooks/payment-methods.handler.d.ts +0 -2
- package/dist/server/webhooks/payouts.handler.d.ts +0 -2
- package/dist/server/webhooks/plans.handler.d.ts +0 -2
- package/dist/server/webhooks/prices.handler.d.ts +0 -2
- package/dist/server/webhooks/products.handler.d.ts +0 -2
- package/dist/server/webhooks/promotion-codes.handler.d.ts +0 -2
- package/dist/server/webhooks/refunds.handler.d.ts +0 -2
- package/dist/server/webhooks/reviews.handler.d.ts +0 -2
- package/dist/server/webhooks/setup-intent.handler.d.ts +0 -2
- package/dist/server/webhooks/subscription-schedules.handler.d.ts +0 -2
- package/dist/server/webhooks/subscription.handler.d.ts +0 -2
- package/dist/server/webhooks/tax-id.handler.d.ts +0 -2
- package/dist/server/webhooks/types.d.ts +0 -11
- package/dist/server.d.ts +0 -2
package/dist/index.d.ts
CHANGED
|
@@ -0,0 +1,996 @@
|
|
|
1
|
+
import { default as default_2 } from 'stripe';
|
|
2
|
+
import { GenericActionCtx } from 'convex/server';
|
|
3
|
+
import { GenericDataModel } from 'convex/server';
|
|
4
|
+
import { GenericId } from 'convex/values';
|
|
5
|
+
import { HttpRouter } from 'convex/server';
|
|
6
|
+
import { Infer } from 'convex/values';
|
|
7
|
+
import { InputConfiguration } from './types';
|
|
8
|
+
import { Logger } from './logger';
|
|
9
|
+
import { PayImplementation } from './actions';
|
|
10
|
+
import { PortalImplementation } from './actions';
|
|
11
|
+
import { RegisteredAction } from 'convex/server';
|
|
12
|
+
import { RegisteredMutation } from 'convex/server';
|
|
13
|
+
import { RoutableMethod } from 'convex/server';
|
|
14
|
+
import { StripeDataModel } from './schema';
|
|
15
|
+
import { stripeTables } from './schema';
|
|
16
|
+
import { SubscribeImplementation } from './actions';
|
|
17
|
+
|
|
18
|
+
export { InputConfiguration }
|
|
19
|
+
|
|
20
|
+
export declare const internalConvexStripe: (configuration_: InputConfiguration) => {
|
|
21
|
+
stripe: {
|
|
22
|
+
http: {
|
|
23
|
+
webhook: {
|
|
24
|
+
path: string;
|
|
25
|
+
method: RoutableMethod;
|
|
26
|
+
handler: (context: GenericActionCtx<GenericDataModel>, request: Request, stripe?: default_2) => Promise<Response>;
|
|
27
|
+
};
|
|
28
|
+
redirect: {
|
|
29
|
+
readonly pathPrefix: "/stripe/return/";
|
|
30
|
+
readonly method: RoutableMethod;
|
|
31
|
+
readonly handler: (context: GenericActionCtx<GenericDataModel>, request: Request) => Promise<Response>;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
addHttpRoutes: (http: HttpRouter, config?: InputConfiguration) => void;
|
|
35
|
+
portal: (context: GenericActionCtx<StripeDataModel>, args: Infer<typeof PortalImplementation.args>) => Promise<default_2.Response<default_2.BillingPortal.Session>>;
|
|
36
|
+
subscribe: (context: GenericActionCtx<StripeDataModel>, args: Infer<typeof SubscribeImplementation.args>) => Promise<{
|
|
37
|
+
url: string | null;
|
|
38
|
+
}>;
|
|
39
|
+
pay: (context: GenericActionCtx<StripeDataModel>, args: Infer<typeof PayImplementation.args>) => Promise<default_2.Response<default_2.Checkout.Session>>;
|
|
40
|
+
};
|
|
41
|
+
store: RegisteredMutation<"internal", {
|
|
42
|
+
id?: any;
|
|
43
|
+
value?: any;
|
|
44
|
+
idField?: string | undefined;
|
|
45
|
+
data?: any;
|
|
46
|
+
idValue?: any;
|
|
47
|
+
field?: string | undefined;
|
|
48
|
+
operation: string;
|
|
49
|
+
table: string;
|
|
50
|
+
}, Promise<{
|
|
51
|
+
id: GenericId<"stripeProducts" | "stripePrices" | "stripeCustomers" | "stripeSubscriptions" | "stripeCoupons" | "stripePromotionCodes" | "stripePayouts" | "stripeRefunds" | "stripePaymentIntents" | "stripeCheckoutSessions" | "stripeInvoices" | "stripeReviews" | "stripePlans" | "stripeDisputes" | "stripeEarlyFraudWarnings" | "stripeTaxIds" | "stripeSetupIntents" | "stripeCreditNotes" | "stripeCharges" | "stripePaymentMethods" | "stripeSubscriptionSchedules">;
|
|
52
|
+
deleted?: undefined;
|
|
53
|
+
doc?: undefined;
|
|
54
|
+
docs?: undefined;
|
|
55
|
+
} | {
|
|
56
|
+
deleted: boolean;
|
|
57
|
+
id?: undefined;
|
|
58
|
+
doc?: undefined;
|
|
59
|
+
docs?: undefined;
|
|
60
|
+
} | {
|
|
61
|
+
doc: any;
|
|
62
|
+
id?: undefined;
|
|
63
|
+
deleted?: undefined;
|
|
64
|
+
docs?: undefined;
|
|
65
|
+
} | {
|
|
66
|
+
docs: ({
|
|
67
|
+
_id: GenericId<"stripeProducts">;
|
|
68
|
+
_creationTime: number;
|
|
69
|
+
productId: string;
|
|
70
|
+
stripe: {
|
|
71
|
+
metadata?: Record<string, string | number | null> | null | undefined;
|
|
72
|
+
statement_descriptor?: string | null | undefined;
|
|
73
|
+
unit_label?: string | null | undefined;
|
|
74
|
+
object: string;
|
|
75
|
+
id: string;
|
|
76
|
+
name: string;
|
|
77
|
+
description: string | null;
|
|
78
|
+
created: number;
|
|
79
|
+
livemode: boolean;
|
|
80
|
+
url: string | null;
|
|
81
|
+
active: boolean;
|
|
82
|
+
images: string[];
|
|
83
|
+
package_dimensions: {
|
|
84
|
+
length: number;
|
|
85
|
+
height: number;
|
|
86
|
+
weight: number;
|
|
87
|
+
width: number;
|
|
88
|
+
} | null;
|
|
89
|
+
shippable: boolean | null;
|
|
90
|
+
updated: number;
|
|
91
|
+
marketing_features: {
|
|
92
|
+
name?: string | null | undefined;
|
|
93
|
+
}[];
|
|
94
|
+
default_price: string | null;
|
|
95
|
+
};
|
|
96
|
+
lastSyncedAt: number;
|
|
97
|
+
} | {
|
|
98
|
+
_id: GenericId<"stripePrices">;
|
|
99
|
+
_creationTime: number;
|
|
100
|
+
stripe: {
|
|
101
|
+
metadata?: Record<string, string | number | null> | null | undefined;
|
|
102
|
+
object: string;
|
|
103
|
+
type: "one_time" | "recurring";
|
|
104
|
+
id: string;
|
|
105
|
+
currency: string;
|
|
106
|
+
created: number;
|
|
107
|
+
livemode: boolean;
|
|
108
|
+
active: boolean;
|
|
109
|
+
nickname: string | null;
|
|
110
|
+
billing_scheme: "per_unit" | "tiered";
|
|
111
|
+
tiers_mode: "graduated" | "volume" | null;
|
|
112
|
+
recurring: {
|
|
113
|
+
interval: "day" | "week" | "month" | "year";
|
|
114
|
+
interval_count: number;
|
|
115
|
+
meter: string | null;
|
|
116
|
+
trial_period_days: number | null;
|
|
117
|
+
usage_type: "licensed" | "metered";
|
|
118
|
+
} | null;
|
|
119
|
+
productId: string;
|
|
120
|
+
unit_amount: number | null;
|
|
121
|
+
lookup_key: string | null;
|
|
122
|
+
transform_quantity: {
|
|
123
|
+
divide_by: number;
|
|
124
|
+
round: "up" | "down";
|
|
125
|
+
} | null;
|
|
126
|
+
unit_amount_decimal: string | null;
|
|
127
|
+
};
|
|
128
|
+
lastSyncedAt: number;
|
|
129
|
+
priceId: string;
|
|
130
|
+
} | {
|
|
131
|
+
_id: GenericId<"stripeCustomers">;
|
|
132
|
+
_creationTime: number;
|
|
133
|
+
stripe: {
|
|
134
|
+
address?: {
|
|
135
|
+
city?: string | null | undefined;
|
|
136
|
+
country?: string | null | undefined;
|
|
137
|
+
line1?: string | null | undefined;
|
|
138
|
+
line2?: string | null | undefined;
|
|
139
|
+
postal_code?: string | null | undefined;
|
|
140
|
+
state?: string | null | undefined;
|
|
141
|
+
} | null | undefined;
|
|
142
|
+
email?: string | null | undefined;
|
|
143
|
+
name?: string | null | undefined;
|
|
144
|
+
phone?: string | null | undefined;
|
|
145
|
+
currency?: string | null | undefined;
|
|
146
|
+
description?: string | null | undefined;
|
|
147
|
+
metadata?: Record<string, string | number | null> | null | undefined;
|
|
148
|
+
shipping?: {
|
|
149
|
+
address?: {
|
|
150
|
+
city?: string | null | undefined;
|
|
151
|
+
country?: string | null | undefined;
|
|
152
|
+
line1?: string | null | undefined;
|
|
153
|
+
line2?: string | null | undefined;
|
|
154
|
+
postal_code?: string | null | undefined;
|
|
155
|
+
state?: string | null | undefined;
|
|
156
|
+
} | undefined;
|
|
157
|
+
name?: string | undefined;
|
|
158
|
+
phone?: string | null | undefined;
|
|
159
|
+
carrier?: string | null | undefined;
|
|
160
|
+
tracking_number?: string | null | undefined;
|
|
161
|
+
} | null | undefined;
|
|
162
|
+
discount?: any;
|
|
163
|
+
tax?: {
|
|
164
|
+
ip_address?: string | null | undefined;
|
|
165
|
+
automatic_tax: "failed" | "not_collecting" | "supported" | "unrecognized_location";
|
|
166
|
+
location: {
|
|
167
|
+
state?: string | null | undefined;
|
|
168
|
+
country: string;
|
|
169
|
+
source: string;
|
|
170
|
+
} | null;
|
|
171
|
+
} | undefined;
|
|
172
|
+
cash_balance?: any;
|
|
173
|
+
default_source?: string | null | undefined;
|
|
174
|
+
delinquent?: boolean | null | undefined;
|
|
175
|
+
invoice_credit_balance?: any;
|
|
176
|
+
invoice_prefix?: string | null | undefined;
|
|
177
|
+
invoice_settings?: any;
|
|
178
|
+
next_invoice_sequence?: number | null | undefined;
|
|
179
|
+
preferred_locales?: string[] | null | undefined;
|
|
180
|
+
sources?: any;
|
|
181
|
+
subscriptions?: any;
|
|
182
|
+
tax_exempt?: "reverse" | "none" | "exempt" | null | undefined;
|
|
183
|
+
tax_ids?: any;
|
|
184
|
+
test_clock?: string | null | undefined;
|
|
185
|
+
object: string;
|
|
186
|
+
id: string;
|
|
187
|
+
created: number;
|
|
188
|
+
livemode: boolean;
|
|
189
|
+
balance: number;
|
|
190
|
+
};
|
|
191
|
+
lastSyncedAt: number;
|
|
192
|
+
customerId: string;
|
|
193
|
+
entityId: string;
|
|
194
|
+
} | {
|
|
195
|
+
_id: GenericId<"stripeSubscriptions">;
|
|
196
|
+
_creationTime: number;
|
|
197
|
+
stripe: any;
|
|
198
|
+
lastSyncedAt: number;
|
|
199
|
+
customerId: string;
|
|
200
|
+
subscriptionId: string | null;
|
|
201
|
+
} | {
|
|
202
|
+
_id: GenericId<"stripeCoupons">;
|
|
203
|
+
_creationTime: number;
|
|
204
|
+
stripe: {
|
|
205
|
+
name?: string | null | undefined;
|
|
206
|
+
currency?: string | null | undefined;
|
|
207
|
+
metadata?: Record<string, string | number | null> | null | undefined;
|
|
208
|
+
amount_off?: number | null | undefined;
|
|
209
|
+
percent_off?: number | null | undefined;
|
|
210
|
+
applies_to?: {
|
|
211
|
+
products: string[];
|
|
212
|
+
} | null | undefined;
|
|
213
|
+
currency_options?: Record<string, {
|
|
214
|
+
amount_off: number;
|
|
215
|
+
}> | null | undefined;
|
|
216
|
+
duration_in_months?: number | null | undefined;
|
|
217
|
+
max_redemptions?: number | null | undefined;
|
|
218
|
+
redeem_by?: number | null | undefined;
|
|
219
|
+
object: string;
|
|
220
|
+
id: string;
|
|
221
|
+
created: number;
|
|
222
|
+
livemode: boolean;
|
|
223
|
+
duration: "forever" | "once" | "repeating";
|
|
224
|
+
times_redeemed: number;
|
|
225
|
+
valid: boolean;
|
|
226
|
+
};
|
|
227
|
+
lastSyncedAt: number;
|
|
228
|
+
couponId: string;
|
|
229
|
+
} | {
|
|
230
|
+
_id: GenericId<"stripePromotionCodes">;
|
|
231
|
+
_creationTime: number;
|
|
232
|
+
stripe: {
|
|
233
|
+
customer?: string | null | undefined;
|
|
234
|
+
metadata?: Record<string, string | number | null> | null | undefined;
|
|
235
|
+
expires_at?: number | null | undefined;
|
|
236
|
+
max_redemptions?: number | null | undefined;
|
|
237
|
+
object: string;
|
|
238
|
+
id: string;
|
|
239
|
+
created: number;
|
|
240
|
+
livemode: boolean;
|
|
241
|
+
times_redeemed: number;
|
|
242
|
+
coupon: {
|
|
243
|
+
name?: string | null | undefined;
|
|
244
|
+
currency?: string | null | undefined;
|
|
245
|
+
metadata?: Record<string, string | number | null> | null | undefined;
|
|
246
|
+
amount_off?: number | null | undefined;
|
|
247
|
+
percent_off?: number | null | undefined;
|
|
248
|
+
applies_to?: {
|
|
249
|
+
products: string[];
|
|
250
|
+
} | null | undefined;
|
|
251
|
+
currency_options?: Record<string, {
|
|
252
|
+
amount_off: number;
|
|
253
|
+
}> | null | undefined;
|
|
254
|
+
duration_in_months?: number | null | undefined;
|
|
255
|
+
max_redemptions?: number | null | undefined;
|
|
256
|
+
redeem_by?: number | null | undefined;
|
|
257
|
+
object: string;
|
|
258
|
+
id: string;
|
|
259
|
+
created: number;
|
|
260
|
+
livemode: boolean;
|
|
261
|
+
duration: "forever" | "once" | "repeating";
|
|
262
|
+
times_redeemed: number;
|
|
263
|
+
valid: boolean;
|
|
264
|
+
};
|
|
265
|
+
code: string;
|
|
266
|
+
active: boolean;
|
|
267
|
+
restrictions: {
|
|
268
|
+
currency_options?: Record<string, {
|
|
269
|
+
minimum_amount?: number | null | undefined;
|
|
270
|
+
}> | null | undefined;
|
|
271
|
+
minimum_amount?: number | null | undefined;
|
|
272
|
+
first_time_transaction?: boolean | undefined;
|
|
273
|
+
minimum_amount_currency?: string | null | undefined;
|
|
274
|
+
};
|
|
275
|
+
};
|
|
276
|
+
lastSyncedAt: number;
|
|
277
|
+
promotionCodeId: string;
|
|
278
|
+
} | {
|
|
279
|
+
_id: GenericId<"stripePayouts">;
|
|
280
|
+
_creationTime: number;
|
|
281
|
+
stripe: {
|
|
282
|
+
balance_transaction?: string | null | undefined;
|
|
283
|
+
currency?: string | null | undefined;
|
|
284
|
+
description?: string | null | undefined;
|
|
285
|
+
metadata?: Record<string, string | number | null> | null | undefined;
|
|
286
|
+
statement_descriptor?: string | null | undefined;
|
|
287
|
+
application_fee?: string | null | undefined;
|
|
288
|
+
application_fee_amount?: number | null | undefined;
|
|
289
|
+
failure_balance_transaction?: string | null | undefined;
|
|
290
|
+
failure_code?: string | null | undefined;
|
|
291
|
+
failure_message?: string | null | undefined;
|
|
292
|
+
destination?: string | null | undefined;
|
|
293
|
+
original_payout?: string | null | undefined;
|
|
294
|
+
payout_method?: string | null | undefined;
|
|
295
|
+
reconciliation_status?: "completed" | "in_progress" | "not_applicable" | null | undefined;
|
|
296
|
+
reversed_by?: string | null | undefined;
|
|
297
|
+
trace_id?: {
|
|
298
|
+
value?: string | null | undefined;
|
|
299
|
+
status: string;
|
|
300
|
+
} | null | undefined;
|
|
301
|
+
object: string;
|
|
302
|
+
type: "card" | "bank_account";
|
|
303
|
+
id: string;
|
|
304
|
+
amount: number;
|
|
305
|
+
status: string;
|
|
306
|
+
created: number;
|
|
307
|
+
livemode: boolean;
|
|
308
|
+
automatic: boolean;
|
|
309
|
+
arrival_date: number;
|
|
310
|
+
method: string;
|
|
311
|
+
source_type: string;
|
|
312
|
+
};
|
|
313
|
+
lastSyncedAt: number;
|
|
314
|
+
payoutId: string;
|
|
315
|
+
} | {
|
|
316
|
+
_id: GenericId<"stripeRefunds">;
|
|
317
|
+
_creationTime: number;
|
|
318
|
+
stripe: {
|
|
319
|
+
balance_transaction?: string | null | undefined;
|
|
320
|
+
description?: string | null | undefined;
|
|
321
|
+
metadata?: Record<string, string | number | null> | null | undefined;
|
|
322
|
+
payment_intent?: string | null | undefined;
|
|
323
|
+
status?: string | null | undefined;
|
|
324
|
+
failure_balance_transaction?: string | null | undefined;
|
|
325
|
+
receipt_number?: string | null | undefined;
|
|
326
|
+
charge?: string | null | undefined;
|
|
327
|
+
reason?: string | null | undefined;
|
|
328
|
+
next_action?: any;
|
|
329
|
+
destination_details?: any;
|
|
330
|
+
failure_reason?: string | null | undefined;
|
|
331
|
+
instructions_email?: string | null | undefined;
|
|
332
|
+
pending_reason?: string | null | undefined;
|
|
333
|
+
source_transfer_reversal?: string | null | undefined;
|
|
334
|
+
transfer_reversal?: string | null | undefined;
|
|
335
|
+
object: string;
|
|
336
|
+
id: string;
|
|
337
|
+
amount: number;
|
|
338
|
+
currency: string;
|
|
339
|
+
created: number;
|
|
340
|
+
};
|
|
341
|
+
lastSyncedAt: number;
|
|
342
|
+
refundId: string;
|
|
343
|
+
} | {
|
|
344
|
+
_id: GenericId<"stripePaymentIntents">;
|
|
345
|
+
_creationTime: number;
|
|
346
|
+
stripe: {
|
|
347
|
+
customer?: string | null | undefined;
|
|
348
|
+
description?: string | null | undefined;
|
|
349
|
+
metadata?: Record<string, string | number | null> | null | undefined;
|
|
350
|
+
receipt_email?: string | null | undefined;
|
|
351
|
+
shipping?: any;
|
|
352
|
+
statement_descriptor?: string | null | undefined;
|
|
353
|
+
statement_descriptor_suffix?: string | null | undefined;
|
|
354
|
+
application?: string | null | undefined;
|
|
355
|
+
application_fee_amount?: number | null | undefined;
|
|
356
|
+
on_behalf_of?: string | null | undefined;
|
|
357
|
+
payment_method?: string | null | undefined;
|
|
358
|
+
presentment_details?: any;
|
|
359
|
+
review?: string | null | undefined;
|
|
360
|
+
transfer_data?: any;
|
|
361
|
+
transfer_group?: string | null | undefined;
|
|
362
|
+
client_secret?: string | null | undefined;
|
|
363
|
+
payment_method_configuration_details?: {
|
|
364
|
+
parent?: string | null | undefined;
|
|
365
|
+
id: string;
|
|
366
|
+
} | null | undefined;
|
|
367
|
+
payment_method_options?: any;
|
|
368
|
+
last_payment_error?: {
|
|
369
|
+
payment_method?: any;
|
|
370
|
+
charge?: string | null | undefined;
|
|
371
|
+
advice_code?: string | null | undefined;
|
|
372
|
+
code?: string | null | undefined;
|
|
373
|
+
decline_code?: string | null | undefined;
|
|
374
|
+
doc_url?: string | null | undefined;
|
|
375
|
+
message?: string | null | undefined;
|
|
376
|
+
network_advice_code?: string | null | undefined;
|
|
377
|
+
network_decline_code?: string | null | undefined;
|
|
378
|
+
param?: string | null | undefined;
|
|
379
|
+
payment_method_type?: string | null | undefined;
|
|
380
|
+
last_payment_error?: any;
|
|
381
|
+
latest_charge?: string | null | undefined;
|
|
382
|
+
type: "api_error" | "card_error" | "idempotency_error" | "invalid_request_error";
|
|
383
|
+
} | null | undefined;
|
|
384
|
+
latest_charge?: string | null | undefined;
|
|
385
|
+
processing?: any;
|
|
386
|
+
automatic_payment_methods?: {
|
|
387
|
+
allow_redirects?: "always" | "never" | null | undefined;
|
|
388
|
+
enabled: boolean;
|
|
389
|
+
} | null | undefined;
|
|
390
|
+
next_action?: any;
|
|
391
|
+
amount_details?: {
|
|
392
|
+
tip?: {
|
|
393
|
+
amount?: number | null | undefined;
|
|
394
|
+
} | null | undefined;
|
|
395
|
+
} | null | undefined;
|
|
396
|
+
canceled_at?: number | null | undefined;
|
|
397
|
+
cancellation_reason?: "expired" | "duplicate" | "fraudulent" | "abandoned" | "automatic" | "failed_invoice" | "requested_by_customer" | "void_invoice" | null | undefined;
|
|
398
|
+
object: string;
|
|
399
|
+
id: string;
|
|
400
|
+
amount: number;
|
|
401
|
+
currency: string | null;
|
|
402
|
+
status: "succeeded" | "canceled" | "processing" | "requires_action" | "requires_capture" | "requires_confirmation" | "requires_payment_method";
|
|
403
|
+
created: number;
|
|
404
|
+
livemode: boolean;
|
|
405
|
+
payment_method_types: string[];
|
|
406
|
+
setup_future_usage: "off_session" | "on_session" | null;
|
|
407
|
+
amount_capturable: number;
|
|
408
|
+
amount_received: number;
|
|
409
|
+
capture_method: "manual" | "automatic" | "automatic_sync" | "automatic_async";
|
|
410
|
+
confirmation_method: "manual" | "automatic";
|
|
411
|
+
excluded_payment_method_types: string[] | null;
|
|
412
|
+
};
|
|
413
|
+
lastSyncedAt: number;
|
|
414
|
+
paymentIntentId: string;
|
|
415
|
+
} | {
|
|
416
|
+
_id: GenericId<"stripeCheckoutSessions">;
|
|
417
|
+
_creationTime: number;
|
|
418
|
+
stripe: {
|
|
419
|
+
currency?: string | null | undefined;
|
|
420
|
+
customer?: string | null | undefined;
|
|
421
|
+
metadata?: Record<string, string | number | null> | null | undefined;
|
|
422
|
+
payment_intent?: string | null | undefined;
|
|
423
|
+
presentment_details?: any;
|
|
424
|
+
subscription?: string | null | undefined;
|
|
425
|
+
client_reference_id?: string | null | undefined;
|
|
426
|
+
customer_email?: string | null | undefined;
|
|
427
|
+
line_items?: any[] | null | undefined;
|
|
428
|
+
return_url?: string | null | undefined;
|
|
429
|
+
success_url?: string | null | undefined;
|
|
430
|
+
ui_mode?: "custom" | "embedded" | "hosted" | null | undefined;
|
|
431
|
+
url?: string | null | undefined;
|
|
432
|
+
adaptive_pricing?: any;
|
|
433
|
+
after_expiration?: any;
|
|
434
|
+
allow_promotion_codes?: boolean | null | undefined;
|
|
435
|
+
amount_subtotal?: number | null | undefined;
|
|
436
|
+
amount_total?: number | null | undefined;
|
|
437
|
+
billing_address_collection?: "required" | "auto" | null | undefined;
|
|
438
|
+
cancel_url?: string | null | undefined;
|
|
439
|
+
client_secret?: string | null | undefined;
|
|
440
|
+
collected_information?: any;
|
|
441
|
+
consent?: any;
|
|
442
|
+
consent_collection?: any;
|
|
443
|
+
currency_conversion?: any;
|
|
444
|
+
customer_creation?: "always" | "if_required" | null | undefined;
|
|
445
|
+
customer_details?: any;
|
|
446
|
+
discounts?: any[] | null | undefined;
|
|
447
|
+
invoice?: string | null | undefined;
|
|
448
|
+
invoice_creation?: any;
|
|
449
|
+
locale?: string | null | undefined;
|
|
450
|
+
optional_items?: any[] | null | undefined;
|
|
451
|
+
origin_context?: "mobile_app" | "web" | null | undefined;
|
|
452
|
+
payment_link?: string | null | undefined;
|
|
453
|
+
payment_method_collection?: "always" | "if_required" | null | undefined;
|
|
454
|
+
payment_method_configuration_details?: any;
|
|
455
|
+
payment_method_options?: any;
|
|
456
|
+
permissions?: any;
|
|
457
|
+
phone_number_collection?: any;
|
|
458
|
+
recovered_from?: string | null | undefined;
|
|
459
|
+
redirect_on_completion?: "always" | "if_required" | "never" | null | undefined;
|
|
460
|
+
saved_payment_method_options?: any;
|
|
461
|
+
setup_intent?: string | null | undefined;
|
|
462
|
+
shipping_address_collection?: any;
|
|
463
|
+
shipping_cost?: any;
|
|
464
|
+
submit_type?: "auto" | "book" | "donate" | "pay" | "subscribe" | null | undefined;
|
|
465
|
+
tax_id_collection?: any;
|
|
466
|
+
total_details?: any;
|
|
467
|
+
wallet_options?: any;
|
|
468
|
+
object: string;
|
|
469
|
+
id: string;
|
|
470
|
+
status: "complete" | "expired" | "open" | null;
|
|
471
|
+
created: number;
|
|
472
|
+
livemode: boolean;
|
|
473
|
+
automatic_tax: any;
|
|
474
|
+
mode: "payment" | "setup" | "subscription";
|
|
475
|
+
payment_status: "paid" | "no_payment_required" | "unpaid";
|
|
476
|
+
custom_fields: any[];
|
|
477
|
+
custom_text: any;
|
|
478
|
+
expires_at: number;
|
|
479
|
+
payment_method_types: string[];
|
|
480
|
+
shipping_options: any[];
|
|
481
|
+
};
|
|
482
|
+
lastSyncedAt: number;
|
|
483
|
+
checkoutSessionId: string;
|
|
484
|
+
} | {
|
|
485
|
+
_id: GenericId<"stripeInvoices">;
|
|
486
|
+
_creationTime: number;
|
|
487
|
+
stripe: {
|
|
488
|
+
number?: string | null | undefined;
|
|
489
|
+
description?: string | null | undefined;
|
|
490
|
+
metadata?: Record<string, string | number | null> | null | undefined;
|
|
491
|
+
statement_descriptor?: string | null | undefined;
|
|
492
|
+
application?: string | null | undefined;
|
|
493
|
+
on_behalf_of?: string | null | undefined;
|
|
494
|
+
receipt_number?: string | null | undefined;
|
|
495
|
+
automatic_tax?: any;
|
|
496
|
+
customer_email?: string | null | undefined;
|
|
497
|
+
custom_fields?: any[] | null | undefined;
|
|
498
|
+
shipping_cost?: any;
|
|
499
|
+
lines?: any;
|
|
500
|
+
effective_at?: number | null | undefined;
|
|
501
|
+
subtotal_excluding_tax?: number | null | undefined;
|
|
502
|
+
total_excluding_tax?: number | null | undefined;
|
|
503
|
+
total_taxes?: any[] | null | undefined;
|
|
504
|
+
default_source?: string | null | undefined;
|
|
505
|
+
test_clock?: string | null | undefined;
|
|
506
|
+
auto_advance?: boolean | undefined;
|
|
507
|
+
confirmation_secret?: any;
|
|
508
|
+
hosted_invoice_url?: string | null | undefined;
|
|
509
|
+
parent?: any;
|
|
510
|
+
account_country?: string | null | undefined;
|
|
511
|
+
account_name?: string | null | undefined;
|
|
512
|
+
account_tax_ids?: string[] | null | undefined;
|
|
513
|
+
automatically_finalizes_at?: number | null | undefined;
|
|
514
|
+
customer_address?: any;
|
|
515
|
+
customer_name?: string | null | undefined;
|
|
516
|
+
customer_phone?: string | null | undefined;
|
|
517
|
+
customer_shipping?: any;
|
|
518
|
+
customer_tax_ids?: any[] | null | undefined;
|
|
519
|
+
default_payment_method?: string | null | undefined;
|
|
520
|
+
due_date?: number | null | undefined;
|
|
521
|
+
ending_balance?: number | null | undefined;
|
|
522
|
+
footer?: string | null | undefined;
|
|
523
|
+
from_invoice?: any;
|
|
524
|
+
invoice_pdf?: string | null | undefined;
|
|
525
|
+
issuer?: any;
|
|
526
|
+
last_finalization_error?: any;
|
|
527
|
+
latest_revision?: string | null | undefined;
|
|
528
|
+
next_payment_attempt?: number | null | undefined;
|
|
529
|
+
payment_settings?: any;
|
|
530
|
+
payments?: any;
|
|
531
|
+
rendering?: any;
|
|
532
|
+
shipping_details?: any;
|
|
533
|
+
status_transitions?: any;
|
|
534
|
+
threshold_reason?: any;
|
|
535
|
+
total_discount_amounts?: any[] | null | undefined;
|
|
536
|
+
total_pretax_credit_amounts?: any[] | null | undefined;
|
|
537
|
+
webhooks_delivered_at?: number | null | undefined;
|
|
538
|
+
object: string;
|
|
539
|
+
id: string;
|
|
540
|
+
currency: string;
|
|
541
|
+
customer: string;
|
|
542
|
+
status: "paid" | "open" | "void" | "draft" | "uncollectible";
|
|
543
|
+
created: number;
|
|
544
|
+
livemode: boolean;
|
|
545
|
+
discounts: string[];
|
|
546
|
+
subtotal: number;
|
|
547
|
+
total: number;
|
|
548
|
+
amount_shipping: number;
|
|
549
|
+
collection_method: "charge_automatically" | "send_invoice";
|
|
550
|
+
period_end: number;
|
|
551
|
+
period_start: number;
|
|
552
|
+
amount_due: number;
|
|
553
|
+
amount_overpaid: number;
|
|
554
|
+
amount_paid: number;
|
|
555
|
+
amount_remaining: number;
|
|
556
|
+
attempt_count: number;
|
|
557
|
+
attempted: boolean;
|
|
558
|
+
billing_reason: "subscription" | "automatic_pending_invoice_item_invoice" | "manual" | "quote_accept" | "subscription_create" | "subscription_cycle" | "subscription_threshold" | "subscription_update" | "upcoming" | null;
|
|
559
|
+
customer_tax_exempt: "reverse" | "none" | "exempt" | null;
|
|
560
|
+
default_tax_rates: any[];
|
|
561
|
+
post_payment_credit_notes_amount: number;
|
|
562
|
+
pre_payment_credit_notes_amount: number;
|
|
563
|
+
starting_balance: number;
|
|
564
|
+
};
|
|
565
|
+
lastSyncedAt: number;
|
|
566
|
+
invoiceId: string;
|
|
567
|
+
} | {
|
|
568
|
+
_id: GenericId<"stripeReviews">;
|
|
569
|
+
_creationTime: number;
|
|
570
|
+
stripe: {
|
|
571
|
+
payment_intent?: string | null | undefined;
|
|
572
|
+
charge?: string | null | undefined;
|
|
573
|
+
ip_address?: string | null | undefined;
|
|
574
|
+
billing_zip?: string | null | undefined;
|
|
575
|
+
closed_reason?: "disputed" | "refunded" | "canceled" | "approved" | "refunded_as_fraud" | "redacted" | "payment_never_settled" | "acknowledged" | null | undefined;
|
|
576
|
+
ip_address_location?: {
|
|
577
|
+
city?: string | null | undefined;
|
|
578
|
+
country?: string | null | undefined;
|
|
579
|
+
latitude?: number | null | undefined;
|
|
580
|
+
longitude?: number | null | undefined;
|
|
581
|
+
region?: string | null | undefined;
|
|
582
|
+
} | null | undefined;
|
|
583
|
+
session?: {
|
|
584
|
+
browser?: string | null | undefined;
|
|
585
|
+
device?: string | null | undefined;
|
|
586
|
+
platform?: string | null | undefined;
|
|
587
|
+
version?: string | null | undefined;
|
|
588
|
+
} | null | undefined;
|
|
589
|
+
object: string;
|
|
590
|
+
id: string;
|
|
591
|
+
created: number;
|
|
592
|
+
livemode: boolean;
|
|
593
|
+
open: boolean;
|
|
594
|
+
reason: string;
|
|
595
|
+
opened_reason: "manual" | "rule";
|
|
596
|
+
};
|
|
597
|
+
lastSyncedAt: number;
|
|
598
|
+
reviewId: string;
|
|
599
|
+
} | {
|
|
600
|
+
_id: GenericId<"stripePlans">;
|
|
601
|
+
_creationTime: number;
|
|
602
|
+
stripe: {
|
|
603
|
+
amount?: number | null | undefined;
|
|
604
|
+
metadata?: Record<string, string | number | null> | null | undefined;
|
|
605
|
+
nickname?: string | null | undefined;
|
|
606
|
+
product?: string | null | undefined;
|
|
607
|
+
amount_decimal?: string | null | undefined;
|
|
608
|
+
meter?: string | null | undefined;
|
|
609
|
+
tiers?: any[] | null | undefined;
|
|
610
|
+
tiers_mode?: "graduated" | "volume" | null | undefined;
|
|
611
|
+
transform_usage?: {
|
|
612
|
+
divide_by: number;
|
|
613
|
+
round: "up" | "down";
|
|
614
|
+
} | null | undefined;
|
|
615
|
+
trial_period_days?: number | null | undefined;
|
|
616
|
+
object: string;
|
|
617
|
+
id: string;
|
|
618
|
+
currency: string;
|
|
619
|
+
created: number;
|
|
620
|
+
livemode: boolean;
|
|
621
|
+
active: boolean;
|
|
622
|
+
interval: "day" | "week" | "month" | "year";
|
|
623
|
+
billing_scheme: "per_unit" | "tiered";
|
|
624
|
+
interval_count: number;
|
|
625
|
+
usage_type: string;
|
|
626
|
+
};
|
|
627
|
+
lastSyncedAt: number;
|
|
628
|
+
planId: string;
|
|
629
|
+
} | {
|
|
630
|
+
_id: GenericId<"stripeDisputes">;
|
|
631
|
+
_creationTime: number;
|
|
632
|
+
stripe: {
|
|
633
|
+
metadata?: Record<string, string | number | null> | null | undefined;
|
|
634
|
+
payment_intent?: string | null | undefined;
|
|
635
|
+
payment_method_details?: any;
|
|
636
|
+
object: string;
|
|
637
|
+
id: string;
|
|
638
|
+
amount: number;
|
|
639
|
+
currency: string;
|
|
640
|
+
status: "lost" | "needs_response" | "prevented" | "under_review" | "warning_closed" | "warning_needs_response" | "warning_under_review" | "won";
|
|
641
|
+
created: number;
|
|
642
|
+
livemode: boolean;
|
|
643
|
+
charge: string;
|
|
644
|
+
reason: string;
|
|
645
|
+
evidence: any;
|
|
646
|
+
balance_transactions: any[];
|
|
647
|
+
enhanced_eligibility_types: ("visa_compelling_evidence_3" | "visa_compliance")[];
|
|
648
|
+
evidence_details: any;
|
|
649
|
+
is_charge_refundable: boolean;
|
|
650
|
+
};
|
|
651
|
+
lastSyncedAt: number;
|
|
652
|
+
disputeId: string;
|
|
653
|
+
} | {
|
|
654
|
+
_id: GenericId<"stripeEarlyFraudWarnings">;
|
|
655
|
+
_creationTime: number;
|
|
656
|
+
stripe: {
|
|
657
|
+
payment_intent?: string | null | undefined;
|
|
658
|
+
object: string;
|
|
659
|
+
id: string;
|
|
660
|
+
created: number;
|
|
661
|
+
livemode: boolean;
|
|
662
|
+
charge: string;
|
|
663
|
+
actionable: boolean;
|
|
664
|
+
fraud_type: string;
|
|
665
|
+
};
|
|
666
|
+
lastSyncedAt: number;
|
|
667
|
+
earlyFraudWarningId: string;
|
|
668
|
+
} | {
|
|
669
|
+
_id: GenericId<"stripeTaxIds">;
|
|
670
|
+
_creationTime: number;
|
|
671
|
+
stripe: {
|
|
672
|
+
country?: string | null | undefined;
|
|
673
|
+
customer?: string | null | undefined;
|
|
674
|
+
owner?: {
|
|
675
|
+
customer?: string | null | undefined;
|
|
676
|
+
application?: string | null | undefined;
|
|
677
|
+
account?: string | null | undefined;
|
|
678
|
+
type: "customer" | "application" | "account" | "self";
|
|
679
|
+
} | null | undefined;
|
|
680
|
+
verification?: {
|
|
681
|
+
verified_address?: string | null | undefined;
|
|
682
|
+
verified_name?: string | null | undefined;
|
|
683
|
+
status: "pending" | "unavailable" | "unverified" | "verified";
|
|
684
|
+
} | null | undefined;
|
|
685
|
+
object: string;
|
|
686
|
+
type: string;
|
|
687
|
+
id: string;
|
|
688
|
+
created: number;
|
|
689
|
+
livemode: boolean;
|
|
690
|
+
value: string;
|
|
691
|
+
};
|
|
692
|
+
lastSyncedAt: number;
|
|
693
|
+
taxIdId: string;
|
|
694
|
+
} | {
|
|
695
|
+
_id: GenericId<"stripeSetupIntents">;
|
|
696
|
+
_creationTime: number;
|
|
697
|
+
stripe: {
|
|
698
|
+
customer?: string | null | undefined;
|
|
699
|
+
description?: string | null | undefined;
|
|
700
|
+
metadata?: Record<string, string | number | null> | null | undefined;
|
|
701
|
+
application?: string | null | undefined;
|
|
702
|
+
on_behalf_of?: string | null | undefined;
|
|
703
|
+
payment_method?: string | null | undefined;
|
|
704
|
+
client_secret?: string | null | undefined;
|
|
705
|
+
payment_method_configuration_details?: {
|
|
706
|
+
parent?: string | null | undefined;
|
|
707
|
+
id: string;
|
|
708
|
+
} | null | undefined;
|
|
709
|
+
payment_method_options?: any;
|
|
710
|
+
automatic_payment_methods?: {
|
|
711
|
+
enabled?: boolean | null | undefined;
|
|
712
|
+
allow_redirects?: "always" | "never" | null | undefined;
|
|
713
|
+
} | null | undefined;
|
|
714
|
+
next_action?: any;
|
|
715
|
+
cancellation_reason?: "duplicate" | "abandoned" | "requested_by_customer" | null | undefined;
|
|
716
|
+
last_setup_error?: any;
|
|
717
|
+
attach_to_self?: boolean | null | undefined;
|
|
718
|
+
latest_attempt?: string | null | undefined;
|
|
719
|
+
mandate?: string | null | undefined;
|
|
720
|
+
single_use_mandate?: string | null | undefined;
|
|
721
|
+
object: string;
|
|
722
|
+
id: string;
|
|
723
|
+
status: "succeeded" | "canceled" | "processing" | "requires_action" | "requires_confirmation" | "requires_payment_method";
|
|
724
|
+
created: number;
|
|
725
|
+
livemode: boolean;
|
|
726
|
+
payment_method_types: string[];
|
|
727
|
+
usage: string;
|
|
728
|
+
flow_directions: ("inbound" | "outbound")[] | null;
|
|
729
|
+
};
|
|
730
|
+
lastSyncedAt: number;
|
|
731
|
+
setupIntentId: string;
|
|
732
|
+
} | {
|
|
733
|
+
_id: GenericId<"stripeCreditNotes">;
|
|
734
|
+
_creationTime: number;
|
|
735
|
+
stripe: {
|
|
736
|
+
customer?: string | null | undefined;
|
|
737
|
+
metadata?: Record<string, string | number | null> | null | undefined;
|
|
738
|
+
invoice?: string | null | undefined;
|
|
739
|
+
shipping_cost?: any;
|
|
740
|
+
memo?: string | null | undefined;
|
|
741
|
+
customer_balance_transaction?: string | null | undefined;
|
|
742
|
+
effective_at?: number | null | undefined;
|
|
743
|
+
out_of_band_amount?: number | null | undefined;
|
|
744
|
+
subtotal_excluding_tax?: number | null | undefined;
|
|
745
|
+
total_excluding_tax?: number | null | undefined;
|
|
746
|
+
total_taxes?: any;
|
|
747
|
+
voided_at?: number | null | undefined;
|
|
748
|
+
number: string;
|
|
749
|
+
object: string;
|
|
750
|
+
type: "mixed" | "post_payment" | "pre_payment";
|
|
751
|
+
id: string;
|
|
752
|
+
amount: number;
|
|
753
|
+
currency: string;
|
|
754
|
+
status: "issued" | "void";
|
|
755
|
+
created: number;
|
|
756
|
+
livemode: boolean;
|
|
757
|
+
refunds: {
|
|
758
|
+
amount_refunded: number;
|
|
759
|
+
refund: string;
|
|
760
|
+
}[];
|
|
761
|
+
lines: any;
|
|
762
|
+
reason: "duplicate" | "fraudulent" | "order_change" | "product_unsatisfactory" | null;
|
|
763
|
+
subtotal: number;
|
|
764
|
+
total: number;
|
|
765
|
+
amount_shipping: number;
|
|
766
|
+
discount_amount: number;
|
|
767
|
+
discount_amounts: {
|
|
768
|
+
amount: number;
|
|
769
|
+
discount: string;
|
|
770
|
+
}[];
|
|
771
|
+
pdf: string;
|
|
772
|
+
post_payment_amount: number;
|
|
773
|
+
pre_payment_amount: number;
|
|
774
|
+
pretax_credit_amounts: {
|
|
775
|
+
discount?: string | null | undefined;
|
|
776
|
+
credit_balance_transaction?: string | null | undefined;
|
|
777
|
+
type: "discount" | "credit_balance_transaction";
|
|
778
|
+
amount: number;
|
|
779
|
+
}[];
|
|
780
|
+
};
|
|
781
|
+
lastSyncedAt: number;
|
|
782
|
+
creditNoteId: string;
|
|
783
|
+
} | {
|
|
784
|
+
_id: GenericId<"stripeCharges">;
|
|
785
|
+
_creationTime: number;
|
|
786
|
+
stripe: {
|
|
787
|
+
balance_transaction?: string | null | undefined;
|
|
788
|
+
customer?: string | null | undefined;
|
|
789
|
+
description?: string | null | undefined;
|
|
790
|
+
metadata?: Record<string, string | number | null> | null | undefined;
|
|
791
|
+
payment_intent?: string | null | undefined;
|
|
792
|
+
payment_method_details?: any;
|
|
793
|
+
receipt_email?: string | null | undefined;
|
|
794
|
+
shipping?: any;
|
|
795
|
+
statement_descriptor?: string | null | undefined;
|
|
796
|
+
statement_descriptor_suffix?: string | null | undefined;
|
|
797
|
+
application?: string | null | undefined;
|
|
798
|
+
application_fee?: string | null | undefined;
|
|
799
|
+
application_fee_amount?: number | null | undefined;
|
|
800
|
+
calculated_statement_descriptor?: string | null | undefined;
|
|
801
|
+
failure_balance_transaction?: string | null | undefined;
|
|
802
|
+
failure_code?: string | null | undefined;
|
|
803
|
+
failure_message?: string | null | undefined;
|
|
804
|
+
fraud_details?: any;
|
|
805
|
+
on_behalf_of?: string | null | undefined;
|
|
806
|
+
outcome?: any;
|
|
807
|
+
payment_method?: string | null | undefined;
|
|
808
|
+
presentment_details?: any;
|
|
809
|
+
radar_options?: any;
|
|
810
|
+
receipt_number?: string | null | undefined;
|
|
811
|
+
receipt_url?: string | null | undefined;
|
|
812
|
+
refunds?: any;
|
|
813
|
+
review?: string | null | undefined;
|
|
814
|
+
source_transfer?: string | null | undefined;
|
|
815
|
+
transfer?: string | null | undefined;
|
|
816
|
+
transfer_data?: any;
|
|
817
|
+
transfer_group?: any;
|
|
818
|
+
object: string;
|
|
819
|
+
id: string;
|
|
820
|
+
amount: number;
|
|
821
|
+
billing_details: {
|
|
822
|
+
address?: {
|
|
823
|
+
city?: string | null | undefined;
|
|
824
|
+
country?: string | null | undefined;
|
|
825
|
+
line1?: string | null | undefined;
|
|
826
|
+
line2?: string | null | undefined;
|
|
827
|
+
postal_code?: string | null | undefined;
|
|
828
|
+
state?: string | null | undefined;
|
|
829
|
+
} | null | undefined;
|
|
830
|
+
email?: string | null | undefined;
|
|
831
|
+
name?: string | null | undefined;
|
|
832
|
+
phone?: string | null | undefined;
|
|
833
|
+
tax_id?: string | null | undefined;
|
|
834
|
+
};
|
|
835
|
+
currency: string;
|
|
836
|
+
disputed: boolean;
|
|
837
|
+
refunded: boolean;
|
|
838
|
+
status: "succeeded" | "failed" | "pending";
|
|
839
|
+
amount_captured: number;
|
|
840
|
+
amount_refunded: number;
|
|
841
|
+
captured: boolean;
|
|
842
|
+
created: number;
|
|
843
|
+
livemode: boolean;
|
|
844
|
+
paid: boolean;
|
|
845
|
+
};
|
|
846
|
+
lastSyncedAt: number;
|
|
847
|
+
chargeId: string;
|
|
848
|
+
} | {
|
|
849
|
+
_id: GenericId<"stripePaymentMethods">;
|
|
850
|
+
_creationTime: number;
|
|
851
|
+
stripe: {
|
|
852
|
+
link?: any;
|
|
853
|
+
billing_details?: any;
|
|
854
|
+
customer?: string | null | undefined;
|
|
855
|
+
metadata?: Record<string, string | number | null> | null | undefined;
|
|
856
|
+
radar_options?: any;
|
|
857
|
+
acss_debit?: any;
|
|
858
|
+
affirm?: any;
|
|
859
|
+
afterpay_clearpay?: any;
|
|
860
|
+
alipay?: any;
|
|
861
|
+
alma?: any;
|
|
862
|
+
amazon_pay?: any;
|
|
863
|
+
au_becs_debit?: any;
|
|
864
|
+
bacs_debit?: any;
|
|
865
|
+
bancontact?: any;
|
|
866
|
+
billie?: any;
|
|
867
|
+
blik?: any;
|
|
868
|
+
boleto?: any;
|
|
869
|
+
card?: any;
|
|
870
|
+
cashapp?: any;
|
|
871
|
+
crypto?: any;
|
|
872
|
+
customer_balance?: any;
|
|
873
|
+
eps?: any;
|
|
874
|
+
fpx?: any;
|
|
875
|
+
giropay?: any;
|
|
876
|
+
grabpay?: any;
|
|
877
|
+
ideal?: any;
|
|
878
|
+
kakao_pay?: any;
|
|
879
|
+
klarna?: any;
|
|
880
|
+
konbini?: any;
|
|
881
|
+
kr_card?: any;
|
|
882
|
+
mobilepay?: any;
|
|
883
|
+
multibanco?: any;
|
|
884
|
+
naver_pay?: any;
|
|
885
|
+
nz_bank_account?: any;
|
|
886
|
+
oxxo?: any;
|
|
887
|
+
p24?: any;
|
|
888
|
+
pay_by_bank?: any;
|
|
889
|
+
payco?: any;
|
|
890
|
+
paynow?: any;
|
|
891
|
+
paypal?: any;
|
|
892
|
+
pix?: any;
|
|
893
|
+
promptpay?: any;
|
|
894
|
+
revolut_pay?: any;
|
|
895
|
+
samsung_pay?: any;
|
|
896
|
+
satispay?: any;
|
|
897
|
+
sepa_debit?: any;
|
|
898
|
+
sofort?: any;
|
|
899
|
+
swish?: any;
|
|
900
|
+
twint?: any;
|
|
901
|
+
us_bank_account?: any;
|
|
902
|
+
wechat_pay?: any;
|
|
903
|
+
zip?: any;
|
|
904
|
+
card_present?: any;
|
|
905
|
+
interac_present?: any;
|
|
906
|
+
object: string;
|
|
907
|
+
type: string;
|
|
908
|
+
id: string;
|
|
909
|
+
created: number;
|
|
910
|
+
livemode: boolean;
|
|
911
|
+
allow_redisplay: "always" | "limited" | "unspecified" | null;
|
|
912
|
+
};
|
|
913
|
+
lastSyncedAt: number;
|
|
914
|
+
paymentMethodId: string;
|
|
915
|
+
} | {
|
|
916
|
+
_id: GenericId<"stripeSubscriptionSchedules">;
|
|
917
|
+
_creationTime: number;
|
|
918
|
+
stripe: {
|
|
919
|
+
metadata?: Record<string, string | number | null> | null | undefined;
|
|
920
|
+
application?: string | null | undefined;
|
|
921
|
+
test_clock?: string | null | undefined;
|
|
922
|
+
canceled_at?: number | null | undefined;
|
|
923
|
+
current_phase?: {
|
|
924
|
+
end_date: number;
|
|
925
|
+
start_date: number;
|
|
926
|
+
} | null | undefined;
|
|
927
|
+
phases?: any;
|
|
928
|
+
completed_at?: number | null | undefined;
|
|
929
|
+
default_settings?: {
|
|
930
|
+
description?: string | null | undefined;
|
|
931
|
+
on_behalf_of?: string | null | undefined;
|
|
932
|
+
transfer_data?: {
|
|
933
|
+
amount_percent?: number | null | undefined;
|
|
934
|
+
destination: string;
|
|
935
|
+
} | null | undefined;
|
|
936
|
+
automatic_tax?: {
|
|
937
|
+
enabled?: boolean | null | undefined;
|
|
938
|
+
disabled_reason?: "requires_location_inputs" | null | undefined;
|
|
939
|
+
liability?: {
|
|
940
|
+
account?: string | null | undefined;
|
|
941
|
+
type: "account" | "self";
|
|
942
|
+
} | null | undefined;
|
|
943
|
+
} | null | undefined;
|
|
944
|
+
invoice_settings?: {
|
|
945
|
+
account_tax_ids?: string[] | null | undefined;
|
|
946
|
+
days_until_due?: number | null | undefined;
|
|
947
|
+
issuer: {
|
|
948
|
+
account?: string | null | undefined;
|
|
949
|
+
type: "account" | "self";
|
|
950
|
+
};
|
|
951
|
+
} | null | undefined;
|
|
952
|
+
collection_method?: "charge_automatically" | "send_invoice" | null | undefined;
|
|
953
|
+
default_payment_method?: string | null | undefined;
|
|
954
|
+
application_fee_percent?: number | null | undefined;
|
|
955
|
+
billing_thresholds?: {
|
|
956
|
+
amount_gte?: number | null | undefined;
|
|
957
|
+
reset_billing_cycle_anchor?: boolean | null | undefined;
|
|
958
|
+
} | null | undefined;
|
|
959
|
+
billing_cycle_anchor: "automatic" | "phase_start";
|
|
960
|
+
} | null | undefined;
|
|
961
|
+
released_at?: number | null | undefined;
|
|
962
|
+
released_subscription?: string | null | undefined;
|
|
963
|
+
object: string;
|
|
964
|
+
id: string;
|
|
965
|
+
customer: string;
|
|
966
|
+
status: "canceled" | "completed" | "active" | "not_started" | "released";
|
|
967
|
+
created: number;
|
|
968
|
+
livemode: boolean;
|
|
969
|
+
billing_mode: {
|
|
970
|
+
updated_at?: number | null | undefined;
|
|
971
|
+
type: "classic" | "flexible";
|
|
972
|
+
};
|
|
973
|
+
end_behavior: "none" | "cancel" | "release" | "renew";
|
|
974
|
+
};
|
|
975
|
+
lastSyncedAt: number;
|
|
976
|
+
subscriptionScheduleId: string;
|
|
977
|
+
})[];
|
|
978
|
+
id?: undefined;
|
|
979
|
+
deleted?: undefined;
|
|
980
|
+
doc?: undefined;
|
|
981
|
+
} | undefined>>;
|
|
982
|
+
sync: RegisteredAction<"internal", {}, Promise<void>>;
|
|
983
|
+
setup: RegisteredAction<"internal", {
|
|
984
|
+
email?: string | undefined;
|
|
985
|
+
metadata?: Record<string, any> | undefined;
|
|
986
|
+
entityId: string;
|
|
987
|
+
}, Promise<{
|
|
988
|
+
customerId: string;
|
|
989
|
+
}>>;
|
|
990
|
+
};
|
|
991
|
+
|
|
992
|
+
export { Logger }
|
|
993
|
+
|
|
994
|
+
export { stripeTables }
|
|
995
|
+
|
|
996
|
+
export { }
|