@raideno/convex-stripe 0.1.2 → 0.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (51) hide show
  1. package/dist/server/actions/pay.d.ts +52 -52
  2. package/dist/server/actions/setup.d.ts +3 -3
  3. package/dist/server/actions/subscribe.d.ts +7 -7
  4. package/dist/server/index.d.ts +451 -73
  5. package/dist/server/schema/charge.d.ts +294 -0
  6. package/dist/server/schema/checkout-session.d.ts +21 -21
  7. package/dist/server/schema/coupon.d.ts +3 -3
  8. package/dist/server/schema/credit-note.d.ts +228 -0
  9. package/dist/server/schema/customer.d.ts +19 -19
  10. package/dist/server/schema/dispute.d.ts +76 -0
  11. package/dist/server/schema/early-fraud-warning.d.ts +40 -0
  12. package/dist/server/schema/index.d.ts +4158 -1608
  13. package/dist/server/schema/invoice.d.ts +35 -35
  14. package/dist/server/schema/payment-intent.d.ts +28 -28
  15. package/dist/server/schema/payment-method.d.ts +248 -0
  16. package/dist/server/schema/payout.d.ts +11 -11
  17. package/dist/server/schema/plan.d.ts +112 -0
  18. package/dist/server/schema/price.d.ts +17 -17
  19. package/dist/server/schema/product.d.ts +7 -7
  20. package/dist/server/schema/promotion-code.d.ts +7 -7
  21. package/dist/server/schema/refund.d.ts +11 -11
  22. package/dist/server/schema/review.d.ts +9 -9
  23. package/dist/server/schema/setup-intent.d.ts +156 -0
  24. package/dist/server/schema/subscription-schedule.d.ts +468 -0
  25. package/dist/server/schema/tax-id.d.ts +120 -0
  26. package/dist/server/store/index.d.ts +450 -72
  27. package/dist/server/sync/charges.handler.d.ts +5 -0
  28. package/dist/server/sync/credit-notes.handler.d.ts +5 -0
  29. package/dist/server/sync/disputes.handler.d.ts +5 -0
  30. package/dist/server/sync/early-fraud-warnings.handler.d.ts +5 -0
  31. package/dist/server/sync/payment-methods.handler.d.ts +5 -0
  32. package/dist/server/sync/plans.handler.d.ts +5 -0
  33. package/dist/server/sync/setup-intents.handler.d.ts +5 -0
  34. package/dist/server/sync/subscription-schedules.handler.d.ts +5 -0
  35. package/dist/server/sync/tax-id.handler.d.ts +5 -0
  36. package/dist/server/types.d.ts +1 -9
  37. package/dist/server/webhooks/charges.handler.d.ts +2 -0
  38. package/dist/server/webhooks/credit-notes.handler.d.ts +2 -0
  39. package/dist/server/webhooks/disputes.handler.d.ts +2 -0
  40. package/dist/server/webhooks/early-fraud-warnings.handler.d.ts +2 -0
  41. package/dist/server/webhooks/payment-methods.handler.d.ts +2 -0
  42. package/dist/server/webhooks/plans.handler.d.ts +2 -0
  43. package/dist/server/webhooks/refunds.handler.d.ts +1 -1
  44. package/dist/server/webhooks/setup-intent.handler.d.ts +2 -0
  45. package/dist/server/webhooks/subscription-schedules.handler.d.ts +2 -0
  46. package/dist/server/webhooks/tax-id.handler.d.ts +2 -0
  47. package/dist/server.js +2032 -90
  48. package/package.json +1 -3
  49. /package/dist/server/sync/{checkouts-session.handler.d.ts → checkout-sessions.handler.d.ts} +0 -0
  50. /package/dist/server/sync/{payment-intent.handler.d.ts → payment-intents.handler.d.ts} +0 -0
  51. /package/dist/server/webhooks/{checkouts-session.handler.d.ts → checkout-sessions.handler.d.ts} +0 -0
