@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,311 @@
|
|
|
1
|
+
import { Infer } from 'convex/values';
|
|
2
|
+
import { default as Stripe } from 'stripe';
|
|
3
|
+
export declare const PaymentIntentStripeToConvex: (intent: Stripe.PaymentIntent) => Infer<typeof PaymentIntentObject>;
|
|
4
|
+
export declare const PaymentIntentSchema: {
|
|
5
|
+
id: import('convex/values').VString<string, "required">;
|
|
6
|
+
amount: import('convex/values').VFloat64<number, "required">;
|
|
7
|
+
automatic_payment_methods: import('convex/values').VUnion<{
|
|
8
|
+
allow_redirects?: "always" | "never" | null | undefined;
|
|
9
|
+
enabled: boolean;
|
|
10
|
+
} | null | undefined, [import('convex/values').VObject<{
|
|
11
|
+
allow_redirects?: "always" | "never" | null | undefined;
|
|
12
|
+
enabled: boolean;
|
|
13
|
+
}, {
|
|
14
|
+
allow_redirects: import('convex/values').VUnion<"always" | "never" | null | undefined, [import('convex/values').VLiteral<"always", "required">, import('convex/values').VLiteral<"never", "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
15
|
+
enabled: import('convex/values').VBoolean<boolean, "required">;
|
|
16
|
+
}, "required", "allow_redirects" | "enabled">, import('convex/values').VNull<null, "required">], "optional", "allow_redirects" | "enabled">;
|
|
17
|
+
client_secret: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
18
|
+
currency: import('convex/values').VUnion<string | null, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "required", never>;
|
|
19
|
+
customer: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
20
|
+
description: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
21
|
+
last_payment_error: import('convex/values').VUnion<{
|
|
22
|
+
payment_method?: any;
|
|
23
|
+
charge?: string | null | undefined;
|
|
24
|
+
advice_code?: string | null | undefined;
|
|
25
|
+
code?: string | null | undefined;
|
|
26
|
+
decline_code?: string | null | undefined;
|
|
27
|
+
doc_url?: string | null | undefined;
|
|
28
|
+
message?: string | null | undefined;
|
|
29
|
+
network_advice_code?: string | null | undefined;
|
|
30
|
+
network_decline_code?: string | null | undefined;
|
|
31
|
+
param?: string | null | undefined;
|
|
32
|
+
payment_method_type?: string | null | undefined;
|
|
33
|
+
last_payment_error?: any;
|
|
34
|
+
latest_charge?: string | null | undefined;
|
|
35
|
+
type: "api_error" | "card_error" | "idempotency_error" | "invalid_request_error";
|
|
36
|
+
} | null | undefined, [import('convex/values').VObject<{
|
|
37
|
+
payment_method?: any;
|
|
38
|
+
charge?: string | null | undefined;
|
|
39
|
+
advice_code?: string | null | undefined;
|
|
40
|
+
code?: string | null | undefined;
|
|
41
|
+
decline_code?: string | null | undefined;
|
|
42
|
+
doc_url?: string | null | undefined;
|
|
43
|
+
message?: string | null | undefined;
|
|
44
|
+
network_advice_code?: string | null | undefined;
|
|
45
|
+
network_decline_code?: string | null | undefined;
|
|
46
|
+
param?: string | null | undefined;
|
|
47
|
+
payment_method_type?: string | null | undefined;
|
|
48
|
+
last_payment_error?: any;
|
|
49
|
+
latest_charge?: string | null | undefined;
|
|
50
|
+
type: "api_error" | "card_error" | "idempotency_error" | "invalid_request_error";
|
|
51
|
+
}, {
|
|
52
|
+
advice_code: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
53
|
+
charge: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
54
|
+
code: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
55
|
+
decline_code: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
56
|
+
doc_url: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
57
|
+
message: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
58
|
+
network_advice_code: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
59
|
+
network_decline_code: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
60
|
+
param: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
61
|
+
payment_method: import('convex/values').VAny<any, "optional", string>;
|
|
62
|
+
payment_method_type: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
63
|
+
last_payment_error: import('convex/values').VAny<any, "optional", string>;
|
|
64
|
+
type: import('convex/values').VUnion<"api_error" | "card_error" | "idempotency_error" | "invalid_request_error", [import('convex/values').VLiteral<"api_error", "required">, import('convex/values').VLiteral<"card_error", "required">, import('convex/values').VLiteral<"idempotency_error", "required">, import('convex/values').VLiteral<"invalid_request_error", "required">], "required", never>;
|
|
65
|
+
latest_charge: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
66
|
+
}, "required", "type" | "payment_method" | "charge" | "advice_code" | "code" | "decline_code" | "doc_url" | "message" | "network_advice_code" | "network_decline_code" | "param" | "payment_method_type" | "last_payment_error" | "latest_charge" | `payment_method.${string}` | `last_payment_error.${string}`>, import('convex/values').VNull<null, "required">], "optional", "type" | "payment_method" | "charge" | "advice_code" | "code" | "decline_code" | "doc_url" | "message" | "network_advice_code" | "network_decline_code" | "param" | "payment_method_type" | "last_payment_error" | "latest_charge" | `payment_method.${string}` | `last_payment_error.${string}`>;
|
|
67
|
+
latest_charge: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
68
|
+
metadata: import('convex/values').VUnion<Record<string, string | number | null> | null | undefined, [import('convex/values').VRecord<Record<string, string | number | null>, import('convex/values').VString<string, "required">, import('convex/values').VUnion<string | number | null, [import('convex/values').VString<string, "required">, import('convex/values').VFloat64<number, "required">, import('convex/values').VNull<null, "required">], "required", never>, "required", string>, import('convex/values').VNull<null, "required">], "optional", string>;
|
|
69
|
+
next_action: import('convex/values').VAny<any, "optional", string>;
|
|
70
|
+
payment_method: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
71
|
+
receipt_email: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
72
|
+
setup_future_usage: import('convex/values').VUnion<"off_session" | "on_session" | null, [import('convex/values').VLiteral<"off_session", "required">, import('convex/values').VLiteral<"on_session", "required">, import('convex/values').VNull<null, "required">], "required", never>;
|
|
73
|
+
shipping: import('convex/values').VAny<any, "optional", string>;
|
|
74
|
+
statement_descriptor: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
75
|
+
statement_descriptor_suffix: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
76
|
+
status: import('convex/values').VUnion<"succeeded" | "canceled" | "processing" | "requires_action" | "requires_capture" | "requires_confirmation" | "requires_payment_method", [import('convex/values').VLiteral<"canceled", "required">, import('convex/values').VLiteral<"processing", "required">, import('convex/values').VLiteral<"requires_action", "required">, import('convex/values').VLiteral<"requires_capture", "required">, import('convex/values').VLiteral<"requires_confirmation", "required">, import('convex/values').VLiteral<"requires_payment_method", "required">, import('convex/values').VLiteral<"succeeded", "required">], "required", never>;
|
|
77
|
+
object: import('convex/values').VString<string, "required">;
|
|
78
|
+
amount_capturable: import('convex/values').VFloat64<number, "required">;
|
|
79
|
+
amount_details: import('convex/values').VUnion<{
|
|
80
|
+
tip?: {
|
|
81
|
+
amount?: number | null | undefined;
|
|
82
|
+
} | null | undefined;
|
|
83
|
+
} | null | undefined, [import('convex/values').VObject<{
|
|
84
|
+
tip?: {
|
|
85
|
+
amount?: number | null | undefined;
|
|
86
|
+
} | null | undefined;
|
|
87
|
+
}, {
|
|
88
|
+
tip: import('convex/values').VUnion<{
|
|
89
|
+
amount?: number | null | undefined;
|
|
90
|
+
} | null | undefined, [import('convex/values').VObject<{
|
|
91
|
+
amount?: number | null | undefined;
|
|
92
|
+
}, {
|
|
93
|
+
amount: import('convex/values').VUnion<number | null | undefined, [import('convex/values').VFloat64<number, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
94
|
+
}, "required", "amount">, import('convex/values').VNull<null, "required">], "optional", "amount">;
|
|
95
|
+
}, "required", "tip" | "tip.amount">, import('convex/values').VNull<null, "required">], "optional", "tip" | "tip.amount">;
|
|
96
|
+
amount_received: import('convex/values').VFloat64<number, "required">;
|
|
97
|
+
application: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
98
|
+
application_fee_amount: import('convex/values').VUnion<number | null | undefined, [import('convex/values').VFloat64<number, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
99
|
+
canceled_at: import('convex/values').VUnion<number | null | undefined, [import('convex/values').VFloat64<number, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
100
|
+
cancellation_reason: import('convex/values').VUnion<"expired" | "duplicate" | "fraudulent" | "abandoned" | "automatic" | "failed_invoice" | "requested_by_customer" | "void_invoice" | null | undefined, [import('convex/values').VLiteral<"abandoned", "required">, import('convex/values').VLiteral<"automatic", "required">, import('convex/values').VLiteral<"duplicate", "required">, import('convex/values').VLiteral<"expired", "required">, import('convex/values').VLiteral<"failed_invoice", "required">, import('convex/values').VLiteral<"fraudulent", "required">, import('convex/values').VLiteral<"requested_by_customer", "required">, import('convex/values').VLiteral<"void_invoice", "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
101
|
+
capture_method: import('convex/values').VUnion<"manual" | "automatic" | "automatic_sync" | "automatic_async", [import('convex/values').VLiteral<"automatic", "required">, import('convex/values').VLiteral<"automatic_sync", "required">, import('convex/values').VLiteral<"automatic_async", "required">, import('convex/values').VLiteral<"manual", "required">], "required", never>;
|
|
102
|
+
confirmation_method: import('convex/values').VUnion<"manual" | "automatic", [import('convex/values').VLiteral<"automatic", "required">, import('convex/values').VLiteral<"manual", "required">], "required", never>;
|
|
103
|
+
created: import('convex/values').VFloat64<number, "required">;
|
|
104
|
+
excluded_payment_method_types: import('convex/values').VUnion<string[] | null, [import('convex/values').VArray<string[], import('convex/values').VString<string, "required">, "required">, import('convex/values').VNull<null, "required">], "required", never>;
|
|
105
|
+
livemode: import('convex/values').VBoolean<boolean, "required">;
|
|
106
|
+
on_behalf_of: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
107
|
+
payment_method_configuration_details: import('convex/values').VUnion<{
|
|
108
|
+
parent?: string | null | undefined;
|
|
109
|
+
id: string;
|
|
110
|
+
} | null | undefined, [import('convex/values').VObject<{
|
|
111
|
+
parent?: string | null | undefined;
|
|
112
|
+
id: string;
|
|
113
|
+
}, {
|
|
114
|
+
id: import('convex/values').VString<string, "required">;
|
|
115
|
+
parent: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
116
|
+
}, "required", "id" | "parent">, import('convex/values').VNull<null, "required">], "optional", "id" | "parent">;
|
|
117
|
+
payment_method_options: import('convex/values').VAny<any, "optional", string>;
|
|
118
|
+
payment_method_types: import('convex/values').VArray<string[], import('convex/values').VString<string, "required">, "required">;
|
|
119
|
+
presentment_details: import('convex/values').VAny<any, "optional", string>;
|
|
120
|
+
processing: import('convex/values').VAny<any, "optional", string>;
|
|
121
|
+
review: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
122
|
+
transfer_data: import('convex/values').VAny<any, "optional", string>;
|
|
123
|
+
transfer_group: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
124
|
+
};
|
|
125
|
+
export declare const PaymentIntentObject: import('convex/values').VObject<{
|
|
126
|
+
customer?: string | null | undefined;
|
|
127
|
+
description?: string | null | undefined;
|
|
128
|
+
metadata?: Record<string, string | number | null> | null | undefined;
|
|
129
|
+
receipt_email?: string | null | undefined;
|
|
130
|
+
shipping?: any;
|
|
131
|
+
statement_descriptor?: string | null | undefined;
|
|
132
|
+
statement_descriptor_suffix?: string | null | undefined;
|
|
133
|
+
application?: string | null | undefined;
|
|
134
|
+
application_fee_amount?: number | null | undefined;
|
|
135
|
+
on_behalf_of?: string | null | undefined;
|
|
136
|
+
payment_method?: string | null | undefined;
|
|
137
|
+
presentment_details?: any;
|
|
138
|
+
review?: string | null | undefined;
|
|
139
|
+
transfer_data?: any;
|
|
140
|
+
transfer_group?: string | null | undefined;
|
|
141
|
+
client_secret?: string | null | undefined;
|
|
142
|
+
payment_method_configuration_details?: {
|
|
143
|
+
parent?: string | null | undefined;
|
|
144
|
+
id: string;
|
|
145
|
+
} | null | undefined;
|
|
146
|
+
payment_method_options?: any;
|
|
147
|
+
last_payment_error?: {
|
|
148
|
+
payment_method?: any;
|
|
149
|
+
charge?: string | null | undefined;
|
|
150
|
+
advice_code?: string | null | undefined;
|
|
151
|
+
code?: string | null | undefined;
|
|
152
|
+
decline_code?: string | null | undefined;
|
|
153
|
+
doc_url?: string | null | undefined;
|
|
154
|
+
message?: string | null | undefined;
|
|
155
|
+
network_advice_code?: string | null | undefined;
|
|
156
|
+
network_decline_code?: string | null | undefined;
|
|
157
|
+
param?: string | null | undefined;
|
|
158
|
+
payment_method_type?: string | null | undefined;
|
|
159
|
+
last_payment_error?: any;
|
|
160
|
+
latest_charge?: string | null | undefined;
|
|
161
|
+
type: "api_error" | "card_error" | "idempotency_error" | "invalid_request_error";
|
|
162
|
+
} | null | undefined;
|
|
163
|
+
latest_charge?: string | null | undefined;
|
|
164
|
+
processing?: any;
|
|
165
|
+
automatic_payment_methods?: {
|
|
166
|
+
allow_redirects?: "always" | "never" | null | undefined;
|
|
167
|
+
enabled: boolean;
|
|
168
|
+
} | null | undefined;
|
|
169
|
+
next_action?: any;
|
|
170
|
+
amount_details?: {
|
|
171
|
+
tip?: {
|
|
172
|
+
amount?: number | null | undefined;
|
|
173
|
+
} | null | undefined;
|
|
174
|
+
} | null | undefined;
|
|
175
|
+
canceled_at?: number | null | undefined;
|
|
176
|
+
cancellation_reason?: "expired" | "duplicate" | "fraudulent" | "abandoned" | "automatic" | "failed_invoice" | "requested_by_customer" | "void_invoice" | null | undefined;
|
|
177
|
+
object: string;
|
|
178
|
+
id: string;
|
|
179
|
+
amount: number;
|
|
180
|
+
currency: string | null;
|
|
181
|
+
status: "succeeded" | "canceled" | "processing" | "requires_action" | "requires_capture" | "requires_confirmation" | "requires_payment_method";
|
|
182
|
+
created: number;
|
|
183
|
+
livemode: boolean;
|
|
184
|
+
payment_method_types: string[];
|
|
185
|
+
setup_future_usage: "off_session" | "on_session" | null;
|
|
186
|
+
amount_capturable: number;
|
|
187
|
+
amount_received: number;
|
|
188
|
+
capture_method: "manual" | "automatic" | "automatic_sync" | "automatic_async";
|
|
189
|
+
confirmation_method: "manual" | "automatic";
|
|
190
|
+
excluded_payment_method_types: string[] | null;
|
|
191
|
+
}, {
|
|
192
|
+
id: import('convex/values').VString<string, "required">;
|
|
193
|
+
amount: import('convex/values').VFloat64<number, "required">;
|
|
194
|
+
automatic_payment_methods: import('convex/values').VUnion<{
|
|
195
|
+
allow_redirects?: "always" | "never" | null | undefined;
|
|
196
|
+
enabled: boolean;
|
|
197
|
+
} | null | undefined, [import('convex/values').VObject<{
|
|
198
|
+
allow_redirects?: "always" | "never" | null | undefined;
|
|
199
|
+
enabled: boolean;
|
|
200
|
+
}, {
|
|
201
|
+
allow_redirects: import('convex/values').VUnion<"always" | "never" | null | undefined, [import('convex/values').VLiteral<"always", "required">, import('convex/values').VLiteral<"never", "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
202
|
+
enabled: import('convex/values').VBoolean<boolean, "required">;
|
|
203
|
+
}, "required", "allow_redirects" | "enabled">, import('convex/values').VNull<null, "required">], "optional", "allow_redirects" | "enabled">;
|
|
204
|
+
client_secret: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
205
|
+
currency: import('convex/values').VUnion<string | null, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "required", never>;
|
|
206
|
+
customer: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
207
|
+
description: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
208
|
+
last_payment_error: import('convex/values').VUnion<{
|
|
209
|
+
payment_method?: any;
|
|
210
|
+
charge?: string | null | undefined;
|
|
211
|
+
advice_code?: string | null | undefined;
|
|
212
|
+
code?: string | null | undefined;
|
|
213
|
+
decline_code?: string | null | undefined;
|
|
214
|
+
doc_url?: string | null | undefined;
|
|
215
|
+
message?: string | null | undefined;
|
|
216
|
+
network_advice_code?: string | null | undefined;
|
|
217
|
+
network_decline_code?: string | null | undefined;
|
|
218
|
+
param?: string | null | undefined;
|
|
219
|
+
payment_method_type?: string | null | undefined;
|
|
220
|
+
last_payment_error?: any;
|
|
221
|
+
latest_charge?: string | null | undefined;
|
|
222
|
+
type: "api_error" | "card_error" | "idempotency_error" | "invalid_request_error";
|
|
223
|
+
} | null | undefined, [import('convex/values').VObject<{
|
|
224
|
+
payment_method?: any;
|
|
225
|
+
charge?: string | null | undefined;
|
|
226
|
+
advice_code?: string | null | undefined;
|
|
227
|
+
code?: string | null | undefined;
|
|
228
|
+
decline_code?: string | null | undefined;
|
|
229
|
+
doc_url?: string | null | undefined;
|
|
230
|
+
message?: string | null | undefined;
|
|
231
|
+
network_advice_code?: string | null | undefined;
|
|
232
|
+
network_decline_code?: string | null | undefined;
|
|
233
|
+
param?: string | null | undefined;
|
|
234
|
+
payment_method_type?: string | null | undefined;
|
|
235
|
+
last_payment_error?: any;
|
|
236
|
+
latest_charge?: string | null | undefined;
|
|
237
|
+
type: "api_error" | "card_error" | "idempotency_error" | "invalid_request_error";
|
|
238
|
+
}, {
|
|
239
|
+
advice_code: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
240
|
+
charge: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
241
|
+
code: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
242
|
+
decline_code: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
243
|
+
doc_url: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
244
|
+
message: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
245
|
+
network_advice_code: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
246
|
+
network_decline_code: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
247
|
+
param: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
248
|
+
payment_method: import('convex/values').VAny<any, "optional", string>;
|
|
249
|
+
payment_method_type: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
250
|
+
last_payment_error: import('convex/values').VAny<any, "optional", string>;
|
|
251
|
+
type: import('convex/values').VUnion<"api_error" | "card_error" | "idempotency_error" | "invalid_request_error", [import('convex/values').VLiteral<"api_error", "required">, import('convex/values').VLiteral<"card_error", "required">, import('convex/values').VLiteral<"idempotency_error", "required">, import('convex/values').VLiteral<"invalid_request_error", "required">], "required", never>;
|
|
252
|
+
latest_charge: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
253
|
+
}, "required", "type" | "payment_method" | "charge" | "advice_code" | "code" | "decline_code" | "doc_url" | "message" | "network_advice_code" | "network_decline_code" | "param" | "payment_method_type" | "last_payment_error" | "latest_charge" | `payment_method.${string}` | `last_payment_error.${string}`>, import('convex/values').VNull<null, "required">], "optional", "type" | "payment_method" | "charge" | "advice_code" | "code" | "decline_code" | "doc_url" | "message" | "network_advice_code" | "network_decline_code" | "param" | "payment_method_type" | "last_payment_error" | "latest_charge" | `payment_method.${string}` | `last_payment_error.${string}`>;
|
|
254
|
+
latest_charge: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
255
|
+
metadata: import('convex/values').VUnion<Record<string, string | number | null> | null | undefined, [import('convex/values').VRecord<Record<string, string | number | null>, import('convex/values').VString<string, "required">, import('convex/values').VUnion<string | number | null, [import('convex/values').VString<string, "required">, import('convex/values').VFloat64<number, "required">, import('convex/values').VNull<null, "required">], "required", never>, "required", string>, import('convex/values').VNull<null, "required">], "optional", string>;
|
|
256
|
+
next_action: import('convex/values').VAny<any, "optional", string>;
|
|
257
|
+
payment_method: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
258
|
+
receipt_email: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
259
|
+
setup_future_usage: import('convex/values').VUnion<"off_session" | "on_session" | null, [import('convex/values').VLiteral<"off_session", "required">, import('convex/values').VLiteral<"on_session", "required">, import('convex/values').VNull<null, "required">], "required", never>;
|
|
260
|
+
shipping: import('convex/values').VAny<any, "optional", string>;
|
|
261
|
+
statement_descriptor: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
262
|
+
statement_descriptor_suffix: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
263
|
+
status: import('convex/values').VUnion<"succeeded" | "canceled" | "processing" | "requires_action" | "requires_capture" | "requires_confirmation" | "requires_payment_method", [import('convex/values').VLiteral<"canceled", "required">, import('convex/values').VLiteral<"processing", "required">, import('convex/values').VLiteral<"requires_action", "required">, import('convex/values').VLiteral<"requires_capture", "required">, import('convex/values').VLiteral<"requires_confirmation", "required">, import('convex/values').VLiteral<"requires_payment_method", "required">, import('convex/values').VLiteral<"succeeded", "required">], "required", never>;
|
|
264
|
+
object: import('convex/values').VString<string, "required">;
|
|
265
|
+
amount_capturable: import('convex/values').VFloat64<number, "required">;
|
|
266
|
+
amount_details: import('convex/values').VUnion<{
|
|
267
|
+
tip?: {
|
|
268
|
+
amount?: number | null | undefined;
|
|
269
|
+
} | null | undefined;
|
|
270
|
+
} | null | undefined, [import('convex/values').VObject<{
|
|
271
|
+
tip?: {
|
|
272
|
+
amount?: number | null | undefined;
|
|
273
|
+
} | null | undefined;
|
|
274
|
+
}, {
|
|
275
|
+
tip: import('convex/values').VUnion<{
|
|
276
|
+
amount?: number | null | undefined;
|
|
277
|
+
} | null | undefined, [import('convex/values').VObject<{
|
|
278
|
+
amount?: number | null | undefined;
|
|
279
|
+
}, {
|
|
280
|
+
amount: import('convex/values').VUnion<number | null | undefined, [import('convex/values').VFloat64<number, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
281
|
+
}, "required", "amount">, import('convex/values').VNull<null, "required">], "optional", "amount">;
|
|
282
|
+
}, "required", "tip" | "tip.amount">, import('convex/values').VNull<null, "required">], "optional", "tip" | "tip.amount">;
|
|
283
|
+
amount_received: import('convex/values').VFloat64<number, "required">;
|
|
284
|
+
application: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
285
|
+
application_fee_amount: import('convex/values').VUnion<number | null | undefined, [import('convex/values').VFloat64<number, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
286
|
+
canceled_at: import('convex/values').VUnion<number | null | undefined, [import('convex/values').VFloat64<number, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
287
|
+
cancellation_reason: import('convex/values').VUnion<"expired" | "duplicate" | "fraudulent" | "abandoned" | "automatic" | "failed_invoice" | "requested_by_customer" | "void_invoice" | null | undefined, [import('convex/values').VLiteral<"abandoned", "required">, import('convex/values').VLiteral<"automatic", "required">, import('convex/values').VLiteral<"duplicate", "required">, import('convex/values').VLiteral<"expired", "required">, import('convex/values').VLiteral<"failed_invoice", "required">, import('convex/values').VLiteral<"fraudulent", "required">, import('convex/values').VLiteral<"requested_by_customer", "required">, import('convex/values').VLiteral<"void_invoice", "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
288
|
+
capture_method: import('convex/values').VUnion<"manual" | "automatic" | "automatic_sync" | "automatic_async", [import('convex/values').VLiteral<"automatic", "required">, import('convex/values').VLiteral<"automatic_sync", "required">, import('convex/values').VLiteral<"automatic_async", "required">, import('convex/values').VLiteral<"manual", "required">], "required", never>;
|
|
289
|
+
confirmation_method: import('convex/values').VUnion<"manual" | "automatic", [import('convex/values').VLiteral<"automatic", "required">, import('convex/values').VLiteral<"manual", "required">], "required", never>;
|
|
290
|
+
created: import('convex/values').VFloat64<number, "required">;
|
|
291
|
+
excluded_payment_method_types: import('convex/values').VUnion<string[] | null, [import('convex/values').VArray<string[], import('convex/values').VString<string, "required">, "required">, import('convex/values').VNull<null, "required">], "required", never>;
|
|
292
|
+
livemode: import('convex/values').VBoolean<boolean, "required">;
|
|
293
|
+
on_behalf_of: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
294
|
+
payment_method_configuration_details: import('convex/values').VUnion<{
|
|
295
|
+
parent?: string | null | undefined;
|
|
296
|
+
id: string;
|
|
297
|
+
} | null | undefined, [import('convex/values').VObject<{
|
|
298
|
+
parent?: string | null | undefined;
|
|
299
|
+
id: string;
|
|
300
|
+
}, {
|
|
301
|
+
id: import('convex/values').VString<string, "required">;
|
|
302
|
+
parent: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
303
|
+
}, "required", "id" | "parent">, import('convex/values').VNull<null, "required">], "optional", "id" | "parent">;
|
|
304
|
+
payment_method_options: import('convex/values').VAny<any, "optional", string>;
|
|
305
|
+
payment_method_types: import('convex/values').VArray<string[], import('convex/values').VString<string, "required">, "required">;
|
|
306
|
+
presentment_details: import('convex/values').VAny<any, "optional", string>;
|
|
307
|
+
processing: import('convex/values').VAny<any, "optional", string>;
|
|
308
|
+
review: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
309
|
+
transfer_data: import('convex/values').VAny<any, "optional", string>;
|
|
310
|
+
transfer_group: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
311
|
+
}, "required", "object" | "id" | "amount" | "currency" | "customer" | "description" | "metadata" | "receipt_email" | "shipping" | "statement_descriptor" | "statement_descriptor_suffix" | "status" | "application" | "application_fee_amount" | "created" | "livemode" | "on_behalf_of" | "payment_method" | "presentment_details" | "review" | "transfer_data" | "transfer_group" | `metadata.${string}` | `shipping.${string}` | `presentment_details.${string}` | `transfer_data.${string}` | "client_secret" | "payment_method_configuration_details" | "payment_method_options" | "payment_method_types" | `payment_method_options.${string}` | "last_payment_error" | "latest_charge" | "processing" | "automatic_payment_methods" | "next_action" | "setup_future_usage" | "amount_capturable" | "amount_details" | "amount_received" | "canceled_at" | "cancellation_reason" | "capture_method" | "confirmation_method" | "excluded_payment_method_types" | "payment_method_configuration_details.id" | "payment_method_configuration_details.parent" | "last_payment_error.type" | "last_payment_error.payment_method" | "last_payment_error.charge" | "last_payment_error.advice_code" | "last_payment_error.code" | "last_payment_error.decline_code" | "last_payment_error.doc_url" | "last_payment_error.message" | "last_payment_error.network_advice_code" | "last_payment_error.network_decline_code" | "last_payment_error.param" | "last_payment_error.payment_method_type" | "last_payment_error.last_payment_error" | "last_payment_error.latest_charge" | `last_payment_error.payment_method.${string}` | `last_payment_error.last_payment_error.${string}` | `processing.${string}` | "automatic_payment_methods.allow_redirects" | "automatic_payment_methods.enabled" | `next_action.${string}` | "amount_details.tip" | "amount_details.tip.amount">;
|
|
@@ -0,0 +1,248 @@
|
|
|
1
|
+
import { default as Stripe } from 'stripe';
|
|
2
|
+
export declare const PaymentMethodStripeToConvex: (paymentMethod: Stripe.PaymentMethod) => {
|
|
3
|
+
customer?: string | null | undefined;
|
|
4
|
+
metadata?: Record<string, string | number | null> | null | undefined;
|
|
5
|
+
object: string;
|
|
6
|
+
type: string;
|
|
7
|
+
id: string;
|
|
8
|
+
link: any;
|
|
9
|
+
billing_details: any;
|
|
10
|
+
created: number;
|
|
11
|
+
livemode: boolean;
|
|
12
|
+
radar_options: any;
|
|
13
|
+
acss_debit: any;
|
|
14
|
+
affirm: any;
|
|
15
|
+
afterpay_clearpay: any;
|
|
16
|
+
alipay: any;
|
|
17
|
+
alma: any;
|
|
18
|
+
amazon_pay: any;
|
|
19
|
+
au_becs_debit: any;
|
|
20
|
+
bacs_debit: any;
|
|
21
|
+
bancontact: any;
|
|
22
|
+
billie: any;
|
|
23
|
+
blik: any;
|
|
24
|
+
boleto: any;
|
|
25
|
+
card: any;
|
|
26
|
+
cashapp: any;
|
|
27
|
+
crypto: any;
|
|
28
|
+
customer_balance: any;
|
|
29
|
+
eps: any;
|
|
30
|
+
fpx: any;
|
|
31
|
+
giropay: any;
|
|
32
|
+
grabpay: any;
|
|
33
|
+
ideal: any;
|
|
34
|
+
kakao_pay: any;
|
|
35
|
+
klarna: any;
|
|
36
|
+
konbini: any;
|
|
37
|
+
kr_card: any;
|
|
38
|
+
mobilepay: any;
|
|
39
|
+
multibanco: any;
|
|
40
|
+
naver_pay: any;
|
|
41
|
+
nz_bank_account: any;
|
|
42
|
+
oxxo: any;
|
|
43
|
+
p24: any;
|
|
44
|
+
pay_by_bank: any;
|
|
45
|
+
payco: any;
|
|
46
|
+
paynow: any;
|
|
47
|
+
paypal: any;
|
|
48
|
+
pix: any;
|
|
49
|
+
promptpay: any;
|
|
50
|
+
revolut_pay: any;
|
|
51
|
+
samsung_pay: any;
|
|
52
|
+
satispay: any;
|
|
53
|
+
sepa_debit: any;
|
|
54
|
+
sofort: any;
|
|
55
|
+
swish: any;
|
|
56
|
+
twint: any;
|
|
57
|
+
us_bank_account: any;
|
|
58
|
+
wechat_pay: any;
|
|
59
|
+
zip: any;
|
|
60
|
+
allow_redisplay: "always" | "limited" | "unspecified" | null;
|
|
61
|
+
card_present: any;
|
|
62
|
+
interac_present: any;
|
|
63
|
+
};
|
|
64
|
+
export declare const PaymentMethodSchema: {
|
|
65
|
+
id: import('convex/values').VString<string, "required">;
|
|
66
|
+
billing_details: import('convex/values').VAny<any, "required", string>;
|
|
67
|
+
customer: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
68
|
+
metadata: import('convex/values').VUnion<Record<string, string | number | null> | null | undefined, [import('convex/values').VRecord<Record<string, string | number | null>, import('convex/values').VString<string, "required">, import('convex/values').VUnion<string | number | null, [import('convex/values').VString<string, "required">, import('convex/values').VFloat64<number, "required">, import('convex/values').VNull<null, "required">], "required", never>, "required", string>, import('convex/values').VNull<null, "required">], "optional", string>;
|
|
69
|
+
type: import('convex/values').VString<string, "required">;
|
|
70
|
+
object: import('convex/values').VString<string, "required">;
|
|
71
|
+
acss_debit: import('convex/values').VAny<any, "required", string>;
|
|
72
|
+
affirm: import('convex/values').VAny<any, "required", string>;
|
|
73
|
+
afterpay_clearpay: import('convex/values').VAny<any, "required", string>;
|
|
74
|
+
alipay: import('convex/values').VAny<any, "required", string>;
|
|
75
|
+
allow_redisplay: import('convex/values').VUnion<"always" | "limited" | "unspecified" | null, [import('convex/values').VLiteral<"always", "required">, import('convex/values').VLiteral<"limited", "required">, import('convex/values').VLiteral<"unspecified", "required">, import('convex/values').VNull<null, "required">], "required", never>;
|
|
76
|
+
alma: import('convex/values').VAny<any, "required", string>;
|
|
77
|
+
amazon_pay: import('convex/values').VAny<any, "required", string>;
|
|
78
|
+
au_becs_debit: import('convex/values').VAny<any, "required", string>;
|
|
79
|
+
bacs_debit: import('convex/values').VAny<any, "required", string>;
|
|
80
|
+
bancontact: import('convex/values').VAny<any, "required", string>;
|
|
81
|
+
billie: import('convex/values').VAny<any, "required", string>;
|
|
82
|
+
blik: import('convex/values').VAny<any, "required", string>;
|
|
83
|
+
boleto: import('convex/values').VAny<any, "required", string>;
|
|
84
|
+
card: import('convex/values').VAny<any, "required", string>;
|
|
85
|
+
card_present: import('convex/values').VAny<any, "required", string>;
|
|
86
|
+
cashapp: import('convex/values').VAny<any, "required", string>;
|
|
87
|
+
created: import('convex/values').VFloat64<number, "required">;
|
|
88
|
+
crypto: import('convex/values').VAny<any, "required", string>;
|
|
89
|
+
customer_balance: import('convex/values').VAny<any, "required", string>;
|
|
90
|
+
eps: import('convex/values').VAny<any, "required", string>;
|
|
91
|
+
fpx: import('convex/values').VAny<any, "required", string>;
|
|
92
|
+
giropay: import('convex/values').VAny<any, "required", string>;
|
|
93
|
+
grabpay: import('convex/values').VAny<any, "required", string>;
|
|
94
|
+
ideal: import('convex/values').VAny<any, "required", string>;
|
|
95
|
+
interac_present: import('convex/values').VAny<any, "required", string>;
|
|
96
|
+
kakao_pay: import('convex/values').VAny<any, "required", string>;
|
|
97
|
+
klarna: import('convex/values').VAny<any, "required", string>;
|
|
98
|
+
konbini: import('convex/values').VAny<any, "required", string>;
|
|
99
|
+
kr_card: import('convex/values').VAny<any, "required", string>;
|
|
100
|
+
link: import('convex/values').VAny<any, "required", string>;
|
|
101
|
+
livemode: import('convex/values').VBoolean<boolean, "required">;
|
|
102
|
+
mobilepay: import('convex/values').VAny<any, "required", string>;
|
|
103
|
+
multibanco: import('convex/values').VAny<any, "required", string>;
|
|
104
|
+
naver_pay: import('convex/values').VAny<any, "required", string>;
|
|
105
|
+
nz_bank_account: import('convex/values').VAny<any, "required", string>;
|
|
106
|
+
oxxo: import('convex/values').VAny<any, "required", string>;
|
|
107
|
+
p24: import('convex/values').VAny<any, "required", string>;
|
|
108
|
+
pay_by_bank: import('convex/values').VAny<any, "required", string>;
|
|
109
|
+
payco: import('convex/values').VAny<any, "required", string>;
|
|
110
|
+
paynow: import('convex/values').VAny<any, "required", string>;
|
|
111
|
+
paypal: import('convex/values').VAny<any, "required", string>;
|
|
112
|
+
pix: import('convex/values').VAny<any, "required", string>;
|
|
113
|
+
promptpay: import('convex/values').VAny<any, "required", string>;
|
|
114
|
+
radar_options: import('convex/values').VAny<any, "required", string>;
|
|
115
|
+
revolut_pay: import('convex/values').VAny<any, "required", string>;
|
|
116
|
+
samsung_pay: import('convex/values').VAny<any, "required", string>;
|
|
117
|
+
satispay: import('convex/values').VAny<any, "required", string>;
|
|
118
|
+
sepa_debit: import('convex/values').VAny<any, "required", string>;
|
|
119
|
+
sofort: import('convex/values').VAny<any, "required", string>;
|
|
120
|
+
swish: import('convex/values').VAny<any, "required", string>;
|
|
121
|
+
twint: import('convex/values').VAny<any, "required", string>;
|
|
122
|
+
us_bank_account: import('convex/values').VAny<any, "required", string>;
|
|
123
|
+
wechat_pay: import('convex/values').VAny<any, "required", string>;
|
|
124
|
+
zip: import('convex/values').VAny<any, "required", string>;
|
|
125
|
+
};
|
|
126
|
+
export declare const PaymentMethodObject: import('convex/values').VObject<{
|
|
127
|
+
customer?: string | null | undefined;
|
|
128
|
+
metadata?: Record<string, string | number | null> | null | undefined;
|
|
129
|
+
object: string;
|
|
130
|
+
type: string;
|
|
131
|
+
id: string;
|
|
132
|
+
link: any;
|
|
133
|
+
billing_details: any;
|
|
134
|
+
created: number;
|
|
135
|
+
livemode: boolean;
|
|
136
|
+
radar_options: any;
|
|
137
|
+
acss_debit: any;
|
|
138
|
+
affirm: any;
|
|
139
|
+
afterpay_clearpay: any;
|
|
140
|
+
alipay: any;
|
|
141
|
+
alma: any;
|
|
142
|
+
amazon_pay: any;
|
|
143
|
+
au_becs_debit: any;
|
|
144
|
+
bacs_debit: any;
|
|
145
|
+
bancontact: any;
|
|
146
|
+
billie: any;
|
|
147
|
+
blik: any;
|
|
148
|
+
boleto: any;
|
|
149
|
+
card: any;
|
|
150
|
+
cashapp: any;
|
|
151
|
+
crypto: any;
|
|
152
|
+
customer_balance: any;
|
|
153
|
+
eps: any;
|
|
154
|
+
fpx: any;
|
|
155
|
+
giropay: any;
|
|
156
|
+
grabpay: any;
|
|
157
|
+
ideal: any;
|
|
158
|
+
kakao_pay: any;
|
|
159
|
+
klarna: any;
|
|
160
|
+
konbini: any;
|
|
161
|
+
kr_card: any;
|
|
162
|
+
mobilepay: any;
|
|
163
|
+
multibanco: any;
|
|
164
|
+
naver_pay: any;
|
|
165
|
+
nz_bank_account: any;
|
|
166
|
+
oxxo: any;
|
|
167
|
+
p24: any;
|
|
168
|
+
pay_by_bank: any;
|
|
169
|
+
payco: any;
|
|
170
|
+
paynow: any;
|
|
171
|
+
paypal: any;
|
|
172
|
+
pix: any;
|
|
173
|
+
promptpay: any;
|
|
174
|
+
revolut_pay: any;
|
|
175
|
+
samsung_pay: any;
|
|
176
|
+
satispay: any;
|
|
177
|
+
sepa_debit: any;
|
|
178
|
+
sofort: any;
|
|
179
|
+
swish: any;
|
|
180
|
+
twint: any;
|
|
181
|
+
us_bank_account: any;
|
|
182
|
+
wechat_pay: any;
|
|
183
|
+
zip: any;
|
|
184
|
+
allow_redisplay: "always" | "limited" | "unspecified" | null;
|
|
185
|
+
card_present: any;
|
|
186
|
+
interac_present: any;
|
|
187
|
+
}, {
|
|
188
|
+
id: import('convex/values').VString<string, "required">;
|
|
189
|
+
billing_details: import('convex/values').VAny<any, "required", string>;
|
|
190
|
+
customer: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
191
|
+
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>;
|
|
192
|
+
type: import('convex/values').VString<string, "required">;
|
|
193
|
+
object: import('convex/values').VString<string, "required">;
|
|
194
|
+
acss_debit: import('convex/values').VAny<any, "required", string>;
|
|
195
|
+
affirm: import('convex/values').VAny<any, "required", string>;
|
|
196
|
+
afterpay_clearpay: import('convex/values').VAny<any, "required", string>;
|
|
197
|
+
alipay: import('convex/values').VAny<any, "required", string>;
|
|
198
|
+
allow_redisplay: import('convex/values').VUnion<"always" | "limited" | "unspecified" | null, [import('convex/values').VLiteral<"always", "required">, import('convex/values').VLiteral<"limited", "required">, import('convex/values').VLiteral<"unspecified", "required">, import('convex/values').VNull<null, "required">], "required", never>;
|
|
199
|
+
alma: import('convex/values').VAny<any, "required", string>;
|
|
200
|
+
amazon_pay: import('convex/values').VAny<any, "required", string>;
|
|
201
|
+
au_becs_debit: import('convex/values').VAny<any, "required", string>;
|
|
202
|
+
bacs_debit: import('convex/values').VAny<any, "required", string>;
|
|
203
|
+
bancontact: import('convex/values').VAny<any, "required", string>;
|
|
204
|
+
billie: import('convex/values').VAny<any, "required", string>;
|
|
205
|
+
blik: import('convex/values').VAny<any, "required", string>;
|
|
206
|
+
boleto: import('convex/values').VAny<any, "required", string>;
|
|
207
|
+
card: import('convex/values').VAny<any, "required", string>;
|
|
208
|
+
card_present: import('convex/values').VAny<any, "required", string>;
|
|
209
|
+
cashapp: import('convex/values').VAny<any, "required", string>;
|
|
210
|
+
created: import('convex/values').VFloat64<number, "required">;
|
|
211
|
+
crypto: import('convex/values').VAny<any, "required", string>;
|
|
212
|
+
customer_balance: import('convex/values').VAny<any, "required", string>;
|
|
213
|
+
eps: import('convex/values').VAny<any, "required", string>;
|
|
214
|
+
fpx: import('convex/values').VAny<any, "required", string>;
|
|
215
|
+
giropay: import('convex/values').VAny<any, "required", string>;
|
|
216
|
+
grabpay: import('convex/values').VAny<any, "required", string>;
|
|
217
|
+
ideal: import('convex/values').VAny<any, "required", string>;
|
|
218
|
+
interac_present: import('convex/values').VAny<any, "required", string>;
|
|
219
|
+
kakao_pay: import('convex/values').VAny<any, "required", string>;
|
|
220
|
+
klarna: import('convex/values').VAny<any, "required", string>;
|
|
221
|
+
konbini: import('convex/values').VAny<any, "required", string>;
|
|
222
|
+
kr_card: import('convex/values').VAny<any, "required", string>;
|
|
223
|
+
link: import('convex/values').VAny<any, "required", string>;
|
|
224
|
+
livemode: import('convex/values').VBoolean<boolean, "required">;
|
|
225
|
+
mobilepay: import('convex/values').VAny<any, "required", string>;
|
|
226
|
+
multibanco: import('convex/values').VAny<any, "required", string>;
|
|
227
|
+
naver_pay: import('convex/values').VAny<any, "required", string>;
|
|
228
|
+
nz_bank_account: import('convex/values').VAny<any, "required", string>;
|
|
229
|
+
oxxo: import('convex/values').VAny<any, "required", string>;
|
|
230
|
+
p24: import('convex/values').VAny<any, "required", string>;
|
|
231
|
+
pay_by_bank: import('convex/values').VAny<any, "required", string>;
|
|
232
|
+
payco: import('convex/values').VAny<any, "required", string>;
|
|
233
|
+
paynow: import('convex/values').VAny<any, "required", string>;
|
|
234
|
+
paypal: import('convex/values').VAny<any, "required", string>;
|
|
235
|
+
pix: import('convex/values').VAny<any, "required", string>;
|
|
236
|
+
promptpay: import('convex/values').VAny<any, "required", string>;
|
|
237
|
+
radar_options: import('convex/values').VAny<any, "required", string>;
|
|
238
|
+
revolut_pay: import('convex/values').VAny<any, "required", string>;
|
|
239
|
+
samsung_pay: import('convex/values').VAny<any, "required", string>;
|
|
240
|
+
satispay: import('convex/values').VAny<any, "required", string>;
|
|
241
|
+
sepa_debit: import('convex/values').VAny<any, "required", string>;
|
|
242
|
+
sofort: import('convex/values').VAny<any, "required", string>;
|
|
243
|
+
swish: import('convex/values').VAny<any, "required", string>;
|
|
244
|
+
twint: import('convex/values').VAny<any, "required", string>;
|
|
245
|
+
us_bank_account: import('convex/values').VAny<any, "required", string>;
|
|
246
|
+
wechat_pay: import('convex/values').VAny<any, "required", string>;
|
|
247
|
+
zip: import('convex/values').VAny<any, "required", string>;
|
|
248
|
+
}, "required", "object" | "type" | "id" | "link" | "billing_details" | "customer" | "metadata" | "created" | "livemode" | "radar_options" | `metadata.${string}` | `radar_options.${string}` | "acss_debit" | "affirm" | "afterpay_clearpay" | "alipay" | "alma" | "amazon_pay" | "au_becs_debit" | "bacs_debit" | "bancontact" | "billie" | "blik" | "boleto" | "card" | "cashapp" | "crypto" | "customer_balance" | "eps" | "fpx" | "giropay" | "grabpay" | "ideal" | "kakao_pay" | "klarna" | "konbini" | "kr_card" | "mobilepay" | "multibanco" | "naver_pay" | "nz_bank_account" | "oxxo" | "p24" | "pay_by_bank" | "payco" | "paynow" | "paypal" | "pix" | "promptpay" | "revolut_pay" | "samsung_pay" | "satispay" | "sepa_debit" | "sofort" | "swish" | "twint" | "us_bank_account" | "wechat_pay" | "zip" | "allow_redisplay" | "card_present" | "interac_present" | `link.${string}` | `billing_details.${string}` | `acss_debit.${string}` | `affirm.${string}` | `afterpay_clearpay.${string}` | `alipay.${string}` | `alma.${string}` | `amazon_pay.${string}` | `au_becs_debit.${string}` | `bacs_debit.${string}` | `bancontact.${string}` | `billie.${string}` | `blik.${string}` | `boleto.${string}` | `card.${string}` | `cashapp.${string}` | `crypto.${string}` | `customer_balance.${string}` | `eps.${string}` | `fpx.${string}` | `giropay.${string}` | `grabpay.${string}` | `ideal.${string}` | `kakao_pay.${string}` | `klarna.${string}` | `konbini.${string}` | `kr_card.${string}` | `mobilepay.${string}` | `multibanco.${string}` | `naver_pay.${string}` | `nz_bank_account.${string}` | `oxxo.${string}` | `p24.${string}` | `pay_by_bank.${string}` | `payco.${string}` | `paynow.${string}` | `paypal.${string}` | `pix.${string}` | `promptpay.${string}` | `revolut_pay.${string}` | `samsung_pay.${string}` | `satispay.${string}` | `sepa_debit.${string}` | `sofort.${string}` | `swish.${string}` | `twint.${string}` | `us_bank_account.${string}` | `wechat_pay.${string}` | `zip.${string}` | `card_present.${string}` | `interac_present.${string}`>;
|