@raideno/convex-stripe 0.1.1 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +0 -2
- package/dist/index.js +1 -0
- package/dist/server/actions/index.d.ts +4 -0
- package/dist/server/actions/pay.d.ts +579 -0
- package/dist/server/actions/portal.d.ts +26 -0
- package/dist/server/actions/setup.d.ts +19 -0
- package/dist/server/actions/subscribe.d.ts +44 -0
- package/dist/server/helpers.d.ts +28 -0
- package/dist/server/index.d.ts +967 -0
- package/dist/server/logger.d.ts +8 -0
- package/dist/server/redirects/index.d.ts +47 -0
- package/dist/server/redirects/pay.d.ts +5 -0
- package/dist/server/redirects/portal.d.ts +3 -0
- package/dist/server/redirects/subscribe.d.ts +3 -0
- package/dist/server/redirects/types.d.ts +9 -0
- package/dist/server/schema/charge.d.ts +294 -0
- package/dist/server/schema/checkout-session.d.ts +256 -0
- package/dist/server/schema/coupon.d.ts +112 -0
- package/dist/server/schema/credit-note.d.ts +228 -0
- package/dist/server/schema/customer.d.ts +366 -0
- package/dist/server/schema/dispute.d.ts +76 -0
- package/dist/server/schema/early-fraud-warning.d.ts +40 -0
- package/dist/server/schema/index.d.ts +6063 -0
- package/dist/server/schema/invoice.d.ts +314 -0
- package/dist/server/schema/payment-intent.d.ts +311 -0
- package/dist/server/schema/payment-method.d.ts +248 -0
- package/dist/server/schema/payout.d.ts +140 -0
- package/dist/server/schema/plan.d.ts +112 -0
- package/dist/server/schema/price.d.ts +148 -0
- package/dist/server/schema/product.d.ts +132 -0
- package/dist/server/schema/promotion-code.d.ts +266 -0
- package/dist/server/schema/refund.d.ts +92 -0
- package/dist/server/schema/review.d.ts +152 -0
- package/dist/server/schema/setup-intent.d.ts +156 -0
- package/dist/server/schema/subscription-schedule.d.ts +468 -0
- package/dist/server/schema/subscription.d.ts +4 -0
- package/dist/server/schema/tax-id.d.ts +120 -0
- package/dist/server/store/index.d.ts +960 -0
- package/dist/server/store/operations/delete-by-id.d.ts +3 -0
- package/dist/server/store/operations/index.d.ts +5 -0
- package/dist/server/store/operations/select-all.d.ts +3 -0
- package/dist/server/store/operations/select-by-id.d.ts +4 -0
- package/dist/server/store/operations/select-one.d.ts +3 -0
- package/dist/server/store/operations/upsert.d.ts +4 -0
- package/dist/server/store/types.d.ts +70 -0
- package/dist/server/sync/all.d.ts +5 -0
- package/dist/server/sync/charges.handler.d.ts +5 -0
- package/dist/server/sync/checkout-sessions.handler.d.ts +5 -0
- package/dist/server/sync/coupons.handler.d.ts +5 -0
- package/dist/server/sync/credit-notes.handler.d.ts +5 -0
- package/dist/server/sync/customers.handler.d.ts +5 -0
- package/dist/server/sync/disputes.handler.d.ts +5 -0
- package/dist/server/sync/early-fraud-warnings.handler.d.ts +5 -0
- package/dist/server/sync/invoices.handler.d.ts +5 -0
- package/dist/server/sync/payment-intents.handler.d.ts +5 -0
- package/dist/server/sync/payment-methods.handler.d.ts +5 -0
- package/dist/server/sync/payouts.handler.d.ts +5 -0
- package/dist/server/sync/plans.handler.d.ts +5 -0
- package/dist/server/sync/prices.handler.d.ts +5 -0
- package/dist/server/sync/products.handler.d.ts +5 -0
- package/dist/server/sync/promotion-codes.handler.d.ts +5 -0
- package/dist/server/sync/refunds.handler.d.ts +5 -0
- package/dist/server/sync/reviews.handler.d.ts +5 -0
- package/dist/server/sync/setup-intents.handler.d.ts +5 -0
- package/dist/server/sync/subscription-schedules.handler.d.ts +5 -0
- package/dist/server/sync/subscription.d.ts +12 -0
- package/dist/server/sync/subscriptions.handler.d.ts +5 -0
- package/dist/server/sync/tax-id.handler.d.ts +5 -0
- package/dist/server/types.d.ts +29 -0
- package/dist/server/webhooks/charges.handler.d.ts +2 -0
- package/dist/server/webhooks/checkout-sessions.handler.d.ts +2 -0
- package/dist/server/webhooks/coupons.handler.d.ts +2 -0
- package/dist/server/webhooks/credit-notes.handler.d.ts +2 -0
- package/dist/server/webhooks/customers.handler.d.ts +2 -0
- package/dist/server/webhooks/disputes.handler.d.ts +2 -0
- package/dist/server/webhooks/early-fraud-warnings.handler.d.ts +2 -0
- package/dist/server/webhooks/index.d.ts +2 -0
- package/dist/server/webhooks/invoices.handler.d.ts +2 -0
- package/dist/server/webhooks/payment-intents.handler.d.ts +2 -0
- package/dist/server/webhooks/payment-methods.handler.d.ts +2 -0
- package/dist/server/webhooks/payouts.handler.d.ts +2 -0
- package/dist/server/webhooks/plans.handler.d.ts +2 -0
- package/dist/server/webhooks/prices.handler.d.ts +2 -0
- package/dist/server/webhooks/products.handler.d.ts +2 -0
- package/dist/server/webhooks/promotion-codes.handler.d.ts +2 -0
- package/dist/server/webhooks/refunds.handler.d.ts +2 -0
- package/dist/server/webhooks/reviews.handler.d.ts +2 -0
- package/dist/server/webhooks/setup-intent.handler.d.ts +2 -0
- package/dist/server/webhooks/subscription-schedules.handler.d.ts +2 -0
- package/dist/server/webhooks/subscription.handler.d.ts +2 -0
- package/dist/server/webhooks/tax-id.handler.d.ts +2 -0
- package/dist/server/webhooks/types.d.ts +11 -0
- package/dist/server.d.ts +2 -3790
- package/dist/server.js +6072 -1564
- package/package.json +9 -10
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { InferArgs, InternalConfiguration } from '../types';
|
|
2
|
+
import { RedirectHandler } from './types';
|
|
3
|
+
export declare function backendBaseUrl(configuration: InternalConfiguration): string;
|
|
4
|
+
export declare function toBase64Url(input: ArrayBuffer | string): string;
|
|
5
|
+
export declare function fromBase64Url(input: string): Uint8Array;
|
|
6
|
+
export declare function signData(secret: string, data: string): Promise<ArrayBuffer>;
|
|
7
|
+
export declare function timingSafeEqual(a: ArrayBufferLike, b: ArrayBufferLike): Promise<boolean>;
|
|
8
|
+
export interface ReturnPayload<T> {
|
|
9
|
+
origin: ReturnOrigin;
|
|
10
|
+
data?: T;
|
|
11
|
+
exp: number;
|
|
12
|
+
targetUrl: string;
|
|
13
|
+
}
|
|
14
|
+
export declare const DEFAULT_TTL_MS: number;
|
|
15
|
+
export declare function buildSignedReturnUrl<O extends ReturnOrigin>({ configuration, origin, targetUrl, ttlMs, data, }: {
|
|
16
|
+
configuration: InternalConfiguration;
|
|
17
|
+
origin: O;
|
|
18
|
+
targetUrl: string;
|
|
19
|
+
ttlMs?: number;
|
|
20
|
+
data: ReturnDataMap[O];
|
|
21
|
+
}): Promise<string>;
|
|
22
|
+
export declare function decodeSignedPayload<O extends ReturnOrigin>({ secret, data, signature, }: {
|
|
23
|
+
origin: O;
|
|
24
|
+
secret: string;
|
|
25
|
+
data: string;
|
|
26
|
+
signature: string;
|
|
27
|
+
}): Promise<{
|
|
28
|
+
error?: string;
|
|
29
|
+
data?: ReturnPayload<ReturnDataMap[O]>;
|
|
30
|
+
}>;
|
|
31
|
+
export declare const REDIRECT_HANDLERS: readonly [RedirectHandler<readonly ["portal-return"], {
|
|
32
|
+
entityId: import('convex/values').VString<string, "required">;
|
|
33
|
+
}>, RedirectHandler<readonly ["subscribe-cancel", "subscribe-success", "subscribe-return"], {
|
|
34
|
+
entityId: import('convex/values').VString<string, "required">;
|
|
35
|
+
}>, RedirectHandler<readonly ["pay-cancel", "pay-success", "pay-return"], {
|
|
36
|
+
entityId: import('convex/values').VString<string, "required">;
|
|
37
|
+
customerId: import('convex/values').VString<string, "required">;
|
|
38
|
+
referenceId: import('convex/values').VString<string, "required">;
|
|
39
|
+
}>];
|
|
40
|
+
type AllRedirectHandlers = (typeof REDIRECT_HANDLERS)[number];
|
|
41
|
+
type ReturnDataMap = {
|
|
42
|
+
[H in AllRedirectHandlers as H["origins"][number]]: H extends RedirectHandler<any, infer S> ? InferArgs<S> : never;
|
|
43
|
+
};
|
|
44
|
+
export declare const RETURN_ORIGINS: ("pay-cancel" | "pay-success" | "pay-return" | "portal-return" | "subscribe-cancel" | "subscribe-success" | "subscribe-return")[];
|
|
45
|
+
export type ReturnOrigin = (typeof RETURN_ORIGINS)[number];
|
|
46
|
+
export declare const buildRedirectImplementation: (configuration: InternalConfiguration) => import('convex/server').PublicHttpAction;
|
|
47
|
+
export {};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const PayReturnImplementation: import('./types').RedirectHandler<readonly ["pay-cancel", "pay-success", "pay-return"], {
|
|
2
|
+
entityId: import('convex/values').VString<string, "required">;
|
|
3
|
+
customerId: import('convex/values').VString<string, "required">;
|
|
4
|
+
referenceId: import('convex/values').VString<string, "required">;
|
|
5
|
+
}>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { GenericActionCtx } from 'convex/server';
|
|
2
|
+
import { StripeDataModel } from '../schema';
|
|
3
|
+
import { ArgSchema, InferArgs, InternalConfiguration } from '../types';
|
|
4
|
+
export type RedirectHandler<TOrigins extends readonly string[], S extends ArgSchema = {}> = {
|
|
5
|
+
origins: TOrigins;
|
|
6
|
+
data?: S;
|
|
7
|
+
handle: (origin: TOrigins[number], context: GenericActionCtx<StripeDataModel>, data: InferArgs<S>, configuration: InternalConfiguration) => Promise<void>;
|
|
8
|
+
};
|
|
9
|
+
export declare function defineRedirectHandler<const T extends readonly string[], S extends ArgSchema = {}>(handler: RedirectHandler<T, S>): RedirectHandler<T, S>;
|
|
@@ -0,0 +1,294 @@
|
|
|
1
|
+
import { default as Stripe } from 'stripe';
|
|
2
|
+
export declare const ChargeStripeToConvex: (charge: Stripe.Charge) => {
|
|
3
|
+
balance_transaction?: string | null | undefined;
|
|
4
|
+
customer?: string | null | undefined;
|
|
5
|
+
description?: string | null | undefined;
|
|
6
|
+
metadata?: Record<string, string | number | null> | null | undefined;
|
|
7
|
+
payment_intent?: string | null | undefined;
|
|
8
|
+
receipt_email?: string | null | undefined;
|
|
9
|
+
statement_descriptor?: string | null | undefined;
|
|
10
|
+
statement_descriptor_suffix?: string | null | undefined;
|
|
11
|
+
application?: string | null | undefined;
|
|
12
|
+
application_fee?: string | null | undefined;
|
|
13
|
+
application_fee_amount?: number | null | undefined;
|
|
14
|
+
calculated_statement_descriptor?: string | null | undefined;
|
|
15
|
+
failure_balance_transaction?: string | null | undefined;
|
|
16
|
+
failure_code?: string | null | undefined;
|
|
17
|
+
failure_message?: string | null | undefined;
|
|
18
|
+
on_behalf_of?: string | null | undefined;
|
|
19
|
+
payment_method?: string | null | undefined;
|
|
20
|
+
receipt_number?: string | null | undefined;
|
|
21
|
+
receipt_url?: string | null | undefined;
|
|
22
|
+
review?: string | null | undefined;
|
|
23
|
+
source_transfer?: string | null | undefined;
|
|
24
|
+
transfer?: string | null | undefined;
|
|
25
|
+
object: string;
|
|
26
|
+
id: string;
|
|
27
|
+
amount: number;
|
|
28
|
+
billing_details: {
|
|
29
|
+
address?: {
|
|
30
|
+
city?: string | null | undefined;
|
|
31
|
+
country?: string | null | undefined;
|
|
32
|
+
line1?: string | null | undefined;
|
|
33
|
+
line2?: string | null | undefined;
|
|
34
|
+
postal_code?: string | null | undefined;
|
|
35
|
+
state?: string | null | undefined;
|
|
36
|
+
} | null | undefined;
|
|
37
|
+
email?: string | null | undefined;
|
|
38
|
+
name?: string | null | undefined;
|
|
39
|
+
phone?: string | null | undefined;
|
|
40
|
+
tax_id?: string | null | undefined;
|
|
41
|
+
};
|
|
42
|
+
currency: string;
|
|
43
|
+
disputed: boolean;
|
|
44
|
+
payment_method_details: any;
|
|
45
|
+
refunded: boolean;
|
|
46
|
+
shipping: any;
|
|
47
|
+
status: "succeeded" | "failed" | "pending";
|
|
48
|
+
amount_captured: number;
|
|
49
|
+
amount_refunded: number;
|
|
50
|
+
captured: boolean;
|
|
51
|
+
created: number;
|
|
52
|
+
fraud_details: any;
|
|
53
|
+
livemode: boolean;
|
|
54
|
+
outcome: any;
|
|
55
|
+
paid: boolean;
|
|
56
|
+
presentment_details: any;
|
|
57
|
+
radar_options: any;
|
|
58
|
+
refunds: any;
|
|
59
|
+
transfer_data: any;
|
|
60
|
+
transfer_group: any;
|
|
61
|
+
};
|
|
62
|
+
export declare const ChargeSchema: {
|
|
63
|
+
id: import('convex/values').VString<string, "required">;
|
|
64
|
+
amount: import('convex/values').VFloat64<number, "required">;
|
|
65
|
+
balance_transaction: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
66
|
+
billing_details: import('convex/values').VObject<{
|
|
67
|
+
address?: {
|
|
68
|
+
city?: string | null | undefined;
|
|
69
|
+
country?: string | null | undefined;
|
|
70
|
+
line1?: string | null | undefined;
|
|
71
|
+
line2?: string | null | undefined;
|
|
72
|
+
postal_code?: string | null | undefined;
|
|
73
|
+
state?: string | null | undefined;
|
|
74
|
+
} | null | undefined;
|
|
75
|
+
email?: string | null | undefined;
|
|
76
|
+
name?: string | null | undefined;
|
|
77
|
+
phone?: string | null | undefined;
|
|
78
|
+
tax_id?: string | null | undefined;
|
|
79
|
+
}, {
|
|
80
|
+
address: import('convex/values').VUnion<{
|
|
81
|
+
city?: string | null | undefined;
|
|
82
|
+
country?: string | null | undefined;
|
|
83
|
+
line1?: string | null | undefined;
|
|
84
|
+
line2?: string | null | undefined;
|
|
85
|
+
postal_code?: string | null | undefined;
|
|
86
|
+
state?: string | null | undefined;
|
|
87
|
+
} | null | undefined, [import('convex/values').VObject<{
|
|
88
|
+
city?: string | null | undefined;
|
|
89
|
+
country?: string | null | undefined;
|
|
90
|
+
line1?: string | null | undefined;
|
|
91
|
+
line2?: string | null | undefined;
|
|
92
|
+
postal_code?: string | null | undefined;
|
|
93
|
+
state?: string | null | undefined;
|
|
94
|
+
}, {
|
|
95
|
+
city: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
96
|
+
country: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
97
|
+
line1: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
98
|
+
line2: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
99
|
+
postal_code: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
100
|
+
state: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
101
|
+
}, "required", "city" | "country" | "line1" | "line2" | "postal_code" | "state">, import('convex/values').VNull<null, "required">], "optional", "city" | "country" | "line1" | "line2" | "postal_code" | "state">;
|
|
102
|
+
email: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
103
|
+
name: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
104
|
+
phone: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
105
|
+
tax_id: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
106
|
+
}, "required", "address" | "email" | "name" | "phone" | "tax_id" | "address.city" | "address.country" | "address.line1" | "address.line2" | "address.postal_code" | "address.state">;
|
|
107
|
+
currency: import('convex/values').VString<string, "required">;
|
|
108
|
+
customer: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
109
|
+
description: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
110
|
+
disputed: import('convex/values').VBoolean<boolean, "required">;
|
|
111
|
+
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>;
|
|
112
|
+
payment_intent: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
113
|
+
payment_method_details: import('convex/values').VAny<any, "required", string>;
|
|
114
|
+
receipt_email: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
115
|
+
refunded: import('convex/values').VBoolean<boolean, "required">;
|
|
116
|
+
shipping: import('convex/values').VAny<any, "required", string>;
|
|
117
|
+
statement_descriptor: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
118
|
+
statement_descriptor_suffix: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
119
|
+
status: import('convex/values').VUnion<"succeeded" | "failed" | "pending", [import('convex/values').VLiteral<"succeeded", "required">, import('convex/values').VLiteral<"failed", "required">, import('convex/values').VLiteral<"pending", "required">], "required", never>;
|
|
120
|
+
object: import('convex/values').VString<string, "required">;
|
|
121
|
+
amount_captured: import('convex/values').VFloat64<number, "required">;
|
|
122
|
+
amount_refunded: import('convex/values').VFloat64<number, "required">;
|
|
123
|
+
application: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
124
|
+
application_fee: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
125
|
+
application_fee_amount: import('convex/values').VUnion<number | null | undefined, [import('convex/values').VFloat64<number, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
126
|
+
calculated_statement_descriptor: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
127
|
+
captured: import('convex/values').VBoolean<boolean, "required">;
|
|
128
|
+
created: import('convex/values').VFloat64<number, "required">;
|
|
129
|
+
failure_balance_transaction: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
130
|
+
failure_code: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
131
|
+
failure_message: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
132
|
+
fraud_details: import('convex/values').VAny<any, "required", string>;
|
|
133
|
+
livemode: import('convex/values').VBoolean<boolean, "required">;
|
|
134
|
+
on_behalf_of: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
135
|
+
outcome: import('convex/values').VAny<any, "required", string>;
|
|
136
|
+
paid: import('convex/values').VBoolean<boolean, "required">;
|
|
137
|
+
payment_method: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
138
|
+
presentment_details: import('convex/values').VAny<any, "required", string>;
|
|
139
|
+
radar_options: import('convex/values').VAny<any, "required", string>;
|
|
140
|
+
receipt_number: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
141
|
+
receipt_url: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
142
|
+
refunds: import('convex/values').VAny<any, "required", string>;
|
|
143
|
+
review: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
144
|
+
source_transfer: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
145
|
+
transfer: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
146
|
+
transfer_data: import('convex/values').VAny<any, "required", string>;
|
|
147
|
+
transfer_group: import('convex/values').VAny<any, "required", string>;
|
|
148
|
+
};
|
|
149
|
+
export declare const ChargeObject: import('convex/values').VObject<{
|
|
150
|
+
balance_transaction?: string | null | undefined;
|
|
151
|
+
customer?: string | null | undefined;
|
|
152
|
+
description?: string | null | undefined;
|
|
153
|
+
metadata?: Record<string, string | number | null> | null | undefined;
|
|
154
|
+
payment_intent?: string | null | undefined;
|
|
155
|
+
receipt_email?: string | null | undefined;
|
|
156
|
+
statement_descriptor?: string | null | undefined;
|
|
157
|
+
statement_descriptor_suffix?: string | null | undefined;
|
|
158
|
+
application?: string | null | undefined;
|
|
159
|
+
application_fee?: string | null | undefined;
|
|
160
|
+
application_fee_amount?: number | null | undefined;
|
|
161
|
+
calculated_statement_descriptor?: string | null | undefined;
|
|
162
|
+
failure_balance_transaction?: string | null | undefined;
|
|
163
|
+
failure_code?: string | null | undefined;
|
|
164
|
+
failure_message?: string | null | undefined;
|
|
165
|
+
on_behalf_of?: string | null | undefined;
|
|
166
|
+
payment_method?: string | null | undefined;
|
|
167
|
+
receipt_number?: string | null | undefined;
|
|
168
|
+
receipt_url?: string | null | undefined;
|
|
169
|
+
review?: string | null | undefined;
|
|
170
|
+
source_transfer?: string | null | undefined;
|
|
171
|
+
transfer?: string | null | undefined;
|
|
172
|
+
object: string;
|
|
173
|
+
id: string;
|
|
174
|
+
amount: number;
|
|
175
|
+
billing_details: {
|
|
176
|
+
address?: {
|
|
177
|
+
city?: string | null | undefined;
|
|
178
|
+
country?: string | null | undefined;
|
|
179
|
+
line1?: string | null | undefined;
|
|
180
|
+
line2?: string | null | undefined;
|
|
181
|
+
postal_code?: string | null | undefined;
|
|
182
|
+
state?: string | null | undefined;
|
|
183
|
+
} | null | undefined;
|
|
184
|
+
email?: string | null | undefined;
|
|
185
|
+
name?: string | null | undefined;
|
|
186
|
+
phone?: string | null | undefined;
|
|
187
|
+
tax_id?: string | null | undefined;
|
|
188
|
+
};
|
|
189
|
+
currency: string;
|
|
190
|
+
disputed: boolean;
|
|
191
|
+
payment_method_details: any;
|
|
192
|
+
refunded: boolean;
|
|
193
|
+
shipping: any;
|
|
194
|
+
status: "succeeded" | "failed" | "pending";
|
|
195
|
+
amount_captured: number;
|
|
196
|
+
amount_refunded: number;
|
|
197
|
+
captured: boolean;
|
|
198
|
+
created: number;
|
|
199
|
+
fraud_details: any;
|
|
200
|
+
livemode: boolean;
|
|
201
|
+
outcome: any;
|
|
202
|
+
paid: boolean;
|
|
203
|
+
presentment_details: any;
|
|
204
|
+
radar_options: any;
|
|
205
|
+
refunds: any;
|
|
206
|
+
transfer_data: any;
|
|
207
|
+
transfer_group: any;
|
|
208
|
+
}, {
|
|
209
|
+
id: import('convex/values').VString<string, "required">;
|
|
210
|
+
amount: import('convex/values').VFloat64<number, "required">;
|
|
211
|
+
balance_transaction: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
212
|
+
billing_details: import('convex/values').VObject<{
|
|
213
|
+
address?: {
|
|
214
|
+
city?: string | null | undefined;
|
|
215
|
+
country?: string | null | undefined;
|
|
216
|
+
line1?: string | null | undefined;
|
|
217
|
+
line2?: string | null | undefined;
|
|
218
|
+
postal_code?: string | null | undefined;
|
|
219
|
+
state?: string | null | undefined;
|
|
220
|
+
} | null | undefined;
|
|
221
|
+
email?: string | null | undefined;
|
|
222
|
+
name?: string | null | undefined;
|
|
223
|
+
phone?: string | null | undefined;
|
|
224
|
+
tax_id?: string | null | undefined;
|
|
225
|
+
}, {
|
|
226
|
+
address: import('convex/values').VUnion<{
|
|
227
|
+
city?: string | null | undefined;
|
|
228
|
+
country?: string | null | undefined;
|
|
229
|
+
line1?: string | null | undefined;
|
|
230
|
+
line2?: string | null | undefined;
|
|
231
|
+
postal_code?: string | null | undefined;
|
|
232
|
+
state?: string | null | undefined;
|
|
233
|
+
} | null | undefined, [import('convex/values').VObject<{
|
|
234
|
+
city?: string | null | undefined;
|
|
235
|
+
country?: string | null | undefined;
|
|
236
|
+
line1?: string | null | undefined;
|
|
237
|
+
line2?: string | null | undefined;
|
|
238
|
+
postal_code?: string | null | undefined;
|
|
239
|
+
state?: string | null | undefined;
|
|
240
|
+
}, {
|
|
241
|
+
city: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
242
|
+
country: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
243
|
+
line1: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
244
|
+
line2: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
245
|
+
postal_code: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
246
|
+
state: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
247
|
+
}, "required", "city" | "country" | "line1" | "line2" | "postal_code" | "state">, import('convex/values').VNull<null, "required">], "optional", "city" | "country" | "line1" | "line2" | "postal_code" | "state">;
|
|
248
|
+
email: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
249
|
+
name: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
250
|
+
phone: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
251
|
+
tax_id: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
252
|
+
}, "required", "address" | "email" | "name" | "phone" | "tax_id" | "address.city" | "address.country" | "address.line1" | "address.line2" | "address.postal_code" | "address.state">;
|
|
253
|
+
currency: import('convex/values').VString<string, "required">;
|
|
254
|
+
customer: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
255
|
+
description: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
256
|
+
disputed: import('convex/values').VBoolean<boolean, "required">;
|
|
257
|
+
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>;
|
|
258
|
+
payment_intent: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
259
|
+
payment_method_details: import('convex/values').VAny<any, "required", string>;
|
|
260
|
+
receipt_email: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
261
|
+
refunded: import('convex/values').VBoolean<boolean, "required">;
|
|
262
|
+
shipping: import('convex/values').VAny<any, "required", string>;
|
|
263
|
+
statement_descriptor: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
264
|
+
statement_descriptor_suffix: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
265
|
+
status: import('convex/values').VUnion<"succeeded" | "failed" | "pending", [import('convex/values').VLiteral<"succeeded", "required">, import('convex/values').VLiteral<"failed", "required">, import('convex/values').VLiteral<"pending", "required">], "required", never>;
|
|
266
|
+
object: import('convex/values').VString<string, "required">;
|
|
267
|
+
amount_captured: import('convex/values').VFloat64<number, "required">;
|
|
268
|
+
amount_refunded: import('convex/values').VFloat64<number, "required">;
|
|
269
|
+
application: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
270
|
+
application_fee: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
271
|
+
application_fee_amount: import('convex/values').VUnion<number | null | undefined, [import('convex/values').VFloat64<number, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
272
|
+
calculated_statement_descriptor: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
273
|
+
captured: import('convex/values').VBoolean<boolean, "required">;
|
|
274
|
+
created: import('convex/values').VFloat64<number, "required">;
|
|
275
|
+
failure_balance_transaction: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
276
|
+
failure_code: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
277
|
+
failure_message: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
278
|
+
fraud_details: import('convex/values').VAny<any, "required", string>;
|
|
279
|
+
livemode: import('convex/values').VBoolean<boolean, "required">;
|
|
280
|
+
on_behalf_of: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
281
|
+
outcome: import('convex/values').VAny<any, "required", string>;
|
|
282
|
+
paid: import('convex/values').VBoolean<boolean, "required">;
|
|
283
|
+
payment_method: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
284
|
+
presentment_details: import('convex/values').VAny<any, "required", string>;
|
|
285
|
+
radar_options: import('convex/values').VAny<any, "required", string>;
|
|
286
|
+
receipt_number: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
287
|
+
receipt_url: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
288
|
+
refunds: import('convex/values').VAny<any, "required", string>;
|
|
289
|
+
review: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
290
|
+
source_transfer: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
291
|
+
transfer: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
292
|
+
transfer_data: import('convex/values').VAny<any, "required", string>;
|
|
293
|
+
transfer_group: import('convex/values').VAny<any, "required", string>;
|
|
294
|
+
}, "required", "object" | "id" | "amount" | "balance_transaction" | "billing_details" | "currency" | "customer" | "description" | "disputed" | "metadata" | "payment_intent" | "payment_method_details" | "receipt_email" | "refunded" | "shipping" | "statement_descriptor" | "statement_descriptor_suffix" | "status" | "amount_captured" | "amount_refunded" | "application" | "application_fee" | "application_fee_amount" | "calculated_statement_descriptor" | "captured" | "created" | "failure_balance_transaction" | "failure_code" | "failure_message" | "fraud_details" | "livemode" | "on_behalf_of" | "outcome" | "paid" | "payment_method" | "presentment_details" | "radar_options" | "receipt_number" | "receipt_url" | "refunds" | "review" | "source_transfer" | "transfer" | "transfer_data" | "transfer_group" | "billing_details.address" | "billing_details.email" | "billing_details.name" | "billing_details.phone" | "billing_details.tax_id" | "billing_details.address.city" | "billing_details.address.country" | "billing_details.address.line1" | "billing_details.address.line2" | "billing_details.address.postal_code" | "billing_details.address.state" | `metadata.${string}` | `payment_method_details.${string}` | `shipping.${string}` | `fraud_details.${string}` | `outcome.${string}` | `presentment_details.${string}` | `radar_options.${string}` | `refunds.${string}` | `transfer_data.${string}` | `transfer_group.${string}`>;
|