@@ -3,23 +3,30 @@ export declare const InvoiceStripeToConvex: (invoice: Stripe.Invoice & {
3
3
  id: string;
4
4
  }) => {
5
5
  number?: string | null | undefined;
6
+ description?: string | null | undefined;
7
+ metadata?: Record<string, string | number | null> | null | undefined;
8
+ statement_descriptor?: string | null | undefined;
9
+ application?: string | null | undefined;
10
+ on_behalf_of?: string | null | undefined;
11
+ receipt_number?: string | null | undefined;
6
12
  automatic_tax?: any;
7
13
  customer_email?: string | null | undefined;
8
- metadata?: Record<string, string | number | null> | null | undefined;
9
14
  custom_fields?: any[] | null | undefined;
10
15
  shipping_cost?: any;
11
- description?: string | null | undefined;
16
+ lines?: any;
17
+ effective_at?: number | null | undefined;
18
+ subtotal_excluding_tax?: number | null | undefined;
19
+ total_excluding_tax?: number | null | undefined;
20
+ total_taxes?: any[] | null | undefined;
12
21
  default_source?: string | null | undefined;
13
22
  test_clock?: string | null | undefined;
14
23
  auto_advance?: boolean | undefined;
15
24
  confirmation_secret?: any;
16
25
  hosted_invoice_url?: string | null | undefined;
17
- lines?: any;
18
26
  parent?: any;
19
27
  account_country?: string | null | undefined;
20
28
  account_name?: string | null | undefined;
21
29
  account_tax_ids?: string[] | null | undefined;
22
- application?: string | null | undefined;
23
30
  automatically_finalizes_at?: number | null | undefined;
24
31
  customer_address?: any;
25
32
  customer_name?: string | null | undefined;
@@ -28,7 +35,6 @@ export declare const InvoiceStripeToConvex: (invoice: Stripe.Invoice & {
28
35
  customer_tax_ids?: any[] | null | undefined;
29
36
  default_payment_method?: string | null | undefined;
30
37
  due_date?: number | null | undefined;
31
- effective_at?: number | null | undefined;
32
38
  ending_balance?: number | null | undefined;
33
39
  footer?: string | null | undefined;
34
40
  from_invoice?: any;
@@ -37,38 +43,33 @@ export declare const InvoiceStripeToConvex: (invoice: Stripe.Invoice & {
37
43
  last_finalization_error?: any;
38
44
  latest_revision?: string | null | undefined;
39
45
  next_payment_attempt?: number | null | undefined;
40
- on_behalf_of?: string | null | undefined;
41
46
  payment_settings?: any;
42
47
  payments?: any;
43
- receipt_number?: string | null | undefined;
44
48
  rendering?: any;
45
49
  shipping_details?: any;
46
- statement_descriptor?: string | null | undefined;
47
50
  status_transitions?: any;
48
- subtotal_excluding_tax?: number | null | undefined;
49
51
  threshold_reason?: any;
50
52
  total_discount_amounts?: any[] | null | undefined;
51
- total_excluding_tax?: number | null | undefined;
52
53
  total_pretax_credit_amounts?: any[] | null | undefined;
53
- total_taxes?: any[] | null | undefined;
54
54
  webhooks_delivered_at?: number | null | undefined;
55
55
  object: string;
56
56
  id: string;
57
57
  currency: string;
58
58
  customer: string;
59
- status: "paid" | "open" | "draft" | "uncollectible" | "void";
59
+ status: "paid" | "open" | "void" | "draft" | "uncollectible";
60
60
  created: number;
61
- discounts: string[];
62
61
  livemode: boolean;
62
+ discounts: string[];
63
+ subtotal: number;
64
+ total: number;
65
+ amount_shipping: number;
63
66
  collection_method: "charge_automatically" | "send_invoice";
64
67
  period_end: number;
65
68
  period_start: number;
66
- total: number;
67
69
  amount_due: number;
68
70
  amount_overpaid: number;
69
71
  amount_paid: number;
70
72
  amount_remaining: number;
71
- amount_shipping: number;
72
73
  attempt_count: number;
73
74
  attempted: boolean;
74
75
  billing_reason: "subscription" | "automatic_pending_invoice_item_invoice" | "manual" | "quote_accept" | "subscription_create" | "subscription_cycle" | "subscription_threshold" | "subscription_update" | "upcoming" | null;
@@ -77,7 +78,6 @@ export declare const InvoiceStripeToConvex: (invoice: Stripe.Invoice & {
77
78
  post_payment_credit_notes_amount: number;
78
79
  pre_payment_credit_notes_amount: number;
79
80
  starting_balance: number;
80
- subtotal: number;
81
81
  };
82
82
  export declare const InvoiceSchema: {
83
83
  id: import('convex/values').VString<string, "required">;
@@ -94,7 +94,7 @@ export declare const InvoiceSchema: {
94
94
  parent: import('convex/values').VAny<any, "optional", string>;
95
95
  period_end: import('convex/values').VFloat64<number, "required">;
96
96
  period_start: import('convex/values').VFloat64<number, "required">;
97
- status: import('convex/values').VUnion<"paid" | "open" | "draft" | "uncollectible" | "void", [import('convex/values').VLiteral<"draft", "required">, import('convex/values').VLiteral<"open", "required">, import('convex/values').VLiteral<"paid", "required">, import('convex/values').VLiteral<"uncollectible", "required">, import('convex/values').VLiteral<"void", "required">], "required", never>;
97
+ status: import('convex/values').VUnion<"paid" | "open" | "void" | "draft" | "uncollectible", [import('convex/values').VLiteral<"draft", "required">, import('convex/values').VLiteral<"open", "required">, import('convex/values').VLiteral<"paid", "required">, import('convex/values').VLiteral<"uncollectible", "required">, import('convex/values').VLiteral<"void", "required">], "required", never>;
98
98
  total: import('convex/values').VFloat64<number, "required">;
99
99
  object: import('convex/values').VString<string, "required">;
100
100
  account_country: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
@@ -159,23 +159,30 @@ export declare const InvoiceSchema: {
159
159
  };
160
160
  export declare const InvoiceObject: import('convex/values').VObject<{
161
161
  number?: string | null | undefined;
162
+ description?: string | null | undefined;
163
+ metadata?: Record<string, string | number | null> | null | undefined;
164
+ statement_descriptor?: string | null | undefined;
165
+ application?: string | null | undefined;
166
+ on_behalf_of?: string | null | undefined;
167
+ receipt_number?: string | null | undefined;
162
168
  automatic_tax?: any;
163
169
  customer_email?: string | null | undefined;
164
- metadata?: Record<string, string | number | null> | null | undefined;
165
170
  custom_fields?: any[] | null | undefined;
166
171
  shipping_cost?: any;
167
- description?: string | null | undefined;
172
+ lines?: any;
173
+ effective_at?: number | null | undefined;
174
+ subtotal_excluding_tax?: number | null | undefined;
175
+ total_excluding_tax?: number | null | undefined;
176
+ total_taxes?: any[] | null | undefined;
168
177
  default_source?: string | null | undefined;
169
178
  test_clock?: string | null | undefined;
170
179
  auto_advance?: boolean | undefined;
171
180
  confirmation_secret?: any;
172
181
  hosted_invoice_url?: string | null | undefined;
173
- lines?: any;
174
182
  parent?: any;
175
183
  account_country?: string | null | undefined;
176
184
  account_name?: string | null | undefined;
177
185
  account_tax_ids?: string[] | null | undefined;
178
- application?: string | null | undefined;
179
186
  automatically_finalizes_at?: number | null | undefined;
180
187
  customer_address?: any;
181
188
  customer_name?: string | null | undefined;
@@ -184,7 +191,6 @@ export declare const InvoiceObject: import('convex/values').VObject<{
184
191
  customer_tax_ids?: any[] | null | undefined;
185
192
  default_payment_method?: string | null | undefined;
186
193
  due_date?: number | null | undefined;
187
- effective_at?: number | null | undefined;
188
194
  ending_balance?: number | null | undefined;
189
195
  footer?: string | null | undefined;
190
196
  from_invoice?: any;
@@ -193,38 +199,33 @@ export declare const InvoiceObject: import('convex/values').VObject<{
193
199
  last_finalization_error?: any;
194
200
  latest_revision?: string | null | undefined;
195
201
  next_payment_attempt?: number | null | undefined;
196
- on_behalf_of?: string | null | undefined;
197
202
  payment_settings?: any;
198
203
  payments?: any;
199
- receipt_number?: string | null | undefined;
200
204
  rendering?: any;
201
205
  shipping_details?: any;
202
- statement_descriptor?: string | null | undefined;
203
206
  status_transitions?: any;
204
- subtotal_excluding_tax?: number | null | undefined;
205
207
  threshold_reason?: any;
206
208
  total_discount_amounts?: any[] | null | undefined;
207
- total_excluding_tax?: number | null | undefined;
208
209
  total_pretax_credit_amounts?: any[] | null | undefined;
209
- total_taxes?: any[] | null | undefined;
210
210
  webhooks_delivered_at?: number | null | undefined;
211
211
  object: string;
212
212
  id: string;
213
213
  currency: string;
214
214
  customer: string;
215
- status: "paid" | "open" | "draft" | "uncollectible" | "void";
215
+ status: "paid" | "open" | "void" | "draft" | "uncollectible";
216
216
  created: number;
217
- discounts: string[];
218
217
  livemode: boolean;
218
+ discounts: string[];
219
+ subtotal: number;
220
+ total: number;
221
+ amount_shipping: number;
219
222
  collection_method: "charge_automatically" | "send_invoice";
220
223
  period_end: number;
221
224
  period_start: number;
222
- total: number;
223
225
  amount_due: number;
224
226
  amount_overpaid: number;
225
227
  amount_paid: number;
226
228
  amount_remaining: number;
227
- amount_shipping: number;
228
229
  attempt_count: number;
229
230
  attempted: boolean;
230
231
  billing_reason: "subscription" | "automatic_pending_invoice_item_invoice" | "manual" | "quote_accept" | "subscription_create" | "subscription_cycle" | "subscription_threshold" | "subscription_update" | "upcoming" | null;
@@ -233,7 +234,6 @@ export declare const InvoiceObject: import('convex/values').VObject<{
233
234
  post_payment_credit_notes_amount: number;
234
235
  pre_payment_credit_notes_amount: number;
235
236
  starting_balance: number;
236
- subtotal: number;
237
237
  }, {
238
238
  id: import('convex/values').VString<string, "required">;
239
239
  auto_advance: import('convex/values').VBoolean<boolean | undefined, "optional">;
@@ -249,7 +249,7 @@ export declare const InvoiceObject: import('convex/values').VObject<{
249
249
  parent: import('convex/values').VAny<any, "optional", string>;
250
250
  period_end: import('convex/values').VFloat64<number, "required">;
251
251
  period_start: import('convex/values').VFloat64<number, "required">;
252
- status: import('convex/values').VUnion<"paid" | "open" | "draft" | "uncollectible" | "void", [import('convex/values').VLiteral<"draft", "required">, import('convex/values').VLiteral<"open", "required">, import('convex/values').VLiteral<"paid", "required">, import('convex/values').VLiteral<"uncollectible", "required">, import('convex/values').VLiteral<"void", "required">], "required", never>;
252
+ status: import('convex/values').VUnion<"paid" | "open" | "void" | "draft" | "uncollectible", [import('convex/values').VLiteral<"draft", "required">, import('convex/values').VLiteral<"open", "required">, import('convex/values').VLiteral<"paid", "required">, import('convex/values').VLiteral<"uncollectible", "required">, import('convex/values').VLiteral<"void", "required">], "required", never>;
253
253
  total: import('convex/values').VFloat64<number, "required">;
254
254
  object: import('convex/values').VString<string, "required">;
255
255
  account_country: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
@@ -311,4 +311,4 @@ export declare const InvoiceObject: import('convex/values').VObject<{
311
311
  total_pretax_credit_amounts: import('convex/values').VUnion<any[] | null | undefined, [import('convex/values').VArray<any[], import('convex/values').VAny<any, "required", string>, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
312
312
  total_taxes: import('convex/values').VUnion<any[] | null | undefined, [import('convex/values').VArray<any[], import('convex/values').VAny<any, "required", string>, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
313
313
  webhooks_delivered_at: import('convex/values').VUnion<number | null | undefined, [import('convex/values').VFloat64<number, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
314
- }, "required", "number" | "object" | "id" | "automatic_tax" | "currency" | "customer" | "customer_email" | "metadata" | "status" | "created" | "custom_fields" | "discounts" | "livemode" | "shipping_cost" | `automatic_tax.${string}` | `metadata.${string}` | `shipping_cost.${string}` | "description" | "default_source" | "test_clock" | "auto_advance" | "collection_method" | "confirmation_secret" | "hosted_invoice_url" | "lines" | "parent" | "period_end" | "period_start" | "total" | "account_country" | "account_name" | "account_tax_ids" | "amount_due" | "amount_overpaid" | "amount_paid" | "amount_remaining" | "amount_shipping" | "application" | "attempt_count" | "attempted" | "automatically_finalizes_at" | "billing_reason" | "customer_address" | "customer_name" | "customer_phone" | "customer_shipping" | "customer_tax_exempt" | "customer_tax_ids" | "default_payment_method" | "default_tax_rates" | "due_date" | "effective_at" | "ending_balance" | "footer" | "from_invoice" | "invoice_pdf" | "issuer" | "last_finalization_error" | "latest_revision" | "next_payment_attempt" | "on_behalf_of" | "payment_settings" | "payments" | "post_payment_credit_notes_amount" | "pre_payment_credit_notes_amount" | "receipt_number" | "rendering" | "shipping_details" | "starting_balance" | "statement_descriptor" | "status_transitions" | "subtotal" | "subtotal_excluding_tax" | "threshold_reason" | "total_discount_amounts" | "total_excluding_tax" | "total_pretax_credit_amounts" | "total_taxes" | "webhooks_delivered_at" | `confirmation_secret.${string}` | `lines.${string}` | `parent.${string}` | `customer_address.${string}` | `customer_shipping.${string}` | `from_invoice.${string}` | `issuer.${string}` | `last_finalization_error.${string}` | `payment_settings.${string}` | `payments.${string}` | `rendering.${string}` | `shipping_details.${string}` | `status_transitions.${string}` | `threshold_reason.${string}`>;
314
+ }, "required", "number" | "object" | "id" | "currency" | "customer" | "description" | "metadata" | "statement_descriptor" | "status" | "application" | "created" | "livemode" | "on_behalf_of" | "receipt_number" | `metadata.${string}` | "automatic_tax" | "customer_email" | "custom_fields" | "discounts" | "shipping_cost" | `automatic_tax.${string}` | `shipping_cost.${string}` | "lines" | "subtotal" | "total" | "amount_shipping" | "effective_at" | "subtotal_excluding_tax" | "total_excluding_tax" | "total_taxes" | `lines.${string}` | "default_source" | "test_clock" | "auto_advance" | "collection_method" | "confirmation_secret" | "hosted_invoice_url" | "parent" | "period_end" | "period_start" | "account_country" | "account_name" | "account_tax_ids" | "amount_due" | "amount_overpaid" | "amount_paid" | "amount_remaining" | "attempt_count" | "attempted" | "automatically_finalizes_at" | "billing_reason" | "customer_address" | "customer_name" | "customer_phone" | "customer_shipping" | "customer_tax_exempt" | "customer_tax_ids" | "default_payment_method" | "default_tax_rates" | "due_date" | "ending_balance" | "footer" | "from_invoice" | "invoice_pdf" | "issuer" | "last_finalization_error" | "latest_revision" | "next_payment_attempt" | "payment_settings" | "payments" | "post_payment_credit_notes_amount" | "pre_payment_credit_notes_amount" | "rendering" | "shipping_details" | "starting_balance" | "status_transitions" | "threshold_reason" | "total_discount_amounts" | "total_pretax_credit_amounts" | "webhooks_delivered_at" | `confirmation_secret.${string}` | `parent.${string}` | `customer_address.${string}` | `customer_shipping.${string}` | `from_invoice.${string}` | `issuer.${string}` | `last_finalization_error.${string}` | `payment_settings.${string}` | `payments.${string}` | `rendering.${string}` | `shipping_details.${string}` | `status_transitions.${string}` | `threshold_reason.${string}`>;
@@ -20,8 +20,8 @@ export declare const PaymentIntentSchema: {
20
20
  description: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
21
21
  last_payment_error: import('convex/values').VUnion<{
22
22
  payment_method?: any;
23
- advice_code?: string | null | undefined;
24
23
  charge?: string | null | undefined;
24
+ advice_code?: string | null | undefined;
25
25
  code?: string | null | undefined;
26
26
  decline_code?: string | null | undefined;
27
27
  doc_url?: string | null | undefined;
@@ -35,8 +35,8 @@ export declare const PaymentIntentSchema: {
35
35
  type: "api_error" | "card_error" | "idempotency_error" | "invalid_request_error";
36
36
  } | null | undefined, [import('convex/values').VObject<{
37
37
  payment_method?: any;
38
- advice_code?: string | null | undefined;
39
38
  charge?: string | null | undefined;
39
+ advice_code?: string | null | undefined;
40
40
  code?: string | null | undefined;
41
41
  decline_code?: string | null | undefined;
42
42
  doc_url?: string | null | undefined;
@@ -63,7 +63,7 @@ export declare const PaymentIntentSchema: {
63
63
  last_payment_error: import('convex/values').VAny<any, "optional", string>;
64
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
65
  latest_charge: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
66
- }, "required", "type" | "payment_method" | "advice_code" | "charge" | "code" | "decline_code" | "doc_url" | "message" | "network_advice_code" | "network_decline_code" | "param" | "payment_method_type" | "last_payment_error" | "latest_charge" | `payment_method.${string}` | `last_payment_error.${string}`>, import('convex/values').VNull<null, "required">], "optional", "type" | "payment_method" | "advice_code" | "charge" | "code" | "decline_code" | "doc_url" | "message" | "network_advice_code" | "network_decline_code" | "param" | "payment_method_type" | "last_payment_error" | "latest_charge" | `payment_method.${string}` | `last_payment_error.${string}`>;
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
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
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
69
  next_action: import('convex/values').VAny<any, "optional", string>;
@@ -73,7 +73,7 @@ export declare const PaymentIntentSchema: {
73
73
  shipping: import('convex/values').VAny<any, "optional", string>;
74
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
75
  statement_descriptor_suffix: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
76
- status: import('convex/values').VUnion<"canceled" | "processing" | "requires_action" | "requires_capture" | "requires_confirmation" | "requires_payment_method" | "succeeded", [import('convex/values').VLiteral<"canceled", "required">, import('convex/values').VLiteral<"processing", "required">, import('convex/values').VLiteral<"requires_action", "required">, import('convex/values').VLiteral<"requires_capture", "required">, import('convex/values').VLiteral<"requires_confirmation", "required">, import('convex/values').VLiteral<"requires_payment_method", "required">, import('convex/values').VLiteral<"succeeded", "required">], "required", never>;
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
77
  object: import('convex/values').VString<string, "required">;
78
78
  amount_capturable: import('convex/values').VFloat64<number, "required">;
79
79
  amount_details: import('convex/values').VUnion<{
@@ -97,7 +97,7 @@ export declare const PaymentIntentSchema: {
97
97
  application: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
98
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
99
  canceled_at: import('convex/values').VUnion<number | null | undefined, [import('convex/values').VFloat64<number, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
100
- cancellation_reason: import('convex/values').VUnion<"expired" | "abandoned" | "automatic" | "duplicate" | "failed_invoice" | "fraudulent" | "requested_by_customer" | "void_invoice" | null | undefined, [import('convex/values').VLiteral<"abandoned", "required">, import('convex/values').VLiteral<"automatic", "required">, import('convex/values').VLiteral<"duplicate", "required">, import('convex/values').VLiteral<"expired", "required">, import('convex/values').VLiteral<"failed_invoice", "required">, import('convex/values').VLiteral<"fraudulent", "required">, import('convex/values').VLiteral<"requested_by_customer", "required">, import('convex/values').VLiteral<"void_invoice", "required">, import('convex/values').VNull<null, "required">], "optional", never>;
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
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
102
  confirmation_method: import('convex/values').VUnion<"manual" | "automatic", [import('convex/values').VLiteral<"automatic", "required">, import('convex/values').VLiteral<"manual", "required">], "required", never>;
103
103
  created: import('convex/values').VFloat64<number, "required">;
@@ -124,24 +124,30 @@ export declare const PaymentIntentSchema: {
124
124
  };
125
125
  export declare const PaymentIntentObject: import('convex/values').VObject<{
126
126
  customer?: string | null | undefined;
127
+ description?: string | null | undefined;
127
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;
128
141
  client_secret?: string | null | undefined;
129
142
  payment_method_configuration_details?: {
130
143
  parent?: string | null | undefined;
131
144
  id: string;
132
145
  } | null | undefined;
133
146
  payment_method_options?: any;
134
- presentment_details?: any;
135
- description?: string | null | undefined;
136
- shipping?: any;
137
- payment_method?: string | null | undefined;
138
- application?: string | null | undefined;
139
- on_behalf_of?: string | null | undefined;
140
- statement_descriptor?: string | null | undefined;
141
147
  last_payment_error?: {
142
148
  payment_method?: any;
143
- advice_code?: string | null | undefined;
144
149
  charge?: string | null | undefined;
150
+ advice_code?: string | null | undefined;
145
151
  code?: string | null | undefined;
146
152
  decline_code?: string | null | undefined;
147
153
  doc_url?: string | null | undefined;
@@ -161,27 +167,21 @@ export declare const PaymentIntentObject: import('convex/values').VObject<{
161
167
  enabled: boolean;
162
168
  } | null | undefined;
163
169
  next_action?: any;
164
- receipt_email?: string | null | undefined;
165
- statement_descriptor_suffix?: string | null | undefined;
166
170
  amount_details?: {
167
171
  tip?: {
168
172
  amount?: number | null | undefined;
169
173
  } | null | undefined;
170
174
  } | null | undefined;
171
- application_fee_amount?: number | null | undefined;
172
175
  canceled_at?: number | null | undefined;
173
- cancellation_reason?: "expired" | "abandoned" | "automatic" | "duplicate" | "failed_invoice" | "fraudulent" | "requested_by_customer" | "void_invoice" | null | undefined;
174
- review?: string | null | undefined;
175
- transfer_data?: any;
176
- transfer_group?: string | null | undefined;
176
+ cancellation_reason?: "expired" | "duplicate" | "fraudulent" | "abandoned" | "automatic" | "failed_invoice" | "requested_by_customer" | "void_invoice" | null | undefined;
177
177
  object: string;
178
178
  id: string;
179
+ amount: number;
179
180
  currency: string | null;
180
- status: "canceled" | "processing" | "requires_action" | "requires_capture" | "requires_confirmation" | "requires_payment_method" | "succeeded";
181
+ status: "succeeded" | "canceled" | "processing" | "requires_action" | "requires_capture" | "requires_confirmation" | "requires_payment_method";
181
182
  created: number;
182
183
  livemode: boolean;
183
184
  payment_method_types: string[];
184
- amount: number;
185
185
  setup_future_usage: "off_session" | "on_session" | null;
186
186
  amount_capturable: number;
187
187
  amount_received: number;
@@ -207,8 +207,8 @@ export declare const PaymentIntentObject: import('convex/values').VObject<{
207
207
  description: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
208
208
  last_payment_error: import('convex/values').VUnion<{
209
209
  payment_method?: any;
210
- advice_code?: string | null | undefined;
211
210
  charge?: string | null | undefined;
211
+ advice_code?: string | null | undefined;
212
212
  code?: string | null | undefined;
213
213
  decline_code?: string | null | undefined;
214
214
  doc_url?: string | null | undefined;
@@ -222,8 +222,8 @@ export declare const PaymentIntentObject: import('convex/values').VObject<{
222
222
  type: "api_error" | "card_error" | "idempotency_error" | "invalid_request_error";
223
223
  } | null | undefined, [import('convex/values').VObject<{
224
224
  payment_method?: any;
225
- advice_code?: string | null | undefined;
226
225
  charge?: string | null | undefined;
226
+ advice_code?: string | null | undefined;
227
227
  code?: string | null | undefined;
228
228
  decline_code?: string | null | undefined;
229
229
  doc_url?: string | null | undefined;
@@ -250,7 +250,7 @@ export declare const PaymentIntentObject: import('convex/values').VObject<{
250
250
  last_payment_error: import('convex/values').VAny<any, "optional", string>;
251
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
252
  latest_charge: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
253
- }, "required", "type" | "payment_method" | "advice_code" | "charge" | "code" | "decline_code" | "doc_url" | "message" | "network_advice_code" | "network_decline_code" | "param" | "payment_method_type" | "last_payment_error" | "latest_charge" | `payment_method.${string}` | `last_payment_error.${string}`>, import('convex/values').VNull<null, "required">], "optional", "type" | "payment_method" | "advice_code" | "charge" | "code" | "decline_code" | "doc_url" | "message" | "network_advice_code" | "network_decline_code" | "param" | "payment_method_type" | "last_payment_error" | "latest_charge" | `payment_method.${string}` | `last_payment_error.${string}`>;
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
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
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
256
  next_action: import('convex/values').VAny<any, "optional", string>;
@@ -260,7 +260,7 @@ export declare const PaymentIntentObject: import('convex/values').VObject<{
260
260
  shipping: import('convex/values').VAny<any, "optional", string>;
261
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
262
  statement_descriptor_suffix: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
263
- status: import('convex/values').VUnion<"canceled" | "processing" | "requires_action" | "requires_capture" | "requires_confirmation" | "requires_payment_method" | "succeeded", [import('convex/values').VLiteral<"canceled", "required">, import('convex/values').VLiteral<"processing", "required">, import('convex/values').VLiteral<"requires_action", "required">, import('convex/values').VLiteral<"requires_capture", "required">, import('convex/values').VLiteral<"requires_confirmation", "required">, import('convex/values').VLiteral<"requires_payment_method", "required">, import('convex/values').VLiteral<"succeeded", "required">], "required", never>;
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
264
  object: import('convex/values').VString<string, "required">;
265
265
  amount_capturable: import('convex/values').VFloat64<number, "required">;
266
266
  amount_details: import('convex/values').VUnion<{
@@ -284,7 +284,7 @@ export declare const PaymentIntentObject: import('convex/values').VObject<{
284
284
  application: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
285
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
286
  canceled_at: import('convex/values').VUnion<number | null | undefined, [import('convex/values').VFloat64<number, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
287
- cancellation_reason: import('convex/values').VUnion<"expired" | "abandoned" | "automatic" | "duplicate" | "failed_invoice" | "fraudulent" | "requested_by_customer" | "void_invoice" | null | undefined, [import('convex/values').VLiteral<"abandoned", "required">, import('convex/values').VLiteral<"automatic", "required">, import('convex/values').VLiteral<"duplicate", "required">, import('convex/values').VLiteral<"expired", "required">, import('convex/values').VLiteral<"failed_invoice", "required">, import('convex/values').VLiteral<"fraudulent", "required">, import('convex/values').VLiteral<"requested_by_customer", "required">, import('convex/values').VLiteral<"void_invoice", "required">, import('convex/values').VNull<null, "required">], "optional", never>;
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
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
289
  confirmation_method: import('convex/values').VUnion<"manual" | "automatic", [import('convex/values').VLiteral<"automatic", "required">, import('convex/values').VLiteral<"manual", "required">], "required", never>;
290
290
  created: import('convex/values').VFloat64<number, "required">;
@@ -308,4 +308,4 @@ export declare const PaymentIntentObject: import('convex/values').VObject<{
308
308
  review: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
309
309
  transfer_data: import('convex/values').VAny<any, "optional", string>;
310
310
  transfer_group: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
311
- }, "required", "object" | "id" | "currency" | "customer" | "metadata" | "status" | "client_secret" | "created" | "livemode" | "payment_method_configuration_details" | "payment_method_options" | "payment_method_types" | "presentment_details" | `metadata.${string}` | `payment_method_options.${string}` | `presentment_details.${string}` | "description" | "shipping" | "payment_method" | "application" | "on_behalf_of" | "statement_descriptor" | "last_payment_error" | "latest_charge" | "processing" | "amount" | "automatic_payment_methods" | "next_action" | "receipt_email" | "setup_future_usage" | "statement_descriptor_suffix" | "amount_capturable" | "amount_details" | "amount_received" | "application_fee_amount" | "canceled_at" | "cancellation_reason" | "capture_method" | "confirmation_method" | "excluded_payment_method_types" | "review" | "transfer_data" | "transfer_group" | "payment_method_configuration_details.id" | "payment_method_configuration_details.parent" | `shipping.${string}` | "last_payment_error.type" | "last_payment_error.payment_method" | "last_payment_error.advice_code" | "last_payment_error.charge" | "last_payment_error.code" | "last_payment_error.decline_code" | "last_payment_error.doc_url" | "last_payment_error.message" | "last_payment_error.network_advice_code" | "last_payment_error.network_decline_code" | "last_payment_error.param" | "last_payment_error.payment_method_type" | "last_payment_error.last_payment_error" | "last_payment_error.latest_charge" | `last_payment_error.payment_method.${string}` | `last_payment_error.last_payment_error.${string}` | `processing.${string}` | "automatic_payment_methods.allow_redirects" | "automatic_payment_methods.enabled" | `next_action.${string}` | "amount_details.tip" | "amount_details.tip.amount" | `transfer_data.${string}`>;
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">